1
- # ** Terminal Navigation Assignment**
1
+ # Terminal Navigation Assignment
2
2
3
- ## ** Objective**
3
+ ## Objective
4
4
This assignment will help you practice ** essential terminal navigation commands** used in Linux/macOS.
5
5
6
6
By 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:
10
10
11
11
---
12
12
13
- ## ** Assignment Instructions**
13
+ ## Assignment Instructions
14
14
15
- ### ** Step 1: Set Up Your Environment**
15
+ ### Step 1: Set Up Your Environment
16
16
1 . Open the ** GitHub Codespace** or ** your terminal** if working locally.
17
17
2 . Verify that your working directory contains the following structure:
18
18
19
+ ```
19
20
/terminal-navigation-assignment
20
21
│── practice-directory/
21
22
│ ├── folder1/
22
23
│ │ ├── fileA.txt
23
24
│ ├── folder2/
24
25
│ │ ├── fileB.txt
25
26
│ ├── fileC.txt
27
+ ```
26
28
27
29
---
28
30
29
- ### ** Step 2: Complete the Following Tasks**
31
+ ### Step 2: Complete the Following Tasks
30
32
Use terminal commands to complete each task below.
31
33
32
34
1 . ** Print your current working directory (absolute path).**
33
35
``` sh
34
36
pwd
35
37
```
36
- 2. List all files and directories inside practice-directory.
37
- ```
38
+
39
+ 2 . ** List all files and directories inside practice-directory.**
40
+ ``` sh
38
41
ls practice-directory
39
42
```
40
43
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
43
46
cd practice-directory/folder1
44
47
pwd
45
48
```
46
49
47
- 4. Display the contents of fileA.txt.
48
- ```
50
+ 4 . ** Display the contents of fileA.txt.**
51
+ ``` sh
49
52
cat fileA.txt
50
53
```
51
54
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
54
57
cd ../../
55
58
```
56
59
57
- 6. Find all .txt files inside practice-directory.
58
- ```
60
+ 6 . ** Find all .txt files inside practice-directory.**
61
+ ``` sh
59
62
find practice-directory -name " *.txt"
60
63
```
61
64
62
- 7. Search for the word “ Navigation” inside fileC.txt.
63
- ```
65
+ 7 . ** Search for the word " Navigation" inside fileC.txt.**
66
+ ``` sh
64
67
grep " Navigation" practice-directory/fileC.txt
65
68
```
66
69
70
+ ---
67
71
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
73
75
bash test_navigation.sh
74
76
```
75
77
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
79
80
git add .
80
81
git commit -m " Completed Terminal Navigation Assignment"
81
82
git push
82
83
```
83
84
84
- 3. Your work will be automatically graded using GitHub Actions.
85
+ 3 . Your work will be automatically graded using GitHub Actions.
85
86
86
- ⸻
87
+ ---
87
88
88
- Evaluation Criteria
89
+ ## Evaluation Criteria
89
90
90
91
Your assignment will be automatically graded based on:
91
92
✅ Correct execution of each command.
0 commit comments