Shell Commands Flashcards
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
popd
pop directory
cp
copy a file or directory
mv
move a file or directory
less
Mac/Linux
page through a file
cat
Mac/Linux
print the whole file
robocopy
robust copy
more
page through file
type
print whole file
xargs
Mac/Linux
execute arguments
forfiles
run command on lots of files
find
Mac/Linux
find files
dir -r
find files
grep
Mac/Linux
find things inside files
select-string
find things inside files
man
Mac/Linux
read a manual page
help
read manual page
apropos
Mac/Linux
find what man page is appropriate
helpctr
find what man page is appropriate
env
Mac/Linux
look at your environment
echo
print some arguments
set
export/set a new environment variable
export
Mac/Linux
export/set a new environment variable
exit
exit the shell
sudo
Mac/Linux
become super user root
runas
become super user root