Linux Commands
CronJobs
Command Format # Example of job definition: # .---------------- minute (0 - 59) # | .-----------...
File and Folder
Show file contents from tail with specific line number limit: tail -n 200 <file> Show file conte...
Process
Sort process by memory usage ps aux --sort=-%mem | head -n 30 Sort process by CPU usage ps aux -...
Disk Management
Disk device list lsblk Show disk detail: lsblk -o NAME,UUID,SIZE,TYPE,MOUNTPOINT Detect the dis...
Install Docker on Ubuntu
To install Docker on Ubuntu, you can follow these steps: Step 1: Update Package Index First, upda...
Enable IPv6 on Ubuntu
Activating IPv6 on your system typically involves ensuring that your network infrastructure and c...
Find Unidentified Web Service on a Server
If you're on a server console and need to update the SSL certificate but don't know which web ser...
Calculate Size of a Folder
sudo du -h -d 1 /<path>
Git Pull & Merge from Forked Repository
Checkout From your project repository, check out a new branch and test the changes. git fetch -u ...
Running a Web Server with PHP
If you want to run a PHP server directly without Docker, you can use PHP's built-in web server, w...
Zip Files and Folders
To compress an entire folder into a .zip file, you can use several methods depending on your oper...
Unzip .tar.gz File
To unzip .tar.gz files, you typically use the tar command-line utility, which can handle both tar...