Force linux user to change password upon login In this tutorial we will learn how to force linux user to change the password upon login. There are two commands through which we can force user to change password upon first login or login.You can use any of the either command. Note: Login as root to […]
linux command
How to lock and unlock user account in linux
In this post we will learn about how to lock and unlock user account in linux.With the help of two commands you can lock and unlock the user account in linux.We will also know, how to find the user account has lock and unlock status. To Lock the user account in Linux,use the given below […]
Command to create and delete group in Red Hat and CentOS linux
Command to create and delete group in Red Hat and CentOS linux Question: How to create and delete the group in Linux (Red Hat or CentOS) by using command line Answer: To create and delete the group in linux,follow the given below steps. To create new group ,use given below command Syntax: groupadd groupname Example […]
group ownership reference to file/dir from other file/dir in linux
In this tutorial we will learn to give group ownership reference to file/dir from other file/dir in linux. Here we will take ownership and group reference from source file or directory and apply same ownership and group to target directory. Syntax: chown –reference source-file-dir target-file-dir example: chown –reference testfile sharad_testfile See the given below screenshot […]
Give permission reference to file/dir from other file/dir in linux
In this post we will learn to give permission reference to file/dir from other file/dir in linux. For example you have any file and directory and you want to give permission exactly same to other file and directory. Use the given below syntax: chmod –reference source-file-dir to target-file-dir eg. chmod –reference testfile sharad_testfile for more […]
How to rename and move the directory and files in linux
To rename and move the directory and files in linux in linux we use single command called mv. The mv command is used for both purpose means renaming and moving the directory or file,it is system command which ships bydefault when you install any linux. The command is also applicable to all Unix based operating […]