Skip to content

Commit 649f922

Browse files
committed
Add clarity to examples in basic shell commands
1 parent 88134e7 commit 649f922

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ebook/en/content/004-basic-shell-commands.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ The `ls` command allows you to list the contents of a folder/directory. All that
1212
ls
1313
```
1414

15-
The output will show you all of the files and folders that are located in your current directory. In my case, the output is the following:
15+
The output will show you all of the files and folders that are located in your current directory. In my case, starting from the root directory of this project, the output is the following:
1616

1717
```
18-
CONTRIBUTING.md ebook README.md
18+
CONTRIBUTING.md LICENSE README.md ebook index.html
1919
```
2020

21+
From the output, we can see that `CONTRIBUTING.md`, `LICENSE`, `README.md`, `index.html` are files, while `ebook` is a subdirectory/subfolder.
22+
2123
For more information about the `ls` command, make sure to check out this page [here](https://devdojo.com/tnylea/ls-command?ref=bobbyiliev).
2224

2325
> Note: This will work on a Linux/UNIX based systems. If you are on Windows and if you are using the built-in CMD, you would have to use the `dir` command.
@@ -30,7 +32,7 @@ The `cd` command stands for `Change Directory` and allows you to navigate throug
3032
cd ebook
3133
```
3234

33-
If I wanted to go back one level up, I would use the `cd ..` command.
35+
If I wanted to go back one level up, I would use the `cd ..` command. After doing so, I should be one level up from the `ebook` directory and back in the root directory of my project.
3436

3537
### The `pwd` command
3638

@@ -95,7 +97,7 @@ mkdir My_New_Directory My_Another_New_Directory
9597

9698
### The `touch` command
9799

98-
The `touch` command is used to update timestamps on files. A useful feature of the touch command is that it will create an empty file. This is useful if you want to create file in your directory that doesn't currently exist
100+
The `touch` command is used to update timestamps on files. A useful feature of the touch command is that it will create an empty file. This is useful if you want to create file in your directory that doesn't currently exist:
99101

100102
```bash
101103
touch README.md

0 commit comments

Comments
 (0)