How to
Add, Create, Install
Articles
How to Run sudo Without a Password (sudoers NOPASSWD)
To run sudo without a password, give the user the NOPASSWD tag in a sudoers file. Create a drop-in file with visudo, which checks the syntax before saving:
sudo visudo...
How to Schedule Jobs Using Anacron on Linux?
cron and anacron both run scheduled jobs, but for different kinds of machines. cron assumes the system is running continuously, which is almost always true of a server...
How to Send an Email With an Attachment From the Linux Command Line
Sending a file by email from the command line is handy for backup reports, log files and scripts. This guide shows three tools that attach files correctly, with the...
How to Set Limits on User Running Processes in Linux?
To set up user limits, we will need to edit the following file:
/etc/security/limits.conf
This file is used to apply ulimit created by the pam_module.
The...
How to Set Static IP Address and Configure Network in Linux?
IP address: 15.84.25.84 Netmask: 255.255.255.0 Hostname: server.rootadminz.com Domain name: rootadminz.com Gateway:...
How to Set Up and Use Roundcube Webmail in Webuzo
In Webuzo 4, Roundcube is the built-in webmail, so there is nothing to install from the Enduser Panel any more. You make sure the mail server (Exim and Dovecot) is...
How to Set and Unset Local, User and System Wide Environment Variables in Linux?
Environment Variables are some special variables that are defined in the shell and are needed by programs while execution. They can be system-defined or user-defined....
How to Set max hourly email limit per account in cPanel
cPanel's hourly email limiter caps how many messages a domain can send per hour. Once a domain hits its limit, it is blocked from sending further mail until the next...
How to Set or Change the Hostname in Linux With hostnamectl
The host name identifies a server in its prompt, logs and emails. On systems with systemd, one command changes it permanently: hostnamectl. There is no need to edit...
How to Setup Private Docker Registry on Ubuntu 18.04 LTS?
Ubuntu 18.04 is no longer supported; this guide uses Ubuntu 24.04 LTS.
A private registry stores your own Docker images.
Install Docker Engine (official repository)...
How to Setup Railgun Listener on CentOS 6/7 Web Server
Railgun was a Cloudflare service that compressed traffic between Cloudflare and your server using a listener installed on the server. Cloudflare discontinued it on 31...
How to Setup git Repository using GitHub?
To set up a git repository and push it to GitHub, initialize git locally, commit your files, create an empty repository on GitHub, then push to it using a Personal...
How to Sort ls Output by Date in Linux: Newest First, Oldest First and Full Dates
To sort files by date with ls, run ls -lt: -t sorts by last modification time with the newest file first, and -l shows the date and time next to each name. To put the...
How to Split Large tar Archive into Multiple Files of Certain Size?
The creation of archive files and splitting them into blocks of a selected size. We shall use tar, one of the most popular archiving utilities on Linux and also take...
How to Start/Stop and Enable/Disable FirewallD and Iptables Firewall in Linux?
A firewall decides which network traffic may reach your server. Current Linux systems use firewalld (AlmaLinux 9 / Rocky Linux 9) or UFW (Ubuntu/Debian); both write...
How to Stop and Start a Windows Service: Services Console, net stop, sc and PowerShell
To stop a Windows service, open Command Prompt as administrator and run net stop NAME; to start it again, run net start NAME. In PowerShell the same is Stop-Service...
How to Sync Files/Directories Using Rsync with Non-standard SSH Port?
rsync uses SSH to copy files between servers. If the SSH server listens on another port than 22, tell rsync which one.
Give the port on the command line
rsync -avz -e...
How to Test Disk Speed on Ubuntu and Linux: fio, dd, hdparm and SSD Health Checks
To test disk speed on Ubuntu or any Linux server, install fio and measure sequential and random reads and writes on a test file: fio --name=seqwrite...
How to Test Website Speed and TTFB from the Command Line (curl)
TTFB (time to first byte) is how long a server takes to start sending a page after the request. It shows server and hosting speed separately from images, scripts and...
How to Test Your Internet Speed Bidirectionally from Command Line Using Speedtest-CLI Tool?
To test a server's connection from the command line, use Ookla's official Speedtest CLI or iperf3. The older Python speedtest-cli is still packaged but no longer...
How to Transfer Files Between Two Computers using nc and pv Commands?
nc stands for Netcat and often point out as “Swiss Army knife” is a networking tool used for network debugging and investigation and also it is used for creating...
How to Use New Advanced Package Tool (APT) in Ubuntu/Debian?
Different Linux distributions install applications in a pre-compiled package that contain binary files, configuration files and also information about the...
How to Use cat and tac Commands with Examples in Linux?
Cat command, the acronym for Concatenate, is one of the most used commands in *nix systems. The most basic usage of the command is to read files and display them to...
How to Use the at Command in Linux to Schedule One-Time Jobs
The at command in Linux runs a command once, at a time you choose. Pipe the command into at with the time: echo "/root/backup.sh" | at 23:30, or echo "reboot" | at now...
How to Zip and Unzip Files in Linux (and Extract to a Specific Directory)
zip and unzip create and open .zip files, the format Windows and macOS use too. We tested every command on Ubuntu 24.04 and AlmaLinux 9.
Install
sudo apt install zip...