Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) List the contents of the root directory QA: how many directories are there in

ID: 3790204 • Letter: 1

Question

1) List the contents of the root directory
   QA: how many directories are there in total?
   QB: how can you tell the difference between files and directories?

2) Print your current working directory and note the path (mine is /home/jason)

3) Create a new directory named path_test

4) create a new directory under path_test caleld path_test_2 without changing directories
   QC: what command syntax do you use (the full command)?

5) create a new directory under path_test_2 called path_test_3 without typing the entire (absolute) path. Hint: you'll need to do something before you can create the directory.
   QD: what command syntax do you Use first?
   QE: what command syntax do you use to create path_test_3?

6) Change directories so that your pwd is /home/[username]/path_test/path_test2/path_test3
   QF: what command syntax do you use to change to path_test2? do it.
   QG: what command syntax do you use to change back to your home? do it.

Explanation / Answer

1) QA)$ ls -d. */

QB)ls -d colour -a color

2)$ pwd

3)mkdir path_test

4)mkdir -p path_test/path_test_2

5)Qa)I could change the current directory

cd /path_test/path_test2

Qb)mkdir path_test3

6)QF)cd /path_test/path_test2

QG)cd /

2)