Chapter 8 Flashcards
- Asterisk
Ex: echo /etc/t*
Displays all of the files in the /etc directory that begins with the letter T
? question mark
Depending on the amount used, it would display files with x amount of characters
Ex: echo /etc/t??????? (7 quesiton marks)
etc/terminfo
[] brackets
matches any file that begins with the letters put inside of brackets
Ex: echo /etc/[gu]
! exclamation mark
Used to negate a range
Ex: echo /etc/[!a-t]*
cp
copy
cp source destination
ex: cp /etc/hosts ~
cp -v
verbose
Produces output if successful
mv
moving files command
also used to rename
additional mv options
touch
create empty file
rm
remove/delete files
rm -r
add recursive to remove directories
rmdir
remove directory but only if directly is empty
mkdir
Create directory