Skip to content

Instantly share code, notes, and snippets.

@pontikos
Created January 7, 2015 14:35
Show Gist options
  • Select an option

  • Save pontikos/079093252cea956a15fd to your computer and use it in GitHub Desktop.

Select an option

Save pontikos/079093252cea956a15fd to your computer and use it in GitHub Desktop.
Some random shell commands.
#Which shell?
ps | grep $$
#Which distro?
cat /etc/issue
#Which connections?
lsof -i
netstat -lptu
cat /proc/xxxx/net/tcp
#Which mounted filesystems?
df
#Add history, auto-completion to sqlplus:
alias sql=rlwrap -c sqlplus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment