Command Line Flashcards
Whats is another term for my computer’s network name?
Hostname
pwd
Print working directory
mkdir
Make directory
cd
Change directory
Ls
List directory
rmdir
Remove directory
pushd
Push directory
popd
Pop directory
cp
Copy a file or directory
mv
Move a file or directory/renaming them
less
Page through a file
cat
Print the whole file
xargs
Execute arguments
find
Find files.
find -STARTDIR -name WILDCARD -print
grep
Find things inside files
man
Read a manual page
apropos
Find what man page is appropriate.
env
Look at your environment.
echo
Print some arguments.
export
Export/set a new environment variable.
exit
Exit the shell.
sudo
DANGER! Become super user root DANGER!
chmod
Change permission modifiers.
chown
Change ownership
touch
Creates a new file
$|$
The | takes the output from the command on the left and “pipes” it to the command on the right.
$<$
The < will take and send the input from the file on the right to the program on the left.
$>$
The > takes the output of the command on the left then writes it to the file on the right.
$»$
The»_space; takes the output of the command on the left then appends it to the file on the right.
*
Matches anything in a wildcard like *.txt