This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder