Commands Flashcards
Given name of command as question, given definition of command which is answer.
pwd
print working directory
hostname
my computer’s network name
mkdir
make directory
cd
change directory
ls
list directory
rmdir
remove directory
pushd
push directory, takes you in and out of path you just pushed through
popd
pop directory, takes the last directory you pushed into, and “pops” it off, taking you back to pre-pushing
cp a.txt b.txt, cp a.txt directory/, and cp -r directoryx directoryy
copy a file or directory, can make copies of texts with new names, can make copies of texts into directories, and can copy directories into directories, which will include all files that were part of the pat
mv
move a file or directory
less
page through a file
cat
print the whole file
xargs
execute arguments
find
find files, find STARTDIR, the command is: -name “WILDCARD” - print…. and can | this to less
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
Command Line Reverse
print working directory
pwd