Beginners Guide for Which Command in Linux

The which command locates the executable command or file location in the user’s environmental path. It will give you the complete path of executable command or file pointing towards in your file system. Tutorial Details Description Which Difficulty Level Low Root or Sudo Privileges No

Beginners Guide for Usermod Command on Linux

The usermod command is a user management tool to modify user account information like username, user ID, default shell, home directory, and many more. Tutorial Details Description Usermod (Modify User Information) Difficulty Level Moderate Root or Sudo Privileges Yes OS Compatibility Ubuntu, Manjaro, Fedora, etc.

Beginners Guide for Gpasswd Command on Linux

The gpasswd command is used to administer “/etc/group” and “/etc/gshadow” file but that does not give you the complete context. In other words, using the gpasswd command, you can add or remove users from a group, add or remove passwords from a group, promote a

Beginners Guide for Getent Command on Linux

The getent command is used to fetch entries from the administrative text files, also known as databases. The supported databases are ahosts, ahostsv4, ahostsv6, aliases, ethers, group, gshadow, hosts, initgroups, netgroup, networks, passwd, protocols, rpc, services, and shadow. In this article, you will learn how

Beginners Guide for ID Command in Linux

Every user in Linux is assigned with unique IDs, a.k.a. UIDs, and groups are assigned with group IDs, a.k.a. GIDs; groups can even contain more than one user identity that you can later use to manage users in that group. To know all the users’

Beginners Guide for Groups Command in Linux

The Linux system consists of multiple users and groups; there might be a large number of users in your system that can be easily managed by adding them to a specific group. After adding them, you can easily assign different permissions and policies to that

Beginners Guide for Groupadd Command on Linux

Linux administrators are allowed to create “normal user accounts” with a range from 1000 to 60000 uids, where uid 0 is reserved for “root users” and “system users” are allowed uids from 1 to 999. Normal users might rarely reach this threshold, creating so many

How to Force User to Change Their Password on Next Login in Linux

When you create a new user account and set a password for that account, the “password expires” status is set to never (ex: 0). Apart from that, the “password inactive” and “account expires” statuses are also set to never, and your last password change will

Beginners Guide for Passwd Command on Linux

The passwd command is used to modify the user’s password and its properties, like deleting the password, expiring the password, deactivating the account, and many more. The owner of an account only has permission to modify its password properties, except for the root user, who

Beginners Guide for Chown Command on Linux

The chown command is used to modify the user and group ownership of files and directories. It will be helpful to restrict the access permissions for files and directories to selective users and members of group. Tutorial Details Description Chown (Change Ownership) Difficulty Level Moderate

Beginners Guide for Chmod Command on Linux

The chmod command is used to modify the access permissions of files and directories. It can modify the read, write, and executable permissions, which can help you control shell script execution or specific file modifications. In this article, you will learn how to change referenced