hostnamectl status #查计算机名 系统版本
[zzx@ZZXOS a]$ cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
[zzx@ZZXOS a]$ uname -a
Linux ZZXOS 3.10.0-123.13.2.el7.x86_64 #1 SMP Thu Dec 18 14:09:13 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
列出当前目录的文件夹
zzx@zzx120:~$ ls -l |grep ^d 或者 zzx@zzx120:~$ echo */
列出当前目录文件
ls或者 echo *
zzx@zzx120:~/test$ who /var/log/wtmp 查询以前所有的登录记录 last命令往回搜索wtmp来显示自从文件第一次创建以来登陆过的用户