You are on page 1of 10

CSE208 – Operating System D23DCS147-RAJ

Faculty of Technology and Engineering


DEPSTAR
Department of Computer Science & Engineering
Date: / /
Practical 1

Academic Year : 2023-24 Semester : 4th


Course code : CSE208 Course name : Operating System

Aim:Perform Linux Commands for the following (Provide Soft copy)

1. Directory Oriented Commands (ls, mkdir, rmdir, cd, pwd, find, du, df)
1.Ls
It display the file and directories in the home user.The default folder are highlited.
Ls a displays the cache files too.There are various commands in ls.

1
CSE208 – Operating System D23DCS147-RAJ

2.Mkdir
The mkdir command is use to create directories in linux.

3.Rmdir
The rmdir command is use to remove a directory from the user.

4.Cd
It is used to change the current directory of the terminal

5.Pwd
The pwd -print working directory- command in Linux is a command that displays the full
pathname of the current directory.

2
CSE208 – Operating System D23DCS147-RAJ

6.Find –
Helps you find things.

7.Du
The du command in Linux is used to estimate file and directory space usage.
It is used with the syntax.

8.Df – display disk space usage.


IT displays information about total space and available space on a file system

3
CSE208 – Operating System D23DCS147-RAJ

2. File Oriented Commands (cat, touch, cp, rm, mv, wc, file, cmp,rm)
1.Cat
It's often used to concatenate one file to nothing to print the single file's contents to the terminal.

2.Touch
The touch command in Linux is used to create a new empty file and to change the timestamps of
existing files.

3.Cp
It will copy the content of one file to another.

4.Rm
It is used to remove a file from system.

5.Mv
It moves file from one directory from one to another and also renames the files.

6.WC
The wc command can read from standard input apart from reading from a file.

4
CSE208 – Operating System D23DCS147-RAJ

7.File
To organize information quickly, Linux provides a program called the file command

8.Cmp
It is use to compare two files.

3. File Processing Commands (dd, expand, nl, tac, head, tail)

1.Dd
Convert and copy files with specified input and output block sizes.

2.Expand
It converts tabs spaces in file spaces.

3.Nl
It will count the no of lines int the document an display it.

4.Tac
To display content in reverse order.

5
CSE208 – Operating System D23DCS147-RAJ

5.Head
It will display the first part of file and its syntax.

6.Tail
It will display the last part of a file.

4. General Purpose Commands (date, who , whoami ,man, cal, tee, script,
tput clear, split, expr)
1.Date
Display or set the system date and time.

2.Who
It will display logging info.

3.Whoami
Display the current effective username.

4.Man
Display command manual pages

6
CSE208 – Operating System D23DCS147-RAJ

5.cal
It will display a calendar.

6.Tee
It will Read from standard input and write to standard output and files.

7.Script
It will Record a terminal session.

7
CSE208 – Operating System D23DCS147-RAJ

8.Tput
Set terminal-dependent capabilities.

9.Clear
Clear the terminal screen.

10.Split
To display file content in required no of parts.

11.Expr
To perform varios arirhmatic operations.

Grade/Marks Sign of Lab Teacher with Date


( / 10)
8
CSE208 – Operating System D23DCS147-RAJ

9
CSE208 – Operating System D23DCS147-RAJ

10

You might also like