You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/02-Working-With-Shell-Part-I/06-Lab-Linux-Bash-Shell.md
+26-4Lines changed: 26 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,35 @@
2
2
3
3
- Access Hands-On Labs here [Hands-On Labs](https://kodekloud.com/courses/873064/lectures/17074355)
4
4
5
-
1. To check the default shell for the current user.Display the shell for the current user but not necessarily the shell that is running at the movement.
5
+
1. To check the default shell for the current user.Display the shell for the current user but not necessarily the shell that is running at the movement.
6
6
```
7
7
$ echo $SHELL
8
8
```
9
-
1. To change the shell for bob from **`Bash`** to **`Bourne Shell`**
9
+
2. To change the shell for bob from **`Bash`** to **`Bourne Shell`**
10
10
```
11
11
$ chsh -s /bin/sh bob
12
12
```
13
-
14
-
13
+
3. What is the value of the environment variable **`TERM`**
14
+
```
15
+
echo $TERM
16
+
```
17
+
4. Create a new environment variable called **`PROJECT=MERCURY`** and make it persistent by adding the variable to the **`~/.profile`** file.
18
+
```
19
+
echo export PROJECT=MERCURY >> ~/.profile
20
+
```
21
+
5. Which of the following directories is not part of the PATH variable?
22
+
```
23
+
/opt/caleston-code
24
+
```
25
+
6. Set an alias called **`up`** for the command **`uptime`** and make it persistent by adding to **`~/.profile`** file.
26
+
```
27
+
echo alias up=uptime >> ~/.profile
28
+
```
29
+
7. Update Bob's prompt so that it displays the date as per the format below:
0 commit comments