1- # ** Terminal Navigation Assignment**
1+ # Terminal Navigation Assignment
22
3- ## ** Objective**
3+ ## Objective
44This assignment will help you practice ** essential terminal navigation commands** used in Linux/macOS.
55
66By the end of this assignment, you should be able to:
@@ -10,82 +10,83 @@ By the end of this assignment, you should be able to:
1010
1111---
1212
13- ## ** Assignment Instructions**
13+ ## Assignment Instructions
1414
15- ### ** Step 1: Set Up Your Environment**
15+ ### Step 1: Set Up Your Environment
16161 . Open the ** GitHub Codespace** or ** your terminal** if working locally.
17172 . Verify that your working directory contains the following structure:
1818
19+ ```
1920/terminal-navigation-assignment
2021│── practice-directory/
2122│ ├── folder1/
2223│ │ ├── fileA.txt
2324│ ├── folder2/
2425│ │ ├── fileB.txt
2526│ ├── fileC.txt
27+ ```
2628
2729---
2830
29- ### ** Step 2: Complete the Following Tasks**
31+ ### Step 2: Complete the Following Tasks
3032Use terminal commands to complete each task below.
3133
32341 . ** Print your current working directory (absolute path).**
3335``` sh
3436pwd
3537```
36- 2. List all files and directories inside practice-directory.
37- ```
38+
39+ 2 . ** List all files and directories inside practice-directory.**
40+ ``` sh
3841ls practice-directory
3942```
4043
41- 3. Change into folder1 and verify you are inside it.
42- ```
44+ 3 . ** Change into folder1 and verify you are inside it.**
45+ ``` sh
4346cd practice-directory/folder1
4447pwd
4548```
4649
47- 4. Display the contents of fileA.txt.
48- ```
50+ 4 . ** Display the contents of fileA.txt.**
51+ ``` sh
4952cat fileA.txt
5053```
5154
52- 5. Return to the terminal-navigation-assignment root directory in a single command.
53- ```
55+ 5 . ** Return to the terminal-navigation-assignment root directory in a single command.**
56+ ``` sh
5457cd ../../
5558```
5659
57- 6. Find all .txt files inside practice-directory.
58- ```
60+ 6 . ** Find all .txt files inside practice-directory.**
61+ ``` sh
5962find practice-directory -name " *.txt"
6063```
6164
62- 7. Search for the word “ Navigation” inside fileC.txt.
63- ```
65+ 7 . ** Search for the word " Navigation" inside fileC.txt.**
66+ ``` sh
6467grep " Navigation" practice-directory/fileC.txt
6568```
6669
70+ ---
6771
68- ⸻
69-
70- Step 3: Submit Your Work
71- 1. Run the test script to verify your work:
72- ```
72+ ### Step 3: Submit Your Work
73+ 1 . Run the test script to verify your work:
74+ ``` sh
7375bash test_navigation.sh
7476```
7577
76- 2. If all tests pass, commit and push your work:
77-
78- ```
78+ 2 . If all tests pass, commit and push your work:
79+ ``` sh
7980git add .
8081git commit -m " Completed Terminal Navigation Assignment"
8182git push
8283```
8384
84- 3. Your work will be automatically graded using GitHub Actions.
85+ 3 . Your work will be automatically graded using GitHub Actions.
8586
86- ⸻
87+ ---
8788
88- Evaluation Criteria
89+ ## Evaluation Criteria
8990
9091Your assignment will be automatically graded based on:
9192✅ Correct execution of each command.
0 commit comments