命令小结

Posted xiaofeng666

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了命令小结相关的知识,希望对你有一定的参考价值。

1、查看系统是否有指定的账号

getent passwd 账号名称

[[email protected] ~]# getent passwd nobody

2、查询软件包中的执行命令

rpm -q --scripts  软件包名

[[email protected] ~]# rpm -q --scripts nginx

 3、查看yum安装历史记录

yum history

[[email protected] ~]# yum history
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
25 | install -y screen | 2019-06-22 04:41 | Install | 1
24 | install -y vsftpd | 2019-06-21 01:36 | Install | 1
23 | remove -y httpd | 2019-06-21 01:34 | Erase | 1 EE
22 | install -y httpd | 2019-06-21 00:31 | Install | 3
21 | install -y expect | 2019-06-07 22:49 | Install | 2
20 | install -y libpng-devel | 2019-06-05 04:10 | Install | 1
19 | install -y libwebp libjp | 2019-06-05 04:09 | I, U | 3
18 | install -y curl-devel | 2019-06-05 04:05 | Install | 1
17 | update curl | 2019-06-05 04:03 | I, U | 10
16 | install -y libxml2-devel | 2019-06-05 04:00 | Install | 2
15 | install -y epel-release | 2019-05-29 12:18 | Install | 1

 

4、查看系统当前cpu核心数量 lscpu

[[email protected] ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1

 

5、

以上是关于命令小结的主要内容,如果未能解决你的问题,请参考以下文章

Mysqlselect命令几个小结

Linux基本命令小结

Nslookup命令小结

redis常用命令小结

命令小结

mysql常用命令小结