Title: Navigate your own file system using Linux commands
Time: 15-30 minutes
Purpose: To practice using Linux commands to navigate your own file system and identify the directories present.
Introduction:
In the lesson Navigation of the file structure, I demonstrate the use of 6 Linux commands to navigate the file system and to identify and list the contents of the current directory. This activity allows you to have a play navigating around your own file system to see what you can find!
Activity:
Open your command line or terminal and have a go at:
- Using pwd to identify your current working directory
- Using βcdβ with β.β and ββ¦β to navigate between directories
- Navigating to a directory using an exact path
- Getting to your home directory quickly using β~β
- Identifying whatβs in your current directory using βlsβ
- Finding out what else is in there using βls -aβ and βls -alβ
- Having a look at whatβs in a hidden directory (hint - hidden directories revealed by ls -al)
- Consider why some directories are hidden
Bonus ninja points : Find out where the βpwdβ command is in your file system