How to
Add, Create, Install
Articles
How to Delete All Files in a Directory in Linux: By Extension, Recursively or All Except Some
To remove all files with one extension in the current folder, run rm *.log. To remove them from all subfolders as well (recursively), use find . -type f -name '*.log'...
How to Delete a User in Linux (userdel and deluser)
To delete a user in Linux together with their home folder and mail spool, run sudo userdel -r username. It works the same on Debian, Ubuntu, AlmaLinux, Rocky Linux and...
How to Determine and Fix Boot Issues in Linux?
To find out what went wrong during a Linux system's boot, read the boot's journal with journalctl -b. On a current systemd based system (which covers essentially every...
How to Disable/Lock or Blacklist Package Updates using Apt Tool?
APT means Advanced Packaging Tool is another package manager found on Linux based systems. Initially designed as a front-end for dpkg to work with .deb packages, apt...
How to Enable Cloudflare on your Website?
To enable Cloudflare on a website through cPanel, open the Cloudflare icon under cPanel's Software section, sign in with your Cloudflare account, then choose whether...
How to Enable Hardware Virtualization (Intel VT-x or AMD-V) in the BIOS
Hardware virtualization is a CPU feature (Intel VT-x or AMD-V) that lets KVM, Proxmox, Hyper-V, VirtualBox and similar software run virtual machines at near-native...
How to Enable Server Side Includes (SSI) in HTML Files
Apache only runs Server Side Includes (SSI) in files it is told to parse, and by default that is not .html. To make .html files run SSI on Apache, put these lines in...
How to Exclude or Skip a Package in yum and dnf Updates
To skip a package during one update, use --exclude (short form -x): yum update --exclude='kernel*' or dnf upgrade -x nginx. To exclude a package permanently, add...
How to Export a VMware VM to OVF or OVA and Convert It to KVM (qcow2)
To export a VMware virtual machine, power it off and use File > Export to OVF in VMware Workstation, or Actions > Template > Export OVF Template in the...
How to Extract a tar File to a Specific Directory or Extract Only One Folder in Linux
To extract a tar file to a specific directory, add -C (capital C) and the target folder. To extract only one directory from the archive, add that directory's path,...
How to Find MySQL, PHP and Apache Configuration Files?
MySQL database server (my.conf), PHP programming language (php.ini) and Apache HTTP server (http.conf), which together with Linux form the LAMP (Linux Apache...
How to Find Number of Files in a Directory and Subdirectories?
To display the total number of files in the current working directory or any other directory and its subdirectories on a Linux system.
We will use the find command...
How to Find Out List of All Open Ports in Linux?
The two most popular Internet transport protocols, Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) and other less known protocols use port...
How to Find Out Top Directories and Files (Disk Space) in Linux?
As a Linux administrator, you must periodically check which files and folders are consuming more disk space. It is very necessary to find the unnecessary junks and...
How to Find Out What Version of Linux You Are Running
To see which Linux distribution and version you are running, print /etc/os-release. It exists on every current distribution, needs no extra package and works the same...
How to Find Your Minecraft Server IP Address and Port
A Minecraft server address is the server’s IP address (or a domain name pointing to it), plus the port if it isn’t the default. Java Edition uses port...
How to Find Your Server IP Address and Server Location
You need your server's IP address to point a domain to it, to connect by SSH, FTP or Remote Desktop, or to allow it through a firewall. This guide shows where to find...
How to Find a File in Linux by Name (find and locate)
To find a file by name in Linux, run find with the folder to search and the name: find /home -name "notes.txt". Use -iname to ignore upper and lower case, wildcards...
How to Find, Kill and Restart a Process in Linux
Find the process ID (PID) with pgrep, then stop it with kill, or do both in one step with pkill. A program that runs as a service (nginx, Apache, MySQL, PHP-FPM)...
How to Fix Yum Error: Database Disk Image is Malformed?
"Database disk image is malformed" means yum's (or dnf's) local metadata cache is corrupted, usually from an update or install that was interrupted partway through....
How to Fix the File Manager Upload Error in CWP (Control Web Panel)
Uploads through CWP's File Manager fail with a message such as "upload error", "413 Request Entity Too Large" or a note that the file exceeds upload_max_filesize when...
How to Flush Redis Databases and Keys?
To delete all keys in a Redis database, run redis-cli FLUSHDB; to delete every key across every database on the server, run redis-cli FLUSHALL. Redis calls this...
How to Generate SSH Keys and PEM Key Files in Linux
To generate an SSH key in Linux, run ssh-keygen -t ed25519 -C "admin@laptop" on your own computer, press Enter to accept the file ~/.ssh/id_ed25519 and type a...
How to Give Minecraft More RAM (Launcher and Server)
Minecraft: Java Edition runs in Java, and Java only uses as much memory as its maximum heap allows, set with -Xmx. The launcher sets 2 GB by default, which is enough...
How to Hide or Remove the Nginx Server Header and PHP Version
To hide the nginx version, add server_tokens off; to the http {} block of /etc/nginx/nginx.conf and reload nginx. The header then reads Server: nginx instead of...