How to set expiry date for user in Linux

How to set expiry date for user in linux

In Previous tutorial we learn about how to add a new  user and how to set passwd to user in linux now we will learn about changing the password parameters in linux.

For changing of the password parameters and set expiry date you need to use the chage command. It will display password expiry information as well as changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his or her password.

How to Mount and unmount Filesystem / Partition in Linux [Mount/Umount unix Commands]

Mounting  A partition in Linux

Once you insert new hard disks into your system, you’ll typically use utilities like fdisk or parted to create partitions. Once you create a partition, you’ll use mkfs command to create or format  ext2, ext3, or ext4 partition.

How to Update newly created partition – How to Formatting a partition with file system

Updating a partition

After creating or deleting a partition the the changes will be effected in the partition table only after the restart of the system. But there is a way to avoid this circumstance. We can use partprobe or partx command to update the partition information without restarting the system.

What is the filesystem in linux ~ Unix and Linux Filesystem in detail Hierarchy system

Unix and Linux Filesystem hierarchy system


Linux uses single rooted, inverted tree like file system hierarchy

Have you wondered why certain programs are located under /home, /bin, or /sbin, or /usr/bin, or /usr/sbin?

For example, less command is located under /usr/bin directory. Why not /bin, or /sbin, or /usr/sbin? What is the different between all these directories?