Knowledgebase

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 Updated 4 November 2026 GNU rm 9.7 and find 4.10.0 on Ubuntu 26.04 LTS and Debian 13, GNU rm 9.5 on AlmaLinux 10 and Rocky Linux 9, BusyBox 1.37 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? Updated 3 November 2026 Linux, tested with GNU coreutils and util-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? Updated 28 September 2026 AlmaLinux 9 / Rocky Linux 9 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 Updated 9 November 2026 Linux servers (tested on Ubuntu 24.04 and Debian 13), Apache 2.4.69, nginx 1.30 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 Updated 4 November 2026 MariaDB 11.8 (mariadb-dump) with pv 1.8.5, zstd 1.5.5, tmux 3.4 and screen 4.09; mysqldump options checked against the M 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 Updated 4 November 2026 cron 3.0pl1 on Debian 13 and Ubuntu 26.04, cronie 1.7.0 on AlmaLinux 10.2 (tested); cronie is also the cron on Rocky Lin 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? Updated 28 September 2026 Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9 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) Updated 4 November 2026 GNU grep 3.11 on Debian 13, Ubuntu 24.04 and AlmaLinux 10.2; ripgrep 14.1.1 on Debian 13 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 Updated 18 October 2026 Ubuntu 26.04 (tested: uutils id 0.10.0, wtmpdb 0.75, lastlog2 2.41.3, finger 0.17), Debian 13 and AlmaLinux 10.2 (tested 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) ss, lsof and fuser on Ubuntu 24.04, Debian 13, AlmaLinux and Rocky Linux 9 “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) Updated 10 October 2026 iproute2 6.1 to 6.17, hostname, BIND 9 tools and curl on Debian 13, Ubuntu 24.04 and AlmaLinux 10; ipconfig on macOS 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) Updated 4 November 2026 Intel NUC 7 to NUC 13 mini PCs, kits and boards (BIOS and support facts according to Intel); commands tested with dmidec 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) Updated 18 October 2026 Postfix 3.10 with Dovecot 2.4 SASL on Debian 13 (tested); the same settings work on Ubuntu 24.04 and 26.04, AlmaLinux an 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 Updated 17 October 2026 Ubuntu 26.04 and 24.04 (tested with command-not-found 23.04, sudo-rs 0.2.13 and sudo 1.9), Debian 13, AlmaLinux 10.2, Ro 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 Updated 4 November 2026 Debian 13 (iproute2 6.15, BIND 9.20.29), AlmaLinux 10.2 (BIND 9.18.33), Ubuntu 24.04 (BIND 9.18.39) and Ubuntu 26.04 (BI 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 Updated 4 November 2026 OpenBSD netcat 1.229, netcat-traditional 1.10 and Ncat 7.95 on Debian 13; Ncat 7.92 on Rocky Linux 9, AlmaLinux 10 and F 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...