Lab 05
Lab 05
LAB 05
SUBMITTED TO:
MS.TAHREEM TAJAMMAL
SUBMITTED BY:
MUHAMMAD HAMMAD (RCF-30154)
Lab Tasks :
Task-1:
1. Use cd to go to your home directory, and create a new directory there called dog.
2. Create another directory within that one called cat, and another within that called mouse.
3. Remove all three directories. You can either remove them one at a time, or all at once.
4. If you can delete directories with rm -r, what is the point of using rmdir for empty
directories?
5. Try creating the dog/cat/mouse directory structure with a single command.
Task 2:
1. Copy the file /etc/passwd to your home directory, and then use cat to see what’s in it.
2. Rename it to users using the mv command.
3. Make a directory called programs and copy everything from /bin into it.
4. Delete all the files in the program’s directory.