Skip to content

Commit 8e3484b

Browse files
committed
update
1 parent 006240c commit 8e3484b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

04-linux-101 copy.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ Inside the root directory are several other directories:
5050
`tmp` (for temporary files that don't need to be stored long-term),
5151
and so on.
5252

53-
We know that our current working directory `/users/april` is stored inside `/users`
54-
because `/users` is the first part of its name.
55-
Similarly, we know that `/users` is stored inside the root directory `/`
53+
We know that our current working directory `/home/pi` is stored inside `/home`
54+
because `/home` is the first part of its name.
55+
Similarly, we know that `/home` is stored inside the root directory `/`
5656
because its name begins with `/`.
5757

5858
> Notice that there are two meanings for the `/` character.
@@ -72,7 +72,7 @@ $ ls
7272
arranged neatly into columns.
7373

7474
We can make its output more comprehensible by using the flag `-F`,
75-
which tells `ls` to add a trailing `/` to the names of directories:
75+
which tells `ls` to add a trailing `/` to the names of directories.
7676

7777
```
7878
$ ls -F
@@ -83,20 +83,19 @@ $ ls -F
8383
We can *change directory* using `cd` followed by a directory name. This will change our location to a different directory.
8484

8585
```
86-
$ cd data
86+
$ cd python_games
8787
```
8888

8989
`cd` doesn't print anything, but if we run `pwd` after it, we can see where we are now.
90-
If we run `ls` without arguments now, it lists the contents of our new directory,
91-
because that's where we now are:
90+
If we run `ls`, it lists the contents of where we are now.
9291

9392
```
9493
$ pwd
9594
$ ls
9695
```
9796

98-
We now know how to go down the directory tree.
99-
How do we go up?
97+
We now know how to go down into a directory.
98+
How do we go up and out of our current directory?
10099

101100
It’s simple to use `cd ..` to go up one level:
102101

@@ -107,7 +106,7 @@ $ pwd
107106
```
108107

109108
`..` is a special directory name meaning
110-
"the directory containing this one", or more succinctly, the parent of the current directory.
109+
"the directory containing this one", or, "the parent of the current directory".
111110

112111
Another option when changing directories is to list the complete *absolute* path starting with root directory `/`
113112

0 commit comments

Comments
 (0)