Linux
Linux, cPanel, CentoOs
Articles
How to Create and Extract a Tar File in Linux
If you are a Linux user, chances are you’ve come across the term tar file (often ending in .tar.tar.gz.tar.bz2, or .tar.xz). A tarball is simply an archive that...
How to Create and Use Alias Command in Linux
Linux users often need to use one command over and over again. Typing or copying the same command, again and again, reduces your productivity and distracts you from...
How to Delete Files in Linux and Unix: rm, find and shred
The Linux command to delete a file is rm: rm file.txt removes it at once, and rm file1.txt file2.txt removes several. To delete files older than 30 days, use find...
How to Delete HUGE (100-200GB) Files in Linux?
To delete a huge file (100GB or more) without the delete itself slowing everything else down, run it through ionice so the delete only uses disk I/O that nothing else...
How to Disable SELinux Temporarily or Permanently in RHEL/CentOS 7/6?
RHEL/CentOS 6 and 7 are end of life. On AlmaLinux 9 / Rocky Linux 9 SELinux is enabled and enforcing by default. Before turning it off, consider fixing the actual...
How to Disable directory listing for your website via cPanel?
Apache’s web server default behaviour allows users visiting your website to see the contents of a directory if you haven’t defined a default index file (e.g....
How to Disable or Clear Cache on a Linux Server
You cannot switch off the Linux disk cache (the page cache), and you should not want to: it uses free memory to keep recently read files, and the kernel gives that...
How to Download and Extract Tar Files with One Command?
Tar (Tape Archive) is a popular file archiving format in Linux. It can be used together with gzip (tar.gz) or bzip2 (tar.bz2) for compression. It is the most widely...
How to Dump and Import Large MySQL or MariaDB Databases: Progress, Compression, Per-Table Dumps and Resuming
For a large MySQL or MariaDB database, start a tmux session, dump with --single-transaction --quick into a fast compressor with pv showing progress, and import the...
How to Edit Cron Jobs in Linux with the crontab Command
To edit cron jobs in Linux, run crontab -e. It opens your crontab in a text editor; change, add or remove lines, then save and close the editor. The crontab command...
How to Enable Password Feedback (Asterisks) for Sudo Command in Linux?
By default, sudo shows nothing while you type your password. You can make it show an asterisk for each character. This works on Ubuntu 24.04, Debian 12, AlmaLinux 9...
How to Enable, Disable and Install Yum Plug-ins?
YUM plug-ins are small programs that extend and improve the overall performance of the package manager. A few of them are installed by default, while many are not. Yum...
How to Find Files Containing Text or a String in Linux (grep)
To find every file that contains a word or a string in Linux, run grep -rn "text" /path/to/folder. -r searches all files in the folder and its subfolders, and -n shows...
How to Find Files With SUID and SGID Permissions in Linux?
SUID is a special file permission for executable files which enables other users to run the file with effective permissions of the file owner. Instead of the normal x...
How to Find Out File Types in Linux?
Linux has a useful utility called file which carries out some tests on a specified file and prints the file type once a test is successful. In this short article, we...
How to Find User ID, Account Info and Last Login in Linux
To get a user ID on Ubuntu or any other Linux system, run id -u alice (or id -u for your own account). id alice adds the main group and all other groups, getent passwd...
How to Find Which Process Is Using a Port in Linux (ss, lsof, fuser)
“Address already in use” means another program already listens on the port your service wants. These commands show which program it is. We tested them on...
How to Find Your IP Address in Linux from the Command Line (Local, Public, Router and Hostname IP)
To find your IP address in the Linux terminal, run ip -4 -br addr or hostname -I. They show the addresses on the server's network interfaces. For the public IP address...
How to Find a Specific String or Word in Files and Directories?
A simple way to work this out is by using grep pattern searching tool, is a powerful, efficient, reliable and most popular command-line utility for finding patterns...
How to Find the Intel NUC BIOS Version and Model on Linux (and Where to Get NUC BIOS Updates Now)
To see the BIOS version and the model of an Intel NUC on Linux without rebooting, run:
sudo dmidecode -s bios-version
sudo dmidecode -s system-product-name
sudo...
How to Find the Largest Files and Directories in Linux
If your Linux server or desktop is running low on disk space, chances are that a few large files or directories are taking up most of the storage. Instead of searching...
How to Fix 554 5.7.1 Relay Access Denied (Postfix, Gmail)
554 5.7.1 <user@example.net>: Relay access denied means the mail server you connected to refused to pass your message on to another domain, because it does not...
How to Fix Command Not Found on Ubuntu, Including apt-get
On Ubuntu, command not found means the shell found no program with that name in any folder listed in your PATH. Most of the time the package is simply not installed,...
How to Fix connect: Network is unreachable in Linux and BIND
connect: Network is unreachable means your server's routing table has no route to the address you are connecting to, so the connection fails before a single packet...
How to Fix nc Command Not Found: Install netcat on Linux and Transfer Files with nc
bash: nc: command not found means netcat is not installed. It is a separate package, and minimal installs and containers often leave it out. Install it with the...