Skip to content

Commit 8928d2e

Browse files
authored
Update modify.md
try to fix numbering
1 parent c244aab commit 8928d2e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

docs/modify.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,32 +178,27 @@ This command is used to copy files or directories.
178178
cd exercises
179179
cd mytestdir
180180
```
181-
182181
2. Copy the file ``myfile.txt`` to the subdirectory ``testdir1``:
183182

184183
```bash
185184
cp myfile.txt testdir1
186185
```
187-
188186
3. Create a new directory called ``testdir3`` inside ``testdir1``
189187

190188
```bash
191189
cd testdir1
192190
mkdir testdir3
193191
```
194-
195192
4. Copy the new subdirectory ``testdir3`` to the directory ``testdir2``. Remember, "testdir2" is located outside "testdir1" and at the same "level". This can be done in more than one way. Remember you need the option ``-r`` (for recursive) when copying directories:
196193
a) "Go up one" and then copy:
197194
```bash
198195
cd ..
199196
cp -r testdir1/testdir3 testdir2/
200197
```
201-
202198
b) Copy will standing inside ``testdir1``
203199
```bash
204200
cp -r testdir3 ../testdir2
205201
```
206-
207202
5. If you give the full path while copying, this can be done from anywhere.
208203

209204
## mv - rename files/directories

0 commit comments

Comments
 (0)