Viewing and Changing the File System
Navigating the Filing System
Redirecting Input and Output
Configuring the Environment
Potpourri
100

The "ls -alt" command does this.

What lists all contents of the working directory, including hidden files and directories, in long format ordered by the date and time they were last modified?

100

This shorthand character represents a user's home directory.

What is ~ (tilde)?

100

This allows you to bypass the GUI and use text commands to directly access the operating system.

What is the Command Line Interface or CLI?

100

This is made up of the settings and preferences, which we configure to support the commands and programs we create.

What is environment?

100

This command is used to change the location where a file is stored.

What is "mv"?

200

This command will a display a detailed list of directories and files...

ls -l

200

This command displays the current working directory.

What is "pwd"?

200
'grep' stands for this.

What is 'global regular expression print'.

(It searches files for lines that match a pattern and then returns the results. It is also case sensitive. 'grep -i' is case insensitive).

200

This shell command is used to assign other commonly used commands to shortcut nicknames.

What is alias?

200

You create a new file such as index.js using this command...

What is touch?

300

This command moves the file1.txt into the "Child" directory and also changes the file name to file2.txt?

mv file1.txt Child/file2.txt

300

This command always navigates the command-line interface back to the home directory.

What is "cd ~" or "cd"?

300

The following command line:

“sed ‘s/h1/h2/g’ index.html”

does this...

What is using the sed ("stream editor") command to substitute any character combination with the letters "h1" in the index.html file with "h2"?

300

This shortcut key saves a file in nano.

What is Ctrl + o?

300

A file that exists but is not within any sub folder of the file system is said to be in this, i.e. files in this location have no parent directory.

What is the root directory?

400

~/GrandparentDirectory/ParentDirectory/ChildDirectory/childFile.js

You would write this command to delete the parentDirectory and all its nested directories when you are currently in the childDirectory.

What is rm -r ../../ParentDirectory?

400

In your file system, the name of a directory is differentiated from that of a file by this character.

What is / (forward slash)?

400

This animal of a command pulls all the information from a file onto the terminal...

cat

400

This is a text editor like TextEdit or Notepad, except it’s only accessible from the command line.

What is nano?

400

The exact location of a file is called this...

What is its (absolute) path?

500

This command copies each of the .html files in the working directory that begin with the letter "d" into the working directory's parent folder

cp d*.html ../

500

To copy a file to another directory, I would use this command...

cp

500

The following code

“echo Hello  > hello.txt | echo World > world.txt | cat world.txt >> hello.txt | cat < hello.txt”

will output this...

What is "Hello World" (on two lines).

500

This command makes a given variable available to all child sessions from the current session...

export

500

These three loops can be performed in bash scripting...

What are for, while, and until