I'll be collecting any convenient snippets of shell commands I find and use in here.
Last active
September 7, 2017 13:04
-
-
Save 5310/7dfba60d62109fc00a0d to your computer and use it in GitHub Desktop.
List of convenient shell commands. #cheatsheet
sudo service smbd start
sudo service smbd restart
sudo service smbd stop
Respectively tries to start restart or stop any service smbd
(Samba, as an example).
du -h -d 1 | sort --human-numeric-sort -r
Lists all top-level folders by their total size in decreasing order.
history
Shows a list of all executed shell commands that is still recorded.
! ###
Runs the specific numbered entry in history.
nmap -sP 192.168.1.1/24
Lists all reachable peers on the network 192.168.1.1/24 (which is 192.168.1.0 over 255.255.255.0).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment