Okay, so first part of the lab. Well, you know what? It's
all in the TMP directory. So I would like to get into
the TMP directory CD TMP and then create a directory structure.
I'm using mkdir p files, pictures
files, photos and files videos.
So these are relative directory names relative to the TMP directory.
And I create multiple directories in one run. That
is totally fine and you can perfectly do that.
Now a little trick. If I use tree on files, then I can see a tree shaped structure
with all these directories. That's a nice way to get an overview of your current directory structure.
Next, we need to copy all files that have a name starting with
an A, B or C from etc to tmp files. So that would
be cp etc a c2 files where we can see the range as
well as the relative file name. I don't care about the messages too
much. I didn't specify R to make it a recursive copy.
I also didn't use sudo to be able to copy files to which I don't have permissions. And that's okay.
The results should be there. And we have some files in the TMP files directory.
To make my work a little bit easier, I'm getting in that directory for the next task.
So from TMP files, that's where we are.
Move all files that have a name starting with an A or B to tmp files photos.
So mv a B is arranged star to photos and then files
with the name starting with a C to TMP files videos.
So MVC to videos.
And now if I use three again, I can see the subdirectories and the
contents of these subdirectories. And that's what I had in mind with this lab.