who:显示已登录用户信息
简介who命令显示已经登录系统的用户,以及系统启动时间等信息
说明
who命令显示已经登录系统的用户,以及系统启动时间等信息
格式
who [option]
常用参数
- -a:显示所有信息
- -b:显示系统启动时间
- -d:显示已死的进程
- -H:显示标题,默认不显示
- -l:显示登录进程
示例
[root@localhost ~]# who
root pts/0 2018-05-14 03:05 (192.168.71.1)
root pts/1 2018-05-14 03:45 (192.168.71.1)
root pts/2 2018-05-14 03:45 (192.168.71.1)
[root@localhost ~]# who -a
system boot 2018-05-11 19:17
run-level 3 2018-05-11 19:18
LOGIN tty1 2018-05-11 19:18 2221 id=tty1
root + pts/0 2018-05-14 03:05 . 88743 (192.168.71.1)
root + pts/1 2018-05-14 03:45 00:11 90858 (192.168.71.1)
root + pts/2 2018-05-14 03:45 00:12 90892 (192.168.71.1)
pts/3 2018-05-13 05:42 12172 id=ts/3 term=0 exit=0
pts/4 2018-05-13 05:42 12210 id=ts/4 term=0 exit=0
pts/5 2018-05-13 05:42 12251 id=ts/5 term=0 exit=0
pts/6 2018-05-13 06:42 21920 id=ts/6 term=0 exit=0
pts/7 2018-05-13 08:31 25307 id=ts/7 term=0 exit=0
[root@localhost ~]# who -b
system boot 2018-05-11 19:17
[root@localhost ~]# who -d
pts/3 2018-05-13 05:42 12172 id=ts/3 term=0 exit=0
pts/4 2018-05-13 05:42 12210 id=ts/4 term=0 exit=0
pts/5 2018-05-13 05:42 12251 id=ts/5 term=0 exit=0
pts/6 2018-05-13 06:42 21920 id=ts/6 term=0 exit=0
pts/7 2018-05-13 08:31 25307 id=ts/7 term=0 exit=0
[root@localhost ~]# who -H
NAME LINE TIME COMMENT
root pts/0 2018-05-14 03:05 (192.168.71.1)
root pts/1 2018-05-14 03:45 (192.168.71.1)
root pts/2 2018-05-14 03:45 (192.168.71.1)
[root@localhost ~]# who -l
LOGIN tty1 2018-05-11 19:18 2221 id=tty1
在Mac电脑中,如何对Git的用户名和密码进行修改呢?起初不懂Mac,所以整了很久,本文将记录如何对这个进行操作,以便后期使用。
《康熙王朝》是一部非常优秀的电视连续剧,陈道明演的康熙是我觉得最有帝王气魄,让人意犹未尽,本文主要记录一小段非常经典的对白。
为了能让虚拟机能连接网络,并且能与宿主机能相互进行访问,所以需要多虚拟机几种网络模式进行学习,以便后期能快速的进行配置。
单一职责原则(Single Responsibility Principle,SRP)又称单一功能原则,由罗伯特·C.马丁(Robert C. Martin)于《敏捷软件开发:原则、模式和实践》一书中提出的。这里的职责是指类变化的原因,单一职责原则规定一个类应该有且仅有一个引起它变化的原因,否则类应该被拆分(There should never be more than one reason for a class to change)。
you-get是一个基于Python的开源命令行工具,主要用于下载来自多个视频网站的视频、音频和图片资源。它支持YouTube、Bilibili、Vimeo等平台,可通过简单命令快速获取下载链接并支持自定义保存路径和格式。
快速生成表格
Electron页面跳转、浏览器打开链接和打开新窗口
在使用Git的过程中,不想每次都输入用户名和密码去拉取代码,所以就需要保存这些信息,那么既然有保存了,就必须有清除功能。
Docker编译镜像出现:fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.12/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.2c4ac24e.tar.gz: No such file or directory问题