Monday, June 21, 2010

Linux User Mangement Command

  • Display current user information
    • w display who is logged on and what they are doing.
    • whoami display the current user’s username
    • groups display the current user’s group
    • id display the uid,gid and groups of the current user
  • Create a user
    useradd username
  • Switch between users
    su username  Note: su - change user to root user and current directory to root’s home directory. su root   change user to root user without changing current directory.

No comments: