School of Information Technology& Engineering M.Tech Software Engineering Course Code: Swe 3001 Subject - Operating System
School of Information Technology& Engineering M.Tech Software Engineering Course Code: Swe 3001 Subject - Operating System
LAB ASSESMENT -1
This FILE CONTAINS:
COMMANDS:
COMMAND 1: ls(list)
To list the contents of our working directory.
Command 1: cp (copy)
Syntax: cp <filename1> <filename2>
Copy the file from one file to another.
Command 2: mv (move)
Syntax: mv <filename1> <filename2>
move the content of file from one file to another.
Command 3: rmdir (remove directory)
Syntax: rmdir <filename1>
Remove the directory/file.
Command 4: cat(concatenate)
Syntax: cat <filename1>
Display the contents of the file.
Command 5: less
Syntax: less <filename1>
Display the contents of the file
Command 6: head
Syntax: head <filename1>
Display first few lines of the file
Command 7: tail
Syntax: tail <filename1>
Display last few lines of the file
Tutorial -3
Command 1: cat > <filename>
To direct the output of a command
Command 2: sort
Sorts in ascending order