1
00:00:06,679 --> 00:00:11,923
Okay, so first part of the
lab. Well, you know what? It's

2
00:00:11,923 --> 00:00:17,166
all in the TMP directory. So
I would like to get into

3
00:00:17,166 --> 00:00:22,409
the TMP directory CD TMP
and then create a directory structure.

4
00:00:22,550 --> 00:00:27,994
I'm using mkdir
p files, pictures

5
00:00:27,994 --> 00:00:33,439
files, photos
and files videos.

6
00:00:34,280 --> 00:00:38,570
So these are relative directory
names relative to the TMP directory.

7
00:00:39,350 --> 00:00:42,954
And I create multiple
directories in one run. That

8
00:00:42,954 --> 00:00:46,560
is totally fine and
you can perfectly do that.

9
00:00:48,060 --> 00:00:53,875
Now a little trick. If I use tree on
files, then I can see a tree shaped structure

10
00:00:53,875 --> 00:00:59,689
with all these directories. That's a nice way
to get an overview of your current directory structure.

11
00:01:00,770 --> 00:01:06,615
Next, we need to copy all
files that have a name starting with

12
00:01:06,615 --> 00:01:12,462
an A, B or C from
etc to tmp files. So that would

13
00:01:12,462 --> 00:01:18,308
be cp etc a c2 files
where we can see the range as

14
00:01:18,307 --> 00:01:24,153
well as the relative file name.
I don't care about the messages too

15
00:01:24,153 --> 00:01:30,000
much. I didn't specify R
to make it a recursive copy.

16
00:01:30,480 --> 00:01:37,349
I also didn't use sudo to be able to copy
files to which I don't have permissions. And that's okay.

17
00:01:38,090 --> 00:01:42,670
The results should be there. And we
have some files in the TMP files directory.

18
00:01:43,409 --> 00:01:47,549
To make my work a little bit easier,
I'm getting in that directory for the next task.

19
00:01:48,290 --> 00:01:50,790
So from TMP files,
that's where we are.

20
00:01:51,310 --> 00:01:55,890
Move all files that have a name starting
with an A or B to tmp files photos.

21
00:01:56,469 --> 00:02:02,245
So mv a B is arranged
star to photos and then files

22
00:02:02,245 --> 00:02:08,020
with the name starting with
a C to TMP files videos.

23
00:02:08,860 --> 00:02:12,080
So MVC
to videos.

24
00:02:12,699 --> 00:02:16,754
And now if I use three again,
I can see the subdirectories and the

25
00:02:16,754 --> 00:02:20,810
contents of these subdirectories. And that's what
I had in mind with this lab.
