Skip to content

Instantly share code, notes, and snippets.

@usbmonkey
Created April 22, 2014 14:57
Show Gist options
  • Save usbmonkey/11182461 to your computer and use it in GitHub Desktop.
Save usbmonkey/11182461 to your computer and use it in GitHub Desktop.
#fsck on every reboot
touch /forcefsck
#output processes and threads of a user
ps -LF -u user_name
#run last command with sudo
sudo !!
#command generates a simple web page over HTTP for the directory structure tree
#and can be accessed at port 8000 in browser till interrupt signal is sent
python -m SimpleHTTPServer
#run default text editor
Ctrl-x-e
#numbering string in file
nl file.txt
#socket statistics
ss
#nice formatting with specification
mount | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment