Activity: Navigate Around Your Own File System

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 :thinking:

Bonus ninja points :ninja_black:: Find out where the β€œpwd” command is in your file system