[go: up one dir, main page]

0% found this document useful (0 votes)
16 views10 pages

Oslab 2

The document is a laboratory record for Swarna Sikha Sahoo, a student in the Computer Science & Engineering department at C.V. Raman Global University. It outlines basic utility commands and their purposes in the Linux operating system, as well as system call commands for programming. The record includes aims for experiments and examples of command usage.

Uploaded by

Lalatendu Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views10 pages

Oslab 2

The document is a laboratory record for Swarna Sikha Sahoo, a student in the Computer Science & Engineering department at C.V. Raman Global University. It outlines basic utility commands and their purposes in the Linux operating system, as well as system call commands for programming. The record includes aims for experiments and examples of command usage.

Uploaded by

Lalatendu Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

C.V.

RAMAN GLOBAL UNIVERSITY


BHUBANESWAR, ODISHA-752054
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

OPERATING SYSTEM LABORATORY


RECORD

NAME : Swarna Sikha Sahoo

REGD. NO. : 230102006 7

SEMESTER : 5th Sem

BRANCH : COE
1
Experiment – 01
Aim of the Experiment:
Basic utility and general information command.
Basic Commands:
1. Name: ls
Purpose: To show the list of directories.
Syntax: ls

2. Name: pwd
Purpose: To show the current working directory
Syntax: pwd

3. Name: cd
Purpose: To change the directory
Syntax: cd

4. Name: cd/
Purpose: To change the directory to the root directory
Syntax: cd/

5. Name: cd ..
Purpose: To go back
Syntax: cd ..

6. Name: sudo su
Purpose: To witch to super user
Syntax: sudo su

7. Name: cal
Purpose: To display calender
Syntax: cal month year
Example: cal 5 2003

8. Name: echo
Purpose: To print the text message
Syntax: echo ”message”
Example: echo “hello”

9. Name: mkdir
Purpose: To create a directory
Syntax: mkdir name
Example: mkdir one

10. Name: who


Purpose: To view the version
Syntax: who

2
11. Name: date
Purpose: To view the date and time
Syntax: date

12. Name: man


Purpose: To display the manual
Syntax: man cd

13. Name: history


Purpose: To view all the executed commands
Syntax: history

14. Name: whoami


Purpose: To get the username
Syntax: whoami

15. Name: tty


Purpose: To get the terminal information
Syntax: tty

16. Name: whatis


Purpose: To give information about command
Syntax: whatis tty

17. Name: uname


Purpose: To get the operating system name
Syntax: uname

18. Name: rmdir


Purpose: To remove directory
Syntax: rmdir name
Example: rmdir one

19. Name: touch


Purpose: To create a blank text file
Syntax: touch ch.txt

20. Name: cp
Purpose: To copy file
Syntax: cp ch

21. Name: mv
Purpose: To move file
Syntax: mv ch

Terminal Screenshots:

3
Submitted By:
Name: Swarna Sikha Sahoo
Regd.no.: 2301020067
Branch: COE
Semester: 5th Semester
Group: 04

4
Experiment – 02
Aim of the Experiment:
Exploring the System call Commands in Linux Operating System.
Problem: Write Programs using the following system calls of Linux Operating System.
1.write () System call:

2.read () System call:

3. fork() System call:

5
4. getpid() System call:

6
5. open() System call:

6. close() System call:

7
7. exec() System call:

8
8. wait() System call:

9.exit() System call:

9
v

Submitted By:
Name: Swarna Sikha Sahoo
Regd.no.: 2301020067
Branch: COE

Semester: 5th Semester


Group: 04

10

You might also like