please

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

How to change to root user directly from normal users ?

“su – root” or type “exit”

This command will change from current user to root user or we can type “exit” in the terminal to directly go to the root user from a normal user.

How to change from one user to another ?

“su – username”

This command will change the current user to the given user.

How to see the uid, gid, group of a user ?

“id username”

This command will show the id, gid, group of a particular user.

How to see the details of a particular user ?

“cat /etc/passwd |grep username”

This command will show the details of a particular user.

 

grep  :  global regular expression.

How to see the list of users ?

“cat /etc/passwd”

This command will show the list of all users.

Related Posts Plugin for WordPress, Blogger...

Flag Counter