查看当前系统中当前登录的帐户

$who
jiang :0 2016-10-13 08:55 (:0)
jiang pts/4 2016-10-13 09:03 (:0)
jiang pts/1 2016-10-13 09:00 (:0)
jiang pts/6 2016-10-13 09:59 (:0)

如果在tty7里$su,那么$who不会识别root,需要在tty1里登录$su root,就可以在任何终端里执行$who查看到root用户

$su
# who
jiang :0 2016-10-13 08:55 (:0)
jiang pts/1 2016-10-13 10:01 (:0) #切换到tty1里登录root
$su
#再切换回来
# who
jiang :0 2016-10-13 08:55 (:0)
root tty1 2016-10-13 14:44
jiang pts/1 2016-10-13 10:01 (:0) #切换到tty1里退出root
$exit
#再切换回来
# who
jiang :0 2016-10-13 08:55 (:0)
jiang pts/1 2016-10-13 10:01 (:0)

随机推荐

  1. Social Media POC KT Session

    地址: 1. http://c0048925.itcs.hp.com:8080/datamining/report/brandfocus.html Social Media POC是针对Social ...

  2. No.018:4Sum

    问题: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = ...

  3. spring入门(二)【加载properties文件】

    在开发过程当中需要用到配置信息,这些信息不能进行硬编码,这时配置文件是一个比较好的方式,java提供了properties格式的文件,以键值对的方式保存信息,在读取的时候通过键获得键对应的值,spri ...

  4. 通过angularjs的directive以及service来实现的列表页加载排序分页

    前两篇:(列表页的动态条件搜索,我是如何做列表页的)分别介绍了我们是如何做后端业务系统数据展示类的列表页以及动态搜索的,那么还剩下最重要的一项:数据展示.数据展示一般包含三部分: 数据列头 数据行 分 ...

  5. According to TLD or attribute directive in tag file, attribute end does not accept any expressions

    问题描述: 在 JSP 页面中使用 JSTL 标签库,访问 JSP 页面时抛出了如下异常信息: org.apache.jasper.JasperException: /WEB-INF/manageUs ...

  6. go语言 类型:复数类型

  7. Maven版本与JDK版本

    http://maven.apache.org/docs/history.html

  8. 定时从多个Excel导入数据到SQL数据库

    Scheduling Data Imports in SQL Server Importing data into a SQL Server database isn't really that tr ...

  9. Sharepoint学习笔记—习题系列--70-576习题解析 -(Q6-Q8)

    Question 6  You are designing a SharePoint 2010 solution that allows users to enter address informat ...

  10. iOS端项目注释规范附统一代码块

    代码的注释经常被人忽略,以至于在后期维护的时候较为困难.我们准备在XX项目开始之前制定一套规范的注释体系,致力于达到就算维护人员改变也能快速上手的效果. 1.属性注释 属性注释 使用 /** 注释*/ ...