1 Practical-1
1 Practical-1
2. mkdir Command
The mkdir command is used to create a new directory under any directory.
Syntax:
1. mkdir <directory name>
3. rmdir Command
The rmdir command is used to delete a directory.
Syntax:
1. rmdir <directory name>
4. ls Command
Syntax:
Ls
5. cd Command
The cd command is used to change the current directory.
Syntax:
1. cd <directory name
6. touch Command
The touch command is used to create empty files. We can create multiple empty files
by executing it once.
Syntax:
7. cat Command
1
Roll No: 01 Course: FYCS Semester : I
Name: Pallavi Tawde Subject: Operating Systems
The cat command is a multi-purpose utility in the Linux system. It can be used to
create a file, display content of the file, copy the content of one file to another file, and
more.
Syntax:
Press "CTRL+ D" keys to save the file. To display the content of the file, execute it as
follows:
8. rm Command
Syntax:
rm <file name>
9. cp Command
The cp command is used to copy a file or directory.
Syntax:
To copy in the same directory:
1. cp <existing file name> <new file name>
10. mv Command
The mv command is used to move a file or a directory form one location to another
location.
Syntax:
1. mv <file name> <directory path>
2
Roll No: 01 Course: FYCS Semester : I
Name: Pallavi Tawde Subject: Operating Systems
11. rename Command
The rename command is used to rename files. It is useful for renaming a large group of
files.
Syntax:
rename 's/file/newfile/' file.txt
3
Roll No: 01 Course: FYCS Semester : I
Name: Pallavi Tawde Subject: Operating Systems
1. sort <file name>