Terminal exercises:
Part I
mkdir
first
cd
first
touch
person.txt
mv
person.txt another.txt
cp
another.text copy.txt
rm
copy.txt
copy -r
first second
rm -r
second
Part II
- Man describes the command and the options it takes. Space bar scrolls through the man page.
l
flag lists files in the long format. a
flag includes names that begin with a .
(Hidden files).
- ctrl + A
- ctrl + E
- ctrl + A
- ctrl + W
- Terminal is the program you use to access the shell (bash, zsh, fish, etc. . .)
- Absolute path describes the location to a file from the root directory.
- Relative path describes the location of a file relative to your current working directory.
- A flag adds additional options to the cmd. I have used
-l
, -a
and -r
.
-r
recursively scans the directory looking for files to remove and -f
forces a delete of any file found.