All Commands of the Day
ls -la
Lists all files and directories in the current location, including hidden ones, with detailed permissions and ownership information.
Found in: 100 Essential Linux VPS Commands Every Beginner Should Knowchmod 755 script.sh
Grants read and execute permissions to everyone, but write permissions only to the owner.
Found in: Linux File Permissions Explained: chmod, chown & chgrpnano /etc/ssh/sshd_config
Opens the main configuration file for the SSH daemon.
Found in: How to Secure SSH on a VPSdig A google.com
Performs a DNS lookup to find the IP address associated with a domain name.
Found in: How Web Hosting Works: From Domain to Websitejava -Xms2G -Xmx4G -jar paper.jar nogui
Starts a Minecraft server allocating a minimum of 2GB and a maximum of 4GB of RAM.
Found in: How to Set Up a Minecraft Server From Scratchhtop
An interactive, real-time process viewer and process manager for Unix systems offering intuitive color-coded resource metrics.
Found in: 50 Linux Commands for Server Administrationglances
A cross-platform curses-based monitoring tool that summarizes CPU, memory, load, network, and disk I/O in a single clean terminal dashboard.
Found in: How to Check CPU, RAM, Disk & Network Usage on Linuxkill -15 <PID>
Sends the SIGTERM signal to a process, allowing it to shut down gracefully, save state, and release file locks before exiting.
Found in: How to Find and Stop High-CPU Processesps aux --sort=-%mem | head -n 10
Lists the top 10 memory-consuming processes currently active on your Linux system in descending order.
Found in: How to Find Which Process Is Using Your RAMncdu
An NCurses-based disk usage analyzer that lets you interactively browse directories and delete massive space hogs directly from your terminal.
Found in: How to Find Large Files Taking Up Disk Spacess -tulpn
Displays all listening TCP and UDP sockets with their associated process names and PIDs on Linux systems.
Found in: How to Check Open Ports on a Linux VPSfuser -k 8080/tcp
Finds and forcefully kills the process currently occupying TCP port 8080.
Found in: How to Find Which Application Is Using a Portsystemctl status <service>
Displays the real-time execution status, active state, PID, memory usage, and recent journal log entries for a systemd unit.
Found in: How to Manage Linux Services With systemctljournalctl -xeu <service>
Displays log entries for a specified unit with explanatory catalog text, jumping straight to the end of the journal pager.
Found in: How to Read Server Logs With journalctlcrontab -e
Opens the current user's crontab configuration file in the default text editor to add, edit, or remove scheduled jobs.
Found in: How to Schedule Tasks With Cron Jobscrontab -l
Lists all scheduled cron jobs configured for the current user.
Found in: 50 Useful Cron Job Examples for Linuxscp -r user@remote:/var/www/html /local/backup/
Recursively copies the remote directory /var/www/html to the local /local/backup/ folder over an encrypted SSH connection.
Found in: How to Transfer Files Between Linux Servers With SCPsftp -P 22 user@server_ip
Initiates an interactive, encrypted SFTP session to browse, upload, and download files on a remote Linux server.
Found in: SFTP Explained: Secure File Transfers on Linuxtar -czvf archive.tar.gz /path/to/folder
Creates a gzip-compressed tar archive with verbose progress output.
Found in: How to Compress and Extract Files With TARsudo apt update && sudo apt upgrade -y
Updates local package index caches and upgrades all installed system packages to their latest secure versions in a single combined command.
Found in: How to Install Software Using APTsudo apt --fix-broken install
Attempts to correct a system with broken dependencies by downloading and installing missing dependency packages automatically.
Found in: How to Fix Broken Packages on Ubuntusudo usermod -aG sudo <username>
Appends the specified user to the administrative 'sudo' group, granting them root privileges via sudo.
Found in: How to Create Users and Groups in Linuxssh-keygen -t ed25519 -C 'your_email@example.com'
Generates a modern, high-security Ed25519 elliptic-curve SSH keypair with an optional email comment.
Found in: How to Configure SSH Keyssudo ufw enable
Enables and activates the Uncomplicated Firewall with all currently configured packet filtering rules on Linux.
Found in: How to Configure UFW Firewallsudo ufw status verbose
Displays detailed information on current UFW state, default policies, logging levels, and active firewall rules.
Found in: 50 Useful UFW Firewall Commandsfail2ban-client status sshd
Displays real-time Fail2Ban statistics for the SSH jail, including total failed attempts, currently banned IPs, and active filter rules.
Found in: How to Install and Configure Fail2Banhostnamectl set-hostname server01.rivincloud.in
Sets the official system hostname and updates kernel network naming configurations permanently on modern Linux systems.
Found in: Complete Linux VPS Setup Guide From Scratchcurl -I http://localhost
Sends an HTTP HEAD request to test if the local web server is responding properly with HTTP status codes and headers.
Found in: How to Host a Website on a VPSnginx -v
Displays the installed version of the Nginx web server binary.
Found in: Nginx Explained: What It Does and Why It's Usedapache2ctl -S
Dumps all parsed Apache virtual hosts, port configurations, and default servers with line numbers for fast debugging.
Found in: Apache Web Server Explainedcurl -I http://localhost
Queries the local web server to inspect HTTP response headers, including the exact Server header identifying Nginx or Apache.
Found in: Nginx vs Apache: Understanding the Differencessudo nginx -t
Tests the syntax and integrity of all Nginx configuration files without interrupting or reloading active web server processes.
Found in: How to Install Nginx on Ubuntusudo ln -s /etc/nginx/sites-available/site1.com /etc/nginx/sites-enabled/
Creates a symbolic link to activate an Nginx virtual host configuration without copying or duplicating configuration files.
Found in: How to Host Multiple Websites on One Serverdig +short A yourdomain.com
Queries authoritative DNS servers and returns only the resolved IPv4 address for the specified domain name.
Found in: How to Configure a Domain for Your Websitedig any yourdomain.com
Queries authoritative DNS nameservers to retrieve all available DNS record types configured for a specified domain.
Found in: A, AAAA, CNAME, MX, TXT & SRV Records Explaineddig +trace yourdomain.com
Traces the complete hierarchical DNS resolution chain from Root servers down to Authoritative nameservers in real time.
Found in: How DNS Workssudo certbot --nginx
Automatically obtains and installs a Let's Encrypt SSL/TLS certificate into your Nginx configuration and enables HTTP to HTTPS redirection.
Found in: How to Configure SSL/HTTPS for a Websitecurl -I https://rivincloud.in
Fetches HTTP headers over an encrypted HTTPS connection and prints status codes, security headers, and TLS protocol details.
Found in: HTTP vs HTTPS Explainedphp -v
Displays the active PHP CLI interpreter version and built-in Zend Engine details.
Found in: How PHP, MySQL and Nginx Work Togethersudo mysql_secure_installation
Runs an automated security wizard to remove anonymous database users, disable remote root logins, and remove test database tables.
Found in: How to Install MySQL/MariaDB on a VPStail -n 20 /var/log/nginx/error.log
Prints the 20 most recent entries from the Nginx error log to quickly diagnose the root cause of HTTP 4xx and 5xx errors.
Found in: Common Website Errors: 403, 404, 500 & 502 Explainedscreen -S gameserver
Launches a detached GNU Screen terminal session allowing persistent game server processes to continue running seamlessly after logging out of SSH.
Found in: How Game Server Hosting Worksfree -h
Displays available, used, and total memory on your Linux server in human-readable gigabyte format.
Found in: How Much RAM Does a Minecraft Server Need?htop
Interactive real-time process monitor showing per-core CPU utilization, thread distribution, and memory consumption.
Found in: Understanding Minecraft Server CPU Usagetop -b -n 1 | head -n 12
Captures an instantaneous non-interactive snapshot of top CPU and system load metrics to detect server performance bottlenecks.
Found in: TPS Explained: Why Minecraft Servers Laggrep -i 'view-distance' server.properties
Searches the server.properties file for view distance configuration settings.
Found in: View Distance vs Simulation Distance Explainednice -n -10 java -jar server.jar
Launches the Minecraft server process with an elevated scheduling priority (nice value -10) so the CPU prioritizes game ticks.
Found in: How to Reduce Minecraft Server Lagtaskset -c 0,1 java -jar server.jar
Binds the Minecraft Java process to specific CPU cores (cores 0 and 1) to prevent CPU cache thrashing across sockets.
Found in: How to Optimize a Minecraft Serverfind plugins/ -name '*.jar'
Searches the plugins directory recursively and lists all installed Java archive (.jar) plugin files.
Found in: How Minecraft Server Plugins Workcp plugin-v1.jar plugins/
Copies the specified plugin Java archive into the server plugins directory.
Found in: How to Install and Manage Pluginstail -f logs/latest.log
Streams newly appended lines from the server log file in real time as events occur.
Found in: How to Read Minecraft Server Logsgrep -i -E 'error|fatal|exception' logs/latest.log
Searches the latest server log file case-insensitively for critical failure keywords.
Found in: How to Troubleshoot Minecraft Server Crashesrsync -avz --delete world/ /backups/world_latest/
Synchronizes the world directory incrementally to a backup destination, transferring only modified file blocks.
Found in: How Minecraft Server Backups Workdig SRV _minecraft._tcp.play.yourdomain.com
Queries DNS nameservers for the SRV record pointing to a Minecraft server's target domain and port.
Found in: How Minecraft SRV Records Worklscpu
Displays detailed CPU architecture information including core count, thread count, architecture, and clock speed limits.
Found in: Dedicated vs VPS vs Game Hosting for Game Serversnode -v
Displays the active version of the Node.js runtime engine installed on your server environment.
Found in: What Is Bot Hosting and How Does It Work?npm start
Executes the predefined start script configured inside a Node.js project's package.json manifest.
Found in: How to Host a Discord Bot 24/7node index.js
Executes the main Node.js JavaScript application file within the V8 engine runtime environment.
Found in: How to Run a Node.js Bot on a VPSpython3 -m venv venv
Creates an isolated Python virtual environment directory to manage project dependencies independently from system packages.
Found in: How to Run a Python Bot 24/7which node python3
Locates the exact executable file paths for the specified binaries installed in system PATH.
Found in: Node.js vs Python for Botsnohup node index.js > output.log 2>&1 &
Executes a command immune to hangups (SIGHUP), redirecting standard output and errors to a log file in the background.
Found in: How to Keep a Bot Running After SSH Disconnectspm2 status
Displays a real-time table listing all applications managed by PM2, including process status, PID, memory usage, and restart counts.
Found in: How PM2 Keeps Node.js Applications Onlinepm2 restart discord-bot
Triggers an instant manual restart of the specified application managed by PM2.
Found in: How to Automatically Restart a Bot After a Crashprintenv
Prints all currently active shell environment variables and their values to standard output.
Found in: How to Store Bot Environment Variables Securelypm2 logs discord-bot --err --lines 50
Displays the 50 most recent error entries from PM2 error logs for the specified application.
Found in: How to Troubleshoot a Bot That Keeps Going Offlinelscpu
Displays CPU architecture information, physical sockets, core counts, and CPU flags directly from sysfs and kernel tables.
Found in: What Is a Dedicated Server?nproc
Prints the number of processing units available to the current process, taking into account virtualized core allocations.
Found in: VPS vs Dedicated Server: How They Differlscpu | grep -E "Thread|Core|Socket|CPU\(s\)"
Filters lscpu output to display exact hardware metrics for sockets, physical cores, and logical threads.
Found in: What Are CPU Cores and Threads?lscpu | grep -i 'mhz'
Queries active and maximum CPU operating frequencies in megahertz across all physical cores.
Found in: Understanding CPU Frequency, Boost Clock & Architecturelscpu | grep 'Vendor ID'
Displays the CPU manufacturer vendor identification string (AuthenticAMD or GenuineIntel).
Found in: AMD vs Intel Server CPUs Explainedsudo dmidecode -t memory | grep 'Error Correction Type'
Queries DMI system hardware tables to inspect physical memory error correction capabilities.
Found in: What Is ECC RAM and Why Does It Matter?lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT,MODEL
Lists all available block storage devices, partition tables, filesystems, and device models connected to the server.
Found in: NVMe vs SATA SSD vs HDD Explainedcat /proc/mdstat
Displays real-time status, active drives, and synchronization progress for Linux software RAID (mdadm) arrays.
Found in: What Is RAID and How Does It Work?ip -s link show eth0
Displays network interface statistics including total bytes, packets, errors, and dropped frames for eth0.
Found in: Bandwidth vs Network Speed: What's the Difference?sudo lshw -short
Lists hardware inventory in a compact summary format covering CPU, memory, disk controllers, and network adapters.
Found in: How to Choose Server Hardware for Different Workloadslast -n 20
Displays a list of the 20 most recent user login sessions, including remote IP addresses, login times, and session durations.
Found in: Complete VPS Security Checklistss -s
Displays a summary of total active, established, and closed TCP and UDP network sockets on the system.
Found in: TCP vs UDP Explainedsudo ss -tulpn
Displays all active listening TCP and UDP sockets along with their process names and PIDs.
Found in: What Are Ports and Why Do Servers Use Them?sudo ufw status verbose
Displays current UFW firewall state, active rules, logging levels, and default ingress/egress policies.
Found in: How Firewalls Workss -s
Displays real-time socket statistics to detect SYN floods and abnormal connection spikes.
Found in: What Is DDoS Protection and How Does It Work?curl -I https://example.com
Fetches HTTP response headers from a server to inspect Server, Via, and proxy cache headers.
Found in: What Is a Reverse Proxy?dig +short A yourdomain.com
Queries DNS to check if a domain resolves to CDN edge proxy IP addresses or your direct origin server IP.
Found in: What Is a CDN and How Does It Work?ping -c 10 1.1.1.1
Sends 10 ICMP ECHO_REQUEST packets to measure round-trip latency, jitter, and packet loss statistics.
Found in: Ping, Latency, Jitter & Packet Loss Explainedmtr --report -c 10 1.1.1.1
Runs a non-interactive Matt's Traceroute analysis sending 10 probes per hop and outputs a summary report of latency and loss.
Found in: How to Troubleshoot Network Problems on a VPSsudo lastb -n 20
Reads the /var/log/btmp binary log file to display recent failed user login attempts, remote IP addresses, and timestamps.
Found in: How to Detect Suspicious Login Attempts on Linux