Skip to content

Instantly share code, notes, and snippets.

@0x00009b
Created January 22, 2021 16:02
Show Gist options
  • Save 0x00009b/7b2488eb85770942ff90eeb7421de0c3 to your computer and use it in GitHub Desktop.
Save 0x00009b/7b2488eb85770942ff90eeb7421de0c3 to your computer and use it in GitHub Desktop.
a cheat sheet i made for helping to teach a friend of mine the linux command line
+------------------------------------------------------+
Linux command cheat sheet
+------------------------------------------------------+
COMMAND DESCRIPTION
echo "text" ------ echos text (eg echo "hello world" )
uname -a ------- Show system and kernel
head -n1 /etc/issue ---- Show distribution
mount --------- Show mounted filesystems
date ------------ Show system date
uptime -------- Show uptime (how long the computers been on)
whoami --------- Show your username
man "command" ------ Show manual for command (eg: man uname) (make sure you remove the " )
pwd --------- Show current directory (eg: /root)
mkdir "dir_name" ------ Make directory (eg: mkdir directory1 ) NOTE: directorys are the same as folders
cd .. --------------- Go up a directory
ls ----------- List files in a directory NOTE: you can do ls "directory name" to list files in a directory
ls -a --------- list files including hidden files NOTE: see above NOTE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment