Linux
Linux, cPanel, CentoOs
Articles
Linux Password Expiration: Check, Set or Disable with chage
Password expiry in Linux is set per user with chage. sudo chage -l vyga shows when the password expires, sudo chage -M 90 vyga makes it expire 90 days after the last...
Linux Process and Memory Activity Monitoring Tool-vtop
vtop is a free, open source terminal tool that draws your server's CPU and memory usage as live graphs, using Unicode braille characters, instead of the plain numbers...
Linux Root Partition: Find It and Grow It Without Rebooting
The root partition is the partition that holds the / file system, where Linux itself is installed. After your provider has enlarged the virtual disk, you can grow the...
Linux Server Shutdown Commands and How to Disable Them
To shut down a Linux server, run sudo shutdown -h now (or sudo poweroff); to restart it, run sudo shutdown -r now (or sudo reboot). The commands are the same on...
Linux Services and Daemons: A Complete Guide
Title: Linux Services and Daemons: A Complete Guide
When working with Linux, you’ll often hear terms like services and daemons. These processes are the backbone of a...
Linux Terminal Autocomplete: How to Enable Bash Completion
Autocomplete in the Linux terminal is the Tab key. Type the start of a command, file or folder name and press Tab: Bash completes it when there is only one match, and...
Linux ping Command: Examples and Options (Do Not Fragment, Ping Scan, Verbose)
To ping a host on Linux, run ping -c 4 example.com. It sends four ICMP echo requests, prints every reply with its round-trip time and ends with a summary. Without -c,...
Linux rpm Command Examples: Install, Query, Verify, Remove
rpm is the low-level package tool of AlmaLinux, Rocky Linux, RHEL and Fedora. It installs, queries, verifies and removes .rpm packages, but it does not download...
Linux sdiff Command Examples for Linux Newbies
sdiff is a simple command line utility for showing the differences between two files and merge interactively. It is easy to use and comes with straightforward usage...
Linux w Command: See Who Is Logged In and What They Do
w is a command-line utility that displays information about currently logged in users and what each user is doing. It also gives information about how long the system...
MTR: A Network Diagnostic Tool for Linux
MTR is a simple, cross-platform command-line network diagnostic tool that combines the functionality of commonly used traceroute and ping programs into a single tool....
Most Dangerous Linux Commands and How to Protect Your Server
The most dangerous Linux command is rm -rf pointed at the wrong place: rm -rf /*, rm -rf ~ or a path built from an empty variable. Close behind are commands that write...
My content is in the wrong folder, how do I move the files to the correct location?
Your main domain shows the files in the public_html folder. If you uploaded your website elsewhere, for example into /home/username or into a subfolder, move the files...
Mysql database and user naming syntax
Since we run a shared hosting environment, we have to uniquely identify your usernames to your account only. We do this by attaching your system username and an...
Newsboat: an RSS and Atom Feed Reader for the Linux Terminal
Newsboat is an RSS and Atom feed reader that runs in the terminal. It follows blogs, news sites, release notes and security advisories in one list, and works well over...
Nix Package Manager on Linux: Install and Basic Commands
Nix is a package manager that installs every package into its own folder under /nix/store, so installing or upgrading one package cannot break another, several...
OnApp: VM created using a User Template not booting
In OnApp Cloud platform, we can create the custom template (Image) of any running reference VM, which can be used to create VMs with similar configuration.
The Error:...
OpenSSL: Print Certificate Details and Check SSL Expiry
To print all details of a certificate file, run openssl x509 -in cert.pem -noout -text. For the certificate a live website sends, pipe openssl s_client into openssl...
PacVim: A Game That Teaches You Vim Commands
PacVim is a free open source, text-based game that teaches you vim commands in a simple and fun manner. It is inspired by the popular and classic PacMan game and runs...
RHEL and Fedora: List Installed Packages and Yum Repositories
To list every installed package on RHEL, AlmaLinux, Rocky Linux or Fedora, run rpm -qa. For the same list with the repository each package came from, run dnf list...
Rename a database in cPanel
You can rename a MySQL database from cPanel. Any application that uses it stops working until you put the new name in its configuration.
Steps
Back up the database...
Samba Ports: 445, 139, 137 and 138 and How to Open Them Safely
Samba shares files and printers with Windows, macOS and Linux computers using the SMB protocol. With default settings it listens on four ports. We installed Samba...
Server Monitoring Software for Linux: Tools Compared
There is no single best server monitoring software. The right tool depends on what you need to know. For a live view of one server, start with htop and Netdata. For...
Show a custom message to users before Linux Server Shutdown
shutdown command broadcasts a message to other system users as shown in the screenshot below:
# shutdown 13:25
Linux Shutdown Broadcast Message
Shutdown scheduled...
Step-by-Step Guide: Park Your Domain in cPanel
Parking a domain (called an alias in current cPanel) makes a second domain show the same website as your main domain. It is useful for spelling variants and other...