Terminal (Linux/macOS) Flashcards
Learn common commands used in macOS Terminal
CLI
Command Line Interface
pwd
print working directory
hostname
my computer’s network name
mkdir
make directory
cd
change directory
rmdir
remove directory
ls
list directory
pushd
push directory
popd
pop directory
cp
copy
mv
move
less
page through a file (c.f. more)
cat
print the whole file (c.f. type)
xargs
excute arguments
find
find files (c.f. dir -r)
grep
find things inside files (c.f. select-string)
man
read a manual page (c.f. help)
apropos
find what manual page is appropriate (c.f. helpctr)
env
look at your environment
echo
print some arguments
export
export/set a new environment variable (c.f. set)
exit
exit the shell
sudo
DANGER! become superuser root DANGER! (c.f. runas)
chown
change file/directory ownership
chmod
change file/directory permissions
touch
make an empty file (c.f. New-Item)