Assignment 2: Navigating the Linux Filesystem and Basic Commands
1. Open your terminal.
2. Find your current working directory. What command did you use?
Command: pwd
3. Create a new directory named my_first_linux_folder in your home
directory.
Command: mkdir my_first_linux_folder
4. Navigate into my_first_linux_folder.
Command: my_first_linux_folder
5. Create three empty text files inside my_first_linux_folder named file1.txt,
file2.txt,and file3.txt.
Command: touch file1.txt file2.txt file3.txt
6. List all the files and directories within my_first_linux_folder, including
hidden files.
Command: ls -a
7. Create a subdirectory inside my_first_linux_folder named sub_folder.
Command: mkdir sub_folder
8. Copy file1.txt into sub_folder.
Command: cp file1.txt sub_folder/
9. Move file2.txt from my_first_linux_folder to sub_folder.
Command: mv file2.txt sub_folder/
10. Rename file3.txt to important_note.txt within my_first_linux_folder.
Command: mv file3.txt important_note.txt
11. Go back to your home directory.
Command: cd
12. Remove the entire my_first_linux_folder along with its contents.
Command: rm -r my_first_linux_folder