Linux Command Line Flashcards
mkdir
make directory
rmdir
remove directory
touch
create a file within a directory
rm
remove a file
mv
move or rename files
/
root directory
..
go up to parent directory
absolute path
any path that starts with /
whoami
remind you of username
~
starting from the home directory
mkdir -p
any directories listed after and separated by a forward slash will be nested within one another
>
capture the output of a command, followed by name of file to write to
cat
look at the content of a file, concatenate
echo
prints its arguments back out again
?
any single character
*
zero or more characters
> >
append to, rather than replace
less
see things in an easier view, press q to quit
rm -r
delete a directory and all folders inside
wc
word count
|
pipe the output from first command as input for second command
uniq
output uniq lines in the file
man
see the manual for a command
su
switch to super user
sudo
switch and do following command, prevents you from having to remember to exit out of super user once you are done
.
dot before a file name makes it hidden