Skip to content

Instantly share code, notes, and snippets.

@henryvoorburg
Created April 29, 2020 16:34
Show Gist options
  • Save henryvoorburg/387ba2add96936f99981351c75b32b77 to your computer and use it in GitHub Desktop.
Save henryvoorburg/387ba2add96936f99981351c75b32b77 to your computer and use it in GitHub Desktop.
Linux and macOS Command Line Basics
# tree navigation
pwd
cd
cd /
cd ..
ls
ls -l
# file/directory manipulation
touch
mv
cp
cp -r
rm
rm -r
mkdir
rmdir
# reading/editing files
cat
nano
vim
less
more
tail -f
# super user
sudo
sudo -s
# miscellaneous
clear
reset
exit
poweroff
reboot
man
history
history -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment