Common Command Line Commands Flashcards
(27 cards)
change directory
cd
List files and directories in current directory.
ls
Display the path of the current directory.
pwd
create a file
touch
create a directory
mkdir
Copy one or more files to a new location
cp
Move or rename a file or directory
mv
Make a new directory
mkdir
Create a new file or update modification time if a file with that name exists
touch
Remove one or more files or directories *cannot undo PERMANENT
rm
Exit out of any executables process
ctrl + c
create
-c
zip
-z
file
-f
number of dashes for abbreviated flags
one dash
number of dashes for full word flags
two dashes
combine -c, -z, -f
-czf
Display documentation about a command.
man
Copy a file or directory.
cp
Move or rename a file or directory.
mv
Print text to STDOUT.
echo
Display contents of a file.
cat
Display contents of a file, starting at the top and letting the user scroll down.
more
Display contents of a file in an even more interactive way.
less