Skip to content

Instantly share code, notes, and snippets.

@skuppa
skuppa / LinuxEnvironmentLoading.md
Last active August 29, 2015 13:55
Envrionment loading for linux/debian/ubunt/linuxmint

Tips on envrionment loading for linux/debian/ubunt/linuxmint

  1. .bashrc will be loaded when login from unity, desktop UI or F7..F12
  2. .bash_profile willbe loaded when login from command prompt, F1..F6, login from ssh
  3. .profile will be loaded when login from UI console, which will source .bashrc
  4. Enabled longin as shell in the terminal to load the .bash_profilel

source

@skuppa
skuppa / LinuxTips.md
Last active January 4, 2016 04:48
Kill the process listening on port 8080

To kill the process using port

kill `netstat -nlp | grep 8080 | awk '{print $7}' | cut -d/ -f1`

To get public ip address using command line

curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'