bzip2: Compress or decompress files
August 9th, 2024 1:35 PM Mr. Q Categories: Command
Command: bzip2 / bunzip2 The bzip2 command is used to compress files using the bzip2 compression algorithm, which provides better compression ratios compared to gzip. The bunzip2 command is used to decompress files compressed with bzip2. Sample Commands and Outputs: Description: Description: Description: Description: Description: Description: Note: bzip2 provides high […] Read more »
gzip: Compress or decompress files
August 9th, 2024 1:31 PM Mr. Q Categories: Command
Command: gzip / gunzip The gzip command is used to compress files using the GNU zip algorithm, which reduces the size of files. The gunzip command is used to decompress files that have been compressed with gzip. Sample Commands and Outputs: Description: Description: Description: Description: Description: Description: Note: gzip is […] Read more »
tar: Create, extract, and manage archives (compressed files)
August 9th, 2024 1:30 PM Mr. Q Categories: Command
Command: tar The tar command (tape archive) is used to create, extract, and manage archives. It can combine multiple files into a single archive file, often compressing it to save space. The tar command supports various compression methods. Sample Commands and Outputs: Description: Description: Description: Description: Description: Description: Description: Description: […] Read more »
umount: Unmount a filesystem
August 9th, 2024 1:29 PM Mr. Q Categories: Command
Command: umount The umount command detaches a filesystem that was previously mounted, making it no longer accessible from the mount point. It is crucial to unmount filesystems before removing or modifying storage devices to ensure data integrity. Sample Commands and Outputs: Description: Description: Description: Description: Description: Description: Note: Ensure no […] Read more »
mount: Mount or unmount filesystems
August 9th, 2024 1:28 PM Mr. Q Categories: Command
Command: mount The mount command is used to attach filesystems to the directory tree at a specified mount point. It allows you to access the filesystem’s contents. Conversely, the umount command (not to be confused with unmount) is used to detach filesystems. Sample Commands and Outputs: Description: Description: Description: Description: […] Read more »
df: Display a summary of the amount of disk space used and available
August 9th, 2024 1:27 PM Mr. Q Categories: Command
Command: df The df (disk free) command displays the amount of disk space used and available on mounted filesystems. It provides an overview of disk space usage across different filesystems. Sample Commands and Outputs: Description: Description: Description: Description: Description: Description: Note: The df command is essential for monitoring disk space […] Read more »
du: Estimate the disk usage of a directory and its subdirectories
August 9th, 2024 1:26 PM Mr. Q Categories: Command
Command: du The du (disk usage) command estimates and displays the disk space used by files and directories. It provides information on how much space is used by a specified directory and its subdirectories. Sample Commands and Outputs: Description: Description: Description: Description: Description: Description: Description: Note: The du command is […] Read more »
chroot: Change root directory
August 9th, 2024 1:24 PM Mr. Q Categories: Command
Command: chroot The chroot command changes the apparent root directory for the current running process and its children. This creates an isolated environment within the filesystem, making it appear as if the process is running on its own separate system. It is commonly used for testing, creating isolated environments, or […] Read more »
sudo passwd root: Change the password for the root user
August 9th, 2024 1:23 PM Mr. Q Categories: Command
Command: sudo passwd root The sudo passwd root command allows you to change the password for the root user. This command requires superuser (root) privileges, and it is useful for securing the root account or setting an initial root password. Sample Commands and Outputs: Description: Note: The sudo passwd root […] Read more »
groups: Display the groups that the current user belongs to
August 9th, 2024 1:22 PM Mr. Q Categories: Command
Command: groups The groups command shows the names of the groups that the current user or a specified user belongs to. It helps in understanding group memberships and permissions assigned to users. Sample Commands and Outputs: Description: Description: Note: The groups command is useful for verifying group memberships and ensuring […] Read more »