linux:

Super Useful Bash Commands

List all services sudo service --status-all Create a nested directory if it doesn’t exist already. mkdir -p /nested/directory To list detailed information about all items (visible and invisible) in the current directory (the -a option is to show all files, the -l option is to show details) ls -al To list the contents of your Documents folder and all sub folders (this may take a while if you have a large Documents folder) ls -R ~/Documents Find process which is listening to port 3000, and kill that process or process group sudo lsof -i :3000 kill -9 <PID> kill -9 -<PID> [Dangerous] Recursively delete EVERYTHING files rm -rf /tmp/* // everything in '/tmp/' folder rm -rf .

by lek tin in "linux" access_time 4-min read

Install Java on Linux

Install manually Step 1: Download the source package from the oracle repository. If your computer is 64-bit, download the x64 version; if it is 32-bit, download the x86 version. Step 2: Extract from the compressed file and move the package folder to /usr/java. rememeber to run these commands as sudo is not the root user. mv downloads-folder/jdk-<version>-linux-xxx.tar.gz /usr/java tar -xvzf jdk-<version>-linux-xxx.tar.gz rm jdk-<version>-linux-xxx.tar.gz Step 3: Add the java path to the ~/.

by lek tin in "linux" access_time 1-min read