@@ -50,9 +50,9 @@ Inside the root directory are several other directories:
50
50
` tmp ` (for temporary files that don't need to be stored long-term),
51
51
and so on.
52
52
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 ` / `
56
56
because its name begins with ` / ` .
57
57
58
58
> Notice that there are two meanings for the ` / ` character.
72
72
arranged neatly into columns.
73
73
74
74
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.
76
76
77
77
```
78
78
$ ls -F
@@ -83,20 +83,19 @@ $ ls -F
83
83
We can * change directory* using ` cd ` followed by a directory name. This will change our location to a different directory.
84
84
85
85
```
86
- $ cd data
86
+ $ cd python_games
87
87
```
88
88
89
89
` 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.
92
91
93
92
```
94
93
$ pwd
95
94
$ ls
96
95
```
97
96
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 ?
100
99
101
100
It’s simple to use ` cd .. ` to go up one level:
102
101
@@ -107,7 +106,7 @@ $ pwd
107
106
```
108
107
109
108
` .. ` 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" .
111
110
112
111
Another option when changing directories is to list the complete * absolute* path starting with root directory ` / `
113
112
0 commit comments