Category Linux

How Userdel Works In Linux

Userdel command can be used to delete a user and related files in Linux. In most Linux distributions, the user home and mail spool directories are not removed when removing a user account with userdel. We are going through the…

Linux tar Command: Create, Extract, and Search Archives

The tar command bundles multiple files and directories into a single archive. It’s similar to zip, with one key difference: zip files are always compressed, while tar files can be compressed but don’t have to be. The most common form you’ll see—.tar.gz—is a tar archive compressed with gzip. Basic…

How tar works in Linux

The tar command in Linux is used to bundle up multiple files and/or directories. It’s similar to the zip command. However, zip files are compressed by definition; tar files can be compressed, but don’t have to be. How tar Works…

3 Ways to find largest files in Linux

Running low on disk space? Knowing how to find the largest files on a Linux system is a handy trick for freeing space fast. In this post we’ll use three tools—find, du, and ls—to track down the biggest files, with real command…

Linux Find exec Command Cheat Sheet

find is a Linux/Unix command used to search for files and directories in a specified location based on certain criteria such as name, size, modified time, and ownership, among others. The exec option in find is used to execute a…

Remove users in Linux using userdel Command

The userdel command is a Linux utility that can be used to delete user accounts and their associated files. Open the terminal and type userdel username. It performs this function by removing the user’s entry from the /etc/passwd file, and…