OS Practical
OS Practical
YEAR – 3RD
SEMESTER – 5TH
DATE – 15-08-2024
INDEX
SL NO. TOPIC PAGE NO.
12. Create a file using Cat command, write few lines, and exit. 4
19. Remove the other directory which contains the file without 6
removing it.
1
OUTPUT:
2
OUTPUT:
3
10. Create two directories.
COMMAND: mkdir dir_name1 dir_name2
This command creates two directories named dir_name1 and dir_name2.
OUTPUT:
12. Create a file using Cat command, write few lines, and exit.
COMMAND: cat > file_name.txt
After running this command, type the lines you want to write in the file and press
Ctrl+D to save and exit.
OUTPUT:
4
OUTPUT:
5
OUTPUT:
6
22. Create tar named file.tar containing file. Extract the files
fromfile.tar
COMMANDS:
• tar -cvf file.tar file.txt
This command creates a tar archive named file.tar containing file.txt.
• tar -xvf file.tar
This command extracts the contents of file.tar.
OUTPUT: