Skip to content

Instantly share code, notes, and snippets.

View Cameron-C-Chapman's full-sized avatar

Cameron Chapman Cameron-C-Chapman

View GitHub Profile
@Cameron-C-Chapman
Cameron-C-Chapman / ubuntu_help
Last active August 29, 2015 13:56
Helpful Ubuntu Commands
# check what ports are in use
sudo netstat -ntlp | grep LISTEN
# find the process id of a program
ps aux | grep -i “name of your desired program”
# and kill it
sudo kill -9 process_id
@Cameron-C-Chapman
Cameron-C-Chapman / install-oracle-java
Created January 26, 2014 20:00
Install Oracle JDK on Ununtu
# Installing Oracle (Sun) JDK on Ubuntu
# Before you install it, remove OpenJDK, if you have it installed:
sudo apt-get purge openjdk*
# To install Java 8/7/6, do this:
# Add the PPA:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/java