Create Hidden Notes

Create a Hidden folder called notes and a note file

  • create a hidden notes directory in you home directory
  • create a file-system-navigation.notes file in your new hidden notes directory
  • edit the file-system-navigation.notes file with a brief description of what each of the following commands do:
    • pwd
    • ls
    • cd
    • absolute path vs relative path
    • ., .. and ~ shortcuts
    • mkdir
    • touch
    • mv

Questions & Answers

What is the command to change working directories?

CLICK FOR ANSWER

cd

What is an absolute path?

CLICK FOR ANSWER

An absolute path is the unique path for a specific file/directory. It always starts at root (/).

What is a relative path?

CLICK FOR ANSWERR

The path to a file/directory relative to the current working directory. This path always starts from the current working directory sometimes denoted as a . character.

What is the nano program?

CLICK FOR ANSWER

nano is a command line text editor. It allows you to edit the text content of files directly from a terminal.

How do you save a file in nano?

CLICK FOR ANSWER

One way to save a file in nano is to press Ctrl + O to write out the file.

How do you exit a file in nano?

CLICK FOR ANSWER

You exit a file in nano by pressing Ctrl + X to exit the file. If changes have been made to the file nano will ask you if you want to write changes before exiting, or to discard changes before exiting.