Enhancing Skills

Category: Linux

mount: Mount or unmount filesystems

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

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

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

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

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

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 »

userdel: Delete a user account

Command: userdel The userdel command is used to delete a user account from the system. This command can remove the user’s home directory and mail spool if specified. It requires superuser (root) privileges. Sample Commands and Outputs: Description: Description: Description: Description: Note: The userdel command is used for removing user […] Read more »

useradd: Create a new user account

Command: useradd The useradd command is used to create a new user account on the system. It allows specifying various options to configure the new user’s home directory, default shell, user ID, and more. This command requires superuser (root) privileges. Sample Commands and Outputs: Description: Description: Description: Description: Description: Note: […] Read more »

usermod: Modify a user account

Command: usermod The usermod command allows administrators to modify a user’s account details, such as changing the user’s home directory, adding the user to groups, or changing the user’s login name. This command requires superuser (root) privileges. Sample Commands and Outputs: Description: Description: Description: Description: Description: Note: The usermod command […] Read more »

passwd: Change the password for the current user

Command: passwd The passwd command allows users to change their own password or the password of another user if run with appropriate privileges. When changing your own password, you will be prompted to enter your current password and then the new password. Sample Commands and Outputs: Description: Description: Note: The […] Read more »