View the status of the currently logged on Linux system

Source: Internet
Author: User
Keywords Linux System identity
Tags aliyun example html http linux linux system root status

View the status of the current login Linux system, 11545.html "> > We have three ways to query

Method 1:who am I

Example:

[Root@localhost/]# who Am I
Root&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; pts/0 2013-06-20 13:45 (192.168.1.2)

Method 2:whoami

Example:

[Root@localhost/]# WhoAmI
Root

Method 3:id

Example:

[Root@localhost/]# ID
Uid=0 (Root) gid=0 (root) group =0 (root) environment =unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Notice the small difference between 1 and 2 after the operation.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.