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

Beginners Guide for Stat Command on Linux

The stat command is used to get detailed information about a file or filesystem, such as the file size, blocks, IO blocks, device type, SELinux security context string, Inode, permissions, and modification date. Tutorial Details Description Stat Difficulty Level Low Root or Sudo Privileges No

Beginners Guide for PWD Command in Linux

The PWD (a.k.a. “present working directory”) will print the path of the directory you are currently working in, starting from the root directory to the current directory. Tutorial Details Description PWD (Present Working Directory) Difficulty Level Low Root or Sudo Privileges No OS Compatibility Ubuntu,

Beginners Guide for ls Command in Linux

The ls command is used to list all files and directories in the specified directory. Apart from that, it will also show you the properties of the files and directories, like their permissions, ownership, size, and modification date. Tutorial Details Description ls Difficulty Level Low

Beginners Guide for Echo Command in Linux

The echo command takes the text or file as an argument and prints the output on the terminal screen. It is mostly used in shell scripts when developers create a variable and use the variable to print the value on screen using the echo command.

Beginners Guide for File Command on Linux

The file command in Linux is used to determine the MIME encoding (e.g. “image/jpeg; charset=binary”) or file type (e.g. “ASCII text”) for the target file. Tutorial Details Description Determine file type Difficulty Level Low Root or Sudo Privileges Yes (for one command) OS Compatibility Ubuntu,

What is /dev/null in Linux?

The “/dev/null” file is a special file that can be found in all Linux systems. They are also referred to as “null device files”, “void”, and sometimes “a black hole of Linux”. There is not any specific role for this file; however, if you redirect