Command Line Meanings Flashcards
Takes current directory and pushes it into a list for later, then changes it to another directory. “Save where I am, then go here.”
pushd
command takes the last directory you pushed and “pops” it off, taking you back there.
popd
removes directory
rmdir or rm space then filename
make a directory
mkdir
change a directory
cd
print working directory
pwd
copy a file
cp
see the contents of a text file
less
takes the output from the command on the left, and “pipes” it to the command on the right.
$|$
will take and send the input from the file on the right to the program on the left.
$>$
sometimes known as commands all on their own, because they indicate the general idea of what you want. Most of the time, you can simply run a utility all by itself, without any flags or arguments. Most commands only have one
utility
show it to me in long format
-l
Copies the $FILE to the $LOCATION.
cp $FILE $LOCATION
move. Moves the $FILE to the $LOCATION.
mv $FILE $LOCATION
remove. Deletes a file permanently.
rm