Linux基础命令-查看基本硬件信息
Linux基础命令-查看基本硬件信息
作者:尹正杰
版权声明:原创作品,谢绝转载!否则将追究法律责任。
一.查看CPU信息
[root@node101.yinzhengjie.org.cn ~]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 #CPU的个数 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 2 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 158 Model name: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz #CPU型号 Stepping: 10 CPU MHz: 2208.002 #CPU的时钟频率 CPU max MHz: 0.0000 CPU min MHz: 0.0000 BogoMIPS: 4416.00 Hypervisor vendor: VMware Virtualization type: full L1d cache: 32K #一级缓存 L1i cache: 32K L2 cache: 256K #二级缓存 L3 cache: 9216K #三级缓存,即8MB NUMA node0 CPU(s): 0-3 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx f xsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]#
二.查看内存
[root@node101.yinzhengjie.org.cn ~]# free total used free shared buff/cache available Mem: 3861512 451860 2289100 16544 1120552 3086428 Swap: 4063228 0 4063228 [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# runlevel #查看当前的运行级别 3 5 [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# init 3 #将允许模式由图形模式(级别为5)切换为字符界面(级别为3) [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# runlevel 5 3 [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# free total used free shared buff/cache available Mem: 3861512 257296 2491460 12384 1112756 3288652 Swap: 4063228 0 4063228 [root@node101.yinzhengjie.org.cn ~]#
三.查看硬盘信息
[root@node101.yinzhengjie.org.cn ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 500G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 499G 0 part ├─centos-root 253:0 0 50G 0 lvm / ├─centos-swap 253:1 0 3.9G 0 lvm [SWAP] └─centos-home 253:2 0 445.1G 0 lvm /home sr0 11:0 1 1024M 0 rom [root@node101.yinzhengjie.org.cn ~]#
四.查看网卡的名称
[root@node101.yinzhengjie.org.cn ~]# ifconfig ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.30.1.101 netmask 255.255.255.0 broadcast 172.30.1.255 inet6 fe80::20c:29ff:febe:114d prefixlen 64 scopeid 0x20<link> ether 00:0c:29:be:11:4d txqueuelen 1000 (Ethernet) RX packets 205 bytes 18228 (17.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 168 bytes 26802 (26.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 84 bytes 9156 (8.9 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 84 bytes 9156 (8.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 52:54:00:a9:de:9b txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@node101.yinzhengjie.org.cn ~]#
五.查看当前机器操作系统版本
1>.查看红帽系列
[root@node101.yinzhengjie.org.cn ~]# cat /etc/redhat-release #仅红帽系列可用的命令,如RedHat,CentOS等 CentOS Linux release 7.6.1810 (Core) [root@node101.yinzhengjie.org.cn ~]#
2>.查看发行版本名称
[root@node101.yinzhengjie.org.cn ~]# yum install -y redhat-lsb Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * extras: mirror.bit.edu.cn * updates: mirrors.huaweicloud.com Resolving Dependencies --> Running transaction check ---> Package redhat-lsb.x86_64 0:4.1-27.el7.centos.1 will be installed --> Processing Dependency: redhat-lsb-printing = 4.1-27.el7.centos.1 for package: redhat-lsb-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: redhat-lsb-languages = 4.1-27.el7.centos.1 for package: redhat-lsb-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: redhat-lsb-desktop(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: redhat-lsb-cxx(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-4.1-27.el7.centos.1.x86_64 --> Running transaction check ---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be installed --> Processing Dependency: redhat-lsb-submod-security(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-core-4.1-27.el7.centos.1.x8 6_64--> Processing Dependency: spax for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: /usr/bin/patch for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: /usr/bin/m4 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 ---> Package redhat-lsb-cxx.x86_64 0:4.1-27.el7.centos.1 will be installed ---> Package redhat-lsb-desktop.x86_64 0:4.1-27.el7.centos.1 will be installed --> Processing Dependency: redhat-lsb-submod-multimedia(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-desktop-4.1-27.el7.centos .1.x86_64--> Processing Dependency: qt3(x86-64) for package: redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: qt-x11(x86-64) for package: redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: qt(x86-64) for package: redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: mesa-libGLU(x86-64) for package: redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: libpng12.so.0()(64bit) for package: redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64 ---> Package redhat-lsb-languages.x86_64 0:4.1-27.el7.centos.1 will be installed --> Processing Dependency: perl(XML::LibXML) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Text::Soundex) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Test::Simple) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Test::Harness) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Sys::Syslog) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Pod::Plainer) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Pod::LaTeX) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Pod::Checker) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Locale::Maketext) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Locale::Codes::Constants) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Locale::Codes) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(File::CheckTree) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Fatal) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(ExtUtils::MakeMaker) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Env) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(Class::ISA) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(CPAN) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(CGI) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 --> Processing Dependency: perl(B::Lint) for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 ---> Package redhat-lsb-printing.x86_64 0:4.1-27.el7.centos.1 will be installed --> Processing Dependency: /usr/bin/foomatic-rip for package: redhat-lsb-printing-4.1-27.el7.centos.1.x86_64 --> Running transaction check ---> Package foomatic-filters.x86_64 0:4.0.9-8.el7_6.1 will be installed ---> Package libpng12.x86_64 0:1.2.50-10.el7 will be installed ---> Package m4.x86_64 0:1.4.16-10.el7 will be installed ---> Package mesa-libGLU.x86_64 0:9.0.0-4.el7 will be installed ---> Package patch.x86_64 0:2.7.1-10.el7_5 will be installed ---> Package perl-B-Lint.noarch 0:1.17-3.el7 will be installed --> Processing Dependency: perl(Module::Pluggable) for package: perl-B-Lint-1.17-3.el7.noarch ---> Package perl-CGI.noarch 0:3.63-4.el7 will be installed --> Processing Dependency: perl(FCGI) >= 0.67 for package: perl-CGI-3.63-4.el7.noarch ---> Package perl-CPAN.noarch 0:1.9800-294.el7_6 will be installed --> Processing Dependency: perl(local::lib) for package: perl-CPAN-1.9800-294.el7_6.noarch --> Processing Dependency: perl(Digest::SHA) for package: perl-CPAN-1.9800-294.el7_6.noarch --> Processing Dependency: perl(Data::Dumper) for package: perl-CPAN-1.9800-294.el7_6.noarch ---> Package perl-Class-ISA.noarch 0:0.36-1010.el7 will be installed ---> Package perl-Env.noarch 0:1.04-2.el7 will be installed ---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 will be installed --> Processing Dependency: perl(ExtUtils::Packlist) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch --> Processing Dependency: perl(ExtUtils::Manifest) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch --> Processing Dependency: perl(ExtUtils::Installed) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch --> Processing Dependency: perl(ExtUtils::Install) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch ---> Package perl-File-CheckTree.noarch 0:4.42-3.el7 will be installed ---> Package perl-Locale-Codes.noarch 0:3.26-2.el7 will be installed ---> Package perl-Locale-Maketext.noarch 0:1.23-3.el7 will be installed ---> Package perl-Pod-Checker.noarch 0:1.60-2.el7 will be installed --> Processing Dependency: perl(Pod::Parser) >= 1.60 for package: perl-Pod-Checker-1.60-2.el7.noarch --> Processing Dependency: perl(Pod::ParseUtils) for package: perl-Pod-Checker-1.60-2.el7.noarch ---> Package perl-Pod-LaTeX.noarch 0:0.61-2.el7 will be installed ---> Package perl-Pod-Plainer.noarch 0:1.03-4.el7 will be installed ---> Package perl-Sys-Syslog.x86_64 0:0.33-3.el7 will be installed ---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed ---> Package perl-Test-Simple.noarch 0:0.98-243.el7 will be installed ---> Package perl-Text-Soundex.x86_64 0:3.04-4.el7 will be installed --> Processing Dependency: perl(Text::Unidecode) for package: perl-Text-Soundex-3.04-4.el7.x86_64 ---> Package perl-XML-LibXML.x86_64 1:2.0018-5.el7 will be installed --> Processing Dependency: perl(XML::SAX::Exception) for package: 1:perl-XML-LibXML-2.0018-5.el7.x86_64 --> Processing Dependency: perl(XML::SAX::DocumentLocator) for package: 1:perl-XML-LibXML-2.0018-5.el7.x86_64 --> Processing Dependency: perl(XML::SAX::Base) for package: 1:perl-XML-LibXML-2.0018-5.el7.x86_64 --> Processing Dependency: perl(XML::NamespaceSupport) for package: 1:perl-XML-LibXML-2.0018-5.el7.x86_64 ---> Package perl-autodie.noarch 0:2.16-2.el7 will be installed ---> Package qt.x86_64 1:4.8.7-3.el7_6 will be installed --> Processing Dependency: qt-settings for package: 1:qt-4.8.7-3.el7_6.x86_64 ---> Package qt-x11.x86_64 1:4.8.7-3.el7_6 will be installed --> Processing Dependency: libmng.so.1()(64bit) for package: 1:qt-x11-4.8.7-3.el7_6.x86_64 ---> Package qt3.x86_64 0:3.3.8b-51.el7 will be installed ---> Package redhat-lsb-submod-multimedia.x86_64 0:4.1-27.el7.centos.1 will be installed ---> Package redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 will be installed ---> Package spax.x86_64 0:1.5.2-13.el7 will be installed --> Running transaction check ---> Package libmng.x86_64 0:1.0.10-14.el7 will be installed ---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed ---> Package perl-Digest-SHA.x86_64 1:5.85-4.el7 will be installed --> Processing Dependency: perl(Digest::base) for package: 1:perl-Digest-SHA-5.85-4.el7.x86_64 ---> Package perl-ExtUtils-Install.noarch 0:1.58-294.el7_6 will be installed --> Processing Dependency: perl-devel for package: perl-ExtUtils-Install-1.58-294.el7_6.noarch ---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 will be installed ---> Package perl-FCGI.x86_64 1:0.74-8.el7 will be installed ---> Package perl-Module-Pluggable.noarch 1:4.8-3.el7 will be installed ---> Package perl-Pod-Parser.noarch 0:1.61-2.el7 will be installed ---> Package perl-Text-Unidecode.noarch 0:0.04-20.el7 will be installed ---> Package perl-XML-NamespaceSupport.noarch 0:1.11-10.el7 will be installed ---> Package perl-XML-SAX.noarch 0:0.99-9.el7 will be installed --> Processing Dependency: perl(LWP::UserAgent) for package: perl-XML-SAX-0.99-9.el7.noarch ---> Package perl-XML-SAX-Base.noarch 0:1.08-7.el7 will be installed ---> Package perl-local-lib.noarch 0:1.008010-4.el7 will be installed ---> Package qt-settings.noarch 0:19-23.8.el7.centos will be installed --> Running transaction check ---> Package perl-Digest.noarch 0:1.17-245.el7 will be installed ---> Package perl-devel.x86_64 4:5.16.3-294.el7_6 will be installed --> Processing Dependency: systemtap-sdt-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.16.3-294.el7_6.x86_64 --> Processing Dependency: libdb-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64 --> Processing Dependency: glibc-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64 --> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64 ---> Package perl-libwww-perl.noarch 0:6.05-2.el7 will be installed --> Processing Dependency: perl(WWW::RobotRules) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(URI) >= 1.10 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(Net::HTTP) >= 6.04 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(LWP::MediaTypes) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTTP::Status) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTTP::Response) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTTP::Request::Common) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTTP::Request) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTTP::Negotiate) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTTP::Date) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTTP::Daemon) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTTP::Cookies) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(File::Listing) >= 6 for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(URI::Heuristic) for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(URI::Escape) for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTML::HeadParser) for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(HTML::Entities) for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(Encode::Locale) for package: perl-libwww-perl-6.05-2.el7.noarch --> Processing Dependency: perl(Digest::MD5) for package: perl-libwww-perl-6.05-2.el7.noarch --> Running transaction check ---> Package gdbm-devel.x86_64 0:1.10-8.el7 will be installed ---> Package glibc-devel.x86_64 0:2.17-260.el7_6.6 will be installed --> Processing Dependency: glibc-headers = 2.17-260.el7_6.6 for package: glibc-devel-2.17-260.el7_6.6.x86_64 --> Processing Dependency: glibc = 2.17-260.el7_6.6 for package: glibc-devel-2.17-260.el7_6.6.x86_64 --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-260.el7_6.6.x86_64 ---> Package libdb-devel.x86_64 0:5.3.21-24.el7 will be installed ---> Package perl-Digest-MD5.x86_64 0:2.52-3.el7 will be installed ---> Package perl-Encode-Locale.noarch 0:1.03-5.el7 will be installed ---> Package perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 will be installed ---> Package perl-File-Listing.noarch 0:6.04-7.el7 will be installed ---> Package perl-HTML-Parser.x86_64 0:3.71-4.el7 will be installed --> Processing Dependency: perl(HTML::Tagset) >= 3 for package: perl-HTML-Parser-3.71-4.el7.x86_64 ---> Package perl-HTTP-Cookies.noarch 0:6.01-5.el7 will be installed ---> Package perl-HTTP-Daemon.noarch 0:6.01-8.el7 will be installed --> Processing Dependency: perl(IO::Socket::IP) for package: perl-HTTP-Daemon-6.01-8.el7.noarch ---> Package perl-HTTP-Date.noarch 0:6.02-8.el7 will be installed --> Processing Dependency: perl(Time::Zone) for package: perl-HTTP-Date-6.02-8.el7.noarch ---> Package perl-HTTP-Message.noarch 0:6.06-6.el7 will be installed --> Processing Dependency: perl(IO::Uncompress::Bunzip2) >= 2.021 for package: perl-HTTP-Message-6.06-6.el7.noarch --> Processing Dependency: perl(IO::Compress::Bzip2) >= 2.021 for package: perl-HTTP-Message-6.06-6.el7.noarch --> Processing Dependency: perl(IO::Uncompress::RawInflate) for package: perl-HTTP-Message-6.06-6.el7.noarch --> Processing Dependency: perl(IO::Uncompress::Inflate) for package: perl-HTTP-Message-6.06-6.el7.noarch --> Processing Dependency: perl(IO::Uncompress::Gunzip) for package: perl-HTTP-Message-6.06-6.el7.noarch --> Processing Dependency: perl(IO::HTML) for package: perl-HTTP-Message-6.06-6.el7.noarch --> Processing Dependency: perl(IO::Compress::Gzip) for package: perl-HTTP-Message-6.06-6.el7.noarch --> Processing Dependency: perl(IO::Compress::Deflate) for package: perl-HTTP-Message-6.06-6.el7.noarch --> Processing Dependency: perl(Compress::Raw::Zlib) for package: perl-HTTP-Message-6.06-6.el7.noarch ---> Package perl-HTTP-Negotiate.noarch 0:6.01-5.el7 will be installed ---> Package perl-LWP-MediaTypes.noarch 0:6.02-2.el7 will be installed --> Processing Dependency: mailcap for package: perl-LWP-MediaTypes-6.02-2.el7.noarch ---> Package perl-Net-HTTP.noarch 0:6.06-2.el7 will be installed --> Processing Dependency: perl(IO::Socket::SSL) >= 1.38 for package: perl-Net-HTTP-6.06-2.el7.noarch ---> Package perl-URI.noarch 0:1.60-9.el7 will be installed --> Processing Dependency: perl(Business::ISBN) for package: perl-URI-1.60-9.el7.noarch ---> Package perl-WWW-RobotRules.noarch 0:6.02-5.el7 will be installed ---> Package systemtap-sdt-devel.x86_64 0:3.3-3.el7 will be installed --> Running transaction check ---> Package glibc.x86_64 0:2.17-260.el7 will be updated --> Processing Dependency: glibc = 2.17-260.el7 for package: glibc-common-2.17-260.el7.x86_64 ---> Package glibc.x86_64 0:2.17-260.el7_6.6 will be an update ---> Package glibc-headers.x86_64 0:2.17-260.el7_6.6 will be installed --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-260.el7_6.6.x86_64 --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-260.el7_6.6.x86_64 ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed ---> Package perl-Business-ISBN.noarch 0:2.06-2.el7 will be installed --> Processing Dependency: perl(Business::ISBN::Data) >= 20120719.001 for package: perl-Business-ISBN-2.06-2.el7.noarch ---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed ---> Package perl-HTML-Tagset.noarch 0:3.20-15.el7 will be installed ---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed --> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch ---> Package perl-IO-HTML.noarch 0:1.00-2.el7 will be installed ---> Package perl-IO-Socket-IP.noarch 0:0.21-5.el7 will be installed ---> Package perl-IO-Socket-SSL.noarch 0:1.94-7.el7 will be installed --> Processing Dependency: perl-Net-SSLeay >= 1.55-5 for package: perl-IO-Socket-SSL-1.94-7.el7.noarch --> Processing Dependency: perl(Net::SSLeay) >= 1.21 for package: perl-IO-Socket-SSL-1.94-7.el7.noarch --> Processing Dependency: perl(Net::SSLeay) for package: perl-IO-Socket-SSL-1.94-7.el7.noarch --> Processing Dependency: perl(Net::LibIDN) for package: perl-IO-Socket-SSL-1.94-7.el7.noarch --> Processing Dependency: perl(Mozilla::CA) for package: perl-IO-Socket-SSL-1.94-7.el7.noarch ---> Package perl-TimeDate.noarch 1:2.30-2.el7 will be installed --> Running transaction check ---> Package glibc-common.x86_64 0:2.17-260.el7 will be updated ---> Package glibc-common.x86_64 0:2.17-260.el7_6.6 will be an update ---> Package kernel-headers.x86_64 0:3.10.0-957.27.2.el7 will be installed ---> Package perl-Business-ISBN-Data.noarch 0:20120719.001-2.el7 will be installed ---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed ---> Package perl-Mozilla-CA.noarch 0:20130114-5.el7 will be installed ---> Package perl-Net-LibIDN.x86_64 0:0.12-15.el7 will be installed ---> Package perl-Net-SSLeay.x86_64 0:1.55-6.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================= Package Arch Version Repository Size ======================================================================================================================================= Installing: redhat-lsb x86_64 4.1-27.el7.centos.1 base 25 k Installing for dependencies: foomatic-filters x86_64 4.0.9-8.el7_6.1 updates 98 k gdbm-devel x86_64 1.10-8.el7 base 47 k glibc-devel x86_64 2.17-260.el7_6.6 updates 1.1 M glibc-headers x86_64 2.17-260.el7_6.6 updates 684 k kernel-headers x86_64 3.10.0-957.27.2.el7 updates 8.0 M libdb-devel x86_64 5.3.21-24.el7 base 38 k libmng x86_64 1.0.10-14.el7 base 171 k libpng12 x86_64 1.2.50-10.el7 base 171 k m4 x86_64 1.4.16-10.el7 base 256 k mailcap noarch 2.1.41-2.el7 base 31 k mesa-libGLU x86_64 9.0.0-4.el7 base 196 k patch x86_64 2.7.1-10.el7_5 base 110 k perl-B-Lint noarch 1.17-3.el7 base 20 k perl-Business-ISBN noarch 2.06-2.el7 base 25 k perl-Business-ISBN-Data noarch 20120719.001-2.el7 base 24 k perl-CGI noarch 3.63-4.el7 base 250 k perl-CPAN noarch 1.9800-294.el7_6 updates 293 k perl-Class-ISA noarch 0.36-1010.el7 base 8.9 k perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k perl-Data-Dumper x86_64 2.145-3.el7 base 47 k perl-Digest noarch 1.17-245.el7 base 23 k perl-Digest-MD5 x86_64 2.52-3.el7 base 30 k perl-Digest-SHA x86_64 1:5.85-4.el7 base 58 k perl-Encode-Locale noarch 1.03-5.el7 base 16 k perl-Env noarch 1.04-2.el7 base 16 k perl-ExtUtils-Install noarch 1.58-294.el7_6 updates 75 k perl-ExtUtils-MakeMaker noarch 6.68-3.el7 base 275 k perl-ExtUtils-Manifest noarch 1.61-244.el7 base 31 k perl-ExtUtils-ParseXS noarch 1:3.18-3.el7 base 77 k perl-FCGI x86_64 1:0.74-8.el7 base 42 k perl-File-CheckTree noarch 4.42-3.el7 base 18 k perl-File-Listing noarch 6.04-7.el7 base 13 k perl-HTML-Parser x86_64 3.71-4.el7 base 115 k perl-HTML-Tagset noarch 3.20-15.el7 base 18 k perl-HTTP-Cookies noarch 6.01-5.el7 base 26 k perl-HTTP-Daemon noarch 6.01-8.el7 base 21 k perl-HTTP-Date noarch 6.02-8.el7 base 14 k perl-HTTP-Message noarch 6.06-6.el7 base 82 k perl-HTTP-Negotiate noarch 6.01-5.el7 base 17 k perl-IO-Compress noarch 2.061-2.el7 base 260 k perl-IO-HTML noarch 1.00-2.el7 base 23 k perl-IO-Socket-IP noarch 0.21-5.el7 base 36 k perl-IO-Socket-SSL noarch 1.94-7.el7 base 115 k perl-LWP-MediaTypes noarch 6.02-2.el7 base 24 k perl-Locale-Codes noarch 3.26-2.el7 base 314 k perl-Locale-Maketext noarch 1.23-3.el7 base 93 k perl-Module-Pluggable noarch 1:4.8-3.el7 base 29 k perl-Mozilla-CA noarch 20130114-5.el7 base 11 k perl-Net-HTTP noarch 6.06-2.el7 base 29 k perl-Net-LibIDN x86_64 0.12-15.el7 base 28 k perl-Net-SSLeay x86_64 1.55-6.el7 base 285 k perl-Pod-Checker noarch 1.60-2.el7 base 28 k perl-Pod-LaTeX noarch 0.61-2.el7 base 35 k perl-Pod-Parser noarch 1.61-2.el7 base 107 k perl-Pod-Plainer noarch 1.03-4.el7 base 9.0 k perl-Sys-Syslog x86_64 0.33-3.el7 base 42 k perl-Test-Harness noarch 3.28-3.el7 base 302 k perl-Test-Simple noarch 0.98-243.el7 base 170 k perl-Text-Soundex x86_64 3.04-4.el7 base 19 k perl-Text-Unidecode noarch 0.04-20.el7 base 114 k perl-TimeDate noarch 1:2.30-2.el7 base 52 k perl-URI noarch 1.60-9.el7 base 106 k perl-WWW-RobotRules noarch 6.02-5.el7 base 18 k perl-XML-LibXML x86_64 1:2.0018-5.el7 base 373 k perl-XML-NamespaceSupport noarch 1.11-10.el7 base 18 k perl-XML-SAX noarch 0.99-9.el7 base 63 k perl-XML-SAX-Base noarch 1.08-7.el7 base 32 k perl-autodie noarch 2.16-2.el7 base 77 k perl-devel x86_64 4:5.16.3-294.el7_6 updates 453 k perl-libwww-perl noarch 6.05-2.el7 base 205 k perl-local-lib noarch 1.008010-4.el7 base 64 k qt x86_64 1:4.8.7-3.el7_6 updates 4.6 M qt-settings noarch 19-23.8.el7.centos base 17 k qt-x11 x86_64 1:4.8.7-3.el7_6 updates 13 M qt3 x86_64 3.3.8b-51.el7 base 3.5 M redhat-lsb-core x86_64 4.1-27.el7.centos.1 base 38 k redhat-lsb-cxx x86_64 4.1-27.el7.centos.1 base 16 k redhat-lsb-desktop x86_64 4.1-27.el7.centos.1 base 20 k redhat-lsb-languages x86_64 4.1-27.el7.centos.1 base 18 k redhat-lsb-printing x86_64 4.1-27.el7.centos.1 base 16 k redhat-lsb-submod-multimedia x86_64 4.1-27.el7.centos.1 base 15 k redhat-lsb-submod-security x86_64 4.1-27.el7.centos.1 base 15 k spax x86_64 1.5.2-13.el7 base 260 k systemtap-sdt-devel x86_64 3.3-3.el7 base 74 k Updating for dependencies: glibc x86_64 2.17-260.el7_6.6 updates 3.7 M glibc-common x86_64 2.17-260.el7_6.6 updates 12 M Transaction Summary ======================================================================================================================================= Install 1 Package (+85 Dependent packages) Upgrade ( 2 Dependent packages) Total download size: 52 M Downloading packages: updates/7/x86_64/prestodelta | 945 kB 00:00:00 Delta RPMs reduced 3.7 M of updates to 775 k (79% saved) warning: /var/cache/yum/x86_64/7/base/packages/gdbm-devel-1.10-8.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Public key for gdbm-devel-1.10-8.el7.x86_64.rpm is not installed (1/88): gdbm-devel-1.10-8.el7.x86_64.rpm | 47 kB 00:00:00 Public key for foomatic-filters-4.0.9-8.el7_6.1.x86_64.rpm is not installed (2/88): foomatic-filters-4.0.9-8.el7_6.1.x86_64.rpm | 98 kB 00:00:00 (3/88): glibc-2.17-260.el7_2.17-260.el7_6.6.x86_64.drpm | 775 kB 00:00:00 (4/88): glibc-devel-2.17-260.el7_6.6.x86_64.rpm | 1.1 MB 00:00:00 (5/88): glibc-headers-2.17-260.el7_6.6.x86_64.rpm | 684 kB 00:00:00 (6/88): libdb-devel-5.3.21-24.el7.x86_64.rpm | 38 kB 00:00:00 (7/88): libpng12-1.2.50-10.el7.x86_64.rpm | 171 kB 00:00:00 (8/88): libmng-1.0.10-14.el7.x86_64.rpm | 171 kB 00:00:00 (9/88): glibc-common-2.17-260.el7_6.6.x86_64.rpm | 12 MB 00:00:00 (10/88): m4-1.4.16-10.el7.x86_64.rpm | 256 kB 00:00:00 (11/88): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:00 (12/88): kernel-headers-3.10.0-957.27.2.el7.x86_64.rpm | 8.0 MB 00:00:00 (13/88): patch-2.7.1-10.el7_5.x86_64.rpm | 110 kB 00:00:00 (14/88): mesa-libGLU-9.0.0-4.el7.x86_64.rpm | 196 kB 00:00:00 (15/88): perl-B-Lint-1.17-3.el7.noarch.rpm | 20 kB 00:00:00 (16/88): perl-Business-ISBN-Data-20120719.001-2.el7.noarch.rpm | 24 kB 00:00:00 (17/88): perl-Business-ISBN-2.06-2.el7.noarch.rpm | 25 kB 00:00:00 (18/88): perl-Class-ISA-0.36-1010.el7.noarch.rpm | 8.9 kB 00:00:00 (19/88): perl-CGI-3.63-4.el7.noarch.rpm | 250 kB 00:00:00 (20/88): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00:00 (21/88): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00:00 (22/88): perl-Digest-1.17-245.el7.noarch.rpm | 23 kB 00:00:00 (23/88): perl-Digest-MD5-2.52-3.el7.x86_64.rpm | 30 kB 00:00:00 (24/88): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm | 57 kB 00:00:00 (25/88): perl-Digest-SHA-5.85-4.el7.x86_64.rpm | 58 kB 00:00:00 (26/88): perl-Encode-Locale-1.03-5.el7.noarch.rpm | 16 kB 00:00:00 (27/88): perl-Env-1.04-2.el7.noarch.rpm | 16 kB 00:00:00 (28/88): perl-CPAN-1.9800-294.el7_6.noarch.rpm | 293 kB 00:00:00 (29/88): perl-ExtUtils-MakeMaker-6.68-3.el7.noarch.rpm | 275 kB 00:00:00 (30/88): perl-ExtUtils-Manifest-1.61-244.el7.noarch.rpm | 31 kB 00:00:00 (31/88): perl-ExtUtils-ParseXS-3.18-3.el7.noarch.rpm | 77 kB 00:00:00 (32/88): perl-ExtUtils-Install-1.58-294.el7_6.noarch.rpm | 75 kB 00:00:00 (33/88): perl-FCGI-0.74-8.el7.x86_64.rpm | 42 kB 00:00:00 (34/88): perl-File-Listing-6.04-7.el7.noarch.rpm | 13 kB 00:00:00 (35/88): perl-File-CheckTree-4.42-3.el7.noarch.rpm | 18 kB 00:00:00 (36/88): perl-HTML-Parser-3.71-4.el7.x86_64.rpm | 115 kB 00:00:00 (37/88): perl-HTTP-Cookies-6.01-5.el7.noarch.rpm | 26 kB 00:00:00 (38/88): perl-HTTP-Daemon-6.01-8.el7.noarch.rpm | 21 kB 00:00:00 (39/88): perl-HTTP-Date-6.02-8.el7.noarch.rpm | 14 kB 00:00:00 (40/88): perl-HTTP-Message-6.06-6.el7.noarch.rpm | 82 kB 00:00:00 (41/88): perl-HTML-Tagset-3.20-15.el7.noarch.rpm | 18 kB 00:00:00 (42/88): perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00:00 (43/88): perl-HTTP-Negotiate-6.01-5.el7.noarch.rpm | 17 kB 00:00:00 (44/88): perl-IO-HTML-1.00-2.el7.noarch.rpm | 23 kB 00:00:00 (45/88): perl-IO-Socket-IP-0.21-5.el7.noarch.rpm | 36 kB 00:00:00 (46/88): perl-IO-Socket-SSL-1.94-7.el7.noarch.rpm | 115 kB 00:00:00 (47/88): perl-LWP-MediaTypes-6.02-2.el7.noarch.rpm | 24 kB 00:00:00 (48/88): perl-Locale-Maketext-1.23-3.el7.noarch.rpm | 93 kB 00:00:00 (49/88): perl-Module-Pluggable-4.8-3.el7.noarch.rpm | 29 kB 00:00:00 (50/88): perl-Locale-Codes-3.26-2.el7.noarch.rpm | 314 kB 00:00:00 (51/88): perl-Mozilla-CA-20130114-5.el7.noarch.rpm | 11 kB 00:00:00 (52/88): perl-Net-LibIDN-0.12-15.el7.x86_64.rpm | 28 kB 00:00:00 (53/88): perl-Net-HTTP-6.06-2.el7.noarch.rpm | 29 kB 00:00:00 (54/88): perl-Net-SSLeay-1.55-6.el7.x86_64.rpm | 285 kB 00:00:00 (55/88): perl-Pod-Checker-1.60-2.el7.noarch.rpm | 28 kB 00:00:00 (56/88): perl-Pod-LaTeX-0.61-2.el7.noarch.rpm | 35 kB 00:00:00 (57/88): perl-Pod-Parser-1.61-2.el7.noarch.rpm | 107 kB 00:00:00 (58/88): perl-Pod-Plainer-1.03-4.el7.noarch.rpm | 9.0 kB 00:00:00 (59/88): perl-Test-Harness-3.28-3.el7.noarch.rpm | 302 kB 00:00:00 (60/88): perl-Sys-Syslog-0.33-3.el7.x86_64.rpm | 42 kB 00:00:00 (61/88): perl-Test-Simple-0.98-243.el7.noarch.rpm | 170 kB 00:00:00 (62/88): perl-Text-Unidecode-0.04-20.el7.noarch.rpm | 114 kB 00:00:00 (63/88): perl-Text-Soundex-3.04-4.el7.x86_64.rpm | 19 kB 00:00:00 (64/88): perl-TimeDate-2.30-2.el7.noarch.rpm | 52 kB 00:00:00 (65/88): perl-WWW-RobotRules-6.02-5.el7.noarch.rpm | 18 kB 00:00:00 (66/88): perl-URI-1.60-9.el7.noarch.rpm | 106 kB 00:00:00 (67/88): perl-XML-NamespaceSupport-1.11-10.el7.noarch.rpm | 18 kB 00:00:00 (68/88): perl-XML-LibXML-2.0018-5.el7.x86_64.rpm | 373 kB 00:00:00 (69/88): perl-XML-SAX-Base-1.08-7.el7.noarch.rpm | 32 kB 00:00:00 (70/88): perl-XML-SAX-0.99-9.el7.noarch.rpm | 63 kB 00:00:00 (71/88): perl-autodie-2.16-2.el7.noarch.rpm | 77 kB 00:00:00 (72/88): perl-local-lib-1.008010-4.el7.noarch.rpm | 64 kB 00:00:00 (73/88): perl-libwww-perl-6.05-2.el7.noarch.rpm | 205 kB 00:00:00 (74/88): qt-settings-19-23.8.el7.centos.noarch.rpm | 17 kB 00:00:00 (75/88): perl-devel-5.16.3-294.el7_6.x86_64.rpm | 453 kB 00:00:00 (76/88): redhat-lsb-4.1-27.el7.centos.1.x86_64.rpm | 25 kB 00:00:00 (77/88): qt-4.8.7-3.el7_6.x86_64.rpm | 4.6 MB 00:00:00 (78/88): redhat-lsb-core-4.1-27.el7.centos.1.x86_64.rpm | 38 kB 00:00:00 (79/88): redhat-lsb-cxx-4.1-27.el7.centos.1.x86_64.rpm | 16 kB 00:00:00 (80/88): redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64.rpm | 20 kB 00:00:00 (81/88): qt3-3.3.8b-51.el7.x86_64.rpm | 3.5 MB 00:00:00 (82/88): redhat-lsb-languages-4.1-27.el7.centos.1.x86_64.rpm | 18 kB 00:00:00 (83/88): redhat-lsb-printing-4.1-27.el7.centos.1.x86_64.rpm | 16 kB 00:00:00 (84/88): redhat-lsb-submod-multimedia-4.1-27.el7.centos.1.x86_64.rpm | 15 kB 00:00:00 (85/88): redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64.rpm | 15 kB 00:00:00 (86/88): systemtap-sdt-devel-3.3-3.el7.x86_64.rpm | 74 kB 00:00:00 (87/88): spax-1.5.2-13.el7.x86_64.rpm | 260 kB 00:00:00 (88/88): qt-x11-4.8.7-3.el7_6.x86_64.rpm | 13 MB 00:00:00 --------------------------------------------------------------------------------------------------------------------------------------- Total 14 MB/s | 49 MB 00:00:03 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-6.1810.2.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : glibc-common-2.17-260.el7_6.6.x86_64 1/90 Updating : glibc-2.17-260.el7_6.6.x86_64 2/90 Installing : perl-Data-Dumper-2.145-3.el7.x86_64 3/90 Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 4/90 Installing : perl-Test-Harness-3.28-3.el7.noarch 5/90 Installing : perl-Pod-Parser-1.61-2.el7.noarch 6/90 Installing : libmng-1.0.10-14.el7.x86_64 7/90 Installing : perl-XML-NamespaceSupport-1.11-10.el7.noarch 8/90 Installing : perl-XML-SAX-Base-1.08-7.el7.noarch 9/90 Installing : perl-Digest-1.17-245.el7.noarch 10/90 Installing : perl-IO-Socket-IP-0.21-5.el7.noarch 11/90 Installing : perl-Encode-Locale-1.03-5.el7.noarch 12/90 Installing : 1:perl-Digest-SHA-5.85-4.el7.x86_64 13/90 Installing : perl-Digest-MD5-2.52-3.el7.x86_64 14/90 Installing : qt3-3.3.8b-51.el7.x86_64 15/90 Installing : perl-Pod-Checker-1.60-2.el7.noarch 16/90 Installing : perl-Pod-LaTeX-0.61-2.el7.noarch 17/90 Installing : perl-Pod-Plainer-1.03-4.el7.noarch 18/90 Installing : perl-Test-Simple-0.98-243.el7.noarch 19/90 Installing : libpng12-1.2.50-10.el7.x86_64 20/90 Installing : perl-Sys-Syslog-0.33-3.el7.x86_64 21/90 Installing : perl-Net-SSLeay-1.55-6.el7.x86_64 22/90 Installing : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 23/90 Installing : perl-IO-Compress-2.061-2.el7.noarch 24/90 Installing : 1:perl-FCGI-0.74-8.el7.x86_64 25/90 Installing : perl-CGI-3.63-4.el7.noarch 26/90 Installing : foomatic-filters-4.0.9-8.el7_6.1.x86_64 27/90 Installing : m4-1.4.16-10.el7.x86_64 28/90 Installing : patch-2.7.1-10.el7_5.x86_64 29/90 Installing : mesa-libGLU-9.0.0-4.el7.x86_64 30/90 Installing : spax-1.5.2-13.el7.x86_64 31/90 Installing : perl-Net-LibIDN-0.12-15.el7.x86_64 32/90 Installing : systemtap-sdt-devel-3.3-3.el7.x86_64 33/90 Installing : redhat-lsb-submod-multimedia-4.1-27.el7.centos.1.x86_64 34/90 Installing : perl-Mozilla-CA-20130114-5.el7.noarch 35/90 Installing : perl-IO-Socket-SSL-1.94-7.el7.noarch 36/90 Installing : perl-Net-HTTP-6.06-2.el7.noarch 37/90 Installing : perl-autodie-2.16-2.el7.noarch 38/90 Installing : qt-settings-19-23.8.el7.centos.noarch 39/90 Installing : 1:qt-4.8.7-3.el7_6.x86_64 40/90 Installing : 1:qt-x11-4.8.7-3.el7_6.x86_64 41/90 Installing : 1:perl-Module-Pluggable-4.8-3.el7.noarch 42/90 Installing : perl-B-Lint-1.17-3.el7.noarch 43/90 Installing : perl-local-lib-1.008010-4.el7.noarch 44/90 Installing : 1:perl-TimeDate-2.30-2.el7.noarch 45/90 Installing : perl-HTTP-Date-6.02-8.el7.noarch 46/90 Installing : perl-File-Listing-6.04-7.el7.noarch 47/90 Installing : perl-Text-Unidecode-0.04-20.el7.noarch 48/90 Installing : perl-Text-Soundex-3.04-4.el7.x86_64 49/90 Installing : perl-IO-HTML-1.00-2.el7.noarch 50/90 Installing : perl-Class-ISA-0.36-1010.el7.noarch 51/90 Installing : gdbm-devel-1.10-8.el7.x86_64 52/90 Installing : perl-ExtUtils-Manifest-1.61-244.el7.noarch 53/90 Installing : mailcap-2.1.41-2.el7.noarch 54/90 Installing : perl-LWP-MediaTypes-6.02-2.el7.noarch 55/90 Installing : perl-Env-1.04-2.el7.noarch 56/90 Installing : kernel-headers-3.10.0-957.27.2.el7.x86_64 57/90 Installing : glibc-headers-2.17-260.el7_6.6.x86_64 58/90 Installing : glibc-devel-2.17-260.el7_6.6.x86_64 59/90 Installing : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 60/90 Installing : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 61/90 Installing : redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64 62/90 Installing : redhat-lsb-cxx-4.1-27.el7.centos.1.x86_64 63/90 Installing : redhat-lsb-printing-4.1-27.el7.centos.1.x86_64 64/90 Installing : perl-HTML-Tagset-3.20-15.el7.noarch 65/90 Installing : perl-File-CheckTree-4.42-3.el7.noarch 66/90 Installing : perl-Business-ISBN-Data-20120719.001-2.el7.noarch 67/90 Installing : perl-Business-ISBN-2.06-2.el7.noarch 68/90 Installing : perl-URI-1.60-9.el7.noarch 69/90 Installing : perl-HTTP-Message-6.06-6.el7.noarch 70/90 Installing : perl-HTTP-Cookies-6.01-5.el7.noarch 71/90 Installing : perl-HTML-Parser-3.71-4.el7.x86_64 72/90 Installing : perl-HTTP-Negotiate-6.01-5.el7.noarch 73/90 Installing : perl-HTTP-Daemon-6.01-8.el7.noarch 74/90 Installing : perl-WWW-RobotRules-6.02-5.el7.noarch 75/90 Installing : perl-libwww-perl-6.05-2.el7.noarch 76/90 Installing : perl-XML-SAX-0.99-9.el7.noarch 77/90 Installing : 1:perl-XML-LibXML-2.0018-5.el7.x86_64 78/90 Installing : perl-Locale-Codes-3.26-2.el7.noarch 79/90 Installing : perl-Locale-Maketext-1.23-3.el7.noarch 80/90 Installing : libdb-devel-5.3.21-24.el7.x86_64 81/90 Installing : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 82/90 Installing : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 83/90 Installing : perl-ExtUtils-Install-1.58-294.el7_6.noarch 84/90 Installing : 4:perl-devel-5.16.3-294.el7_6.x86_64 85/90 Installing : perl-CPAN-1.9800-294.el7_6.noarch 86/90 Installing : redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 87/90 Installing : redhat-lsb-4.1-27.el7.centos.1.x86_64 88/90 Cleanup : glibc-common-2.17-260.el7.x86_64 89/90 Cleanup : glibc-2.17-260.el7.x86_64 90/90 Verifying : redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64 1/90 Verifying : perl-Pod-Parser-1.61-2.el7.noarch 2/90 Verifying : libdb-devel-5.3.21-24.el7.x86_64 3/90 Verifying : redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 4/90 Verifying : glibc-2.17-260.el7_6.6.x86_64 5/90 Verifying : perl-Locale-Maketext-1.23-3.el7.noarch 6/90 Verifying : qt3-3.3.8b-51.el7.x86_64 7/90 Verifying : perl-Test-Simple-0.98-243.el7.noarch 8/90 Verifying : perl-LWP-MediaTypes-6.02-2.el7.noarch 9/90 Verifying : perl-Locale-Codes-3.26-2.el7.noarch 10/90 Verifying : libpng12-1.2.50-10.el7.x86_64 11/90 Verifying : perl-Sys-Syslog-0.33-3.el7.x86_64 12/90 Verifying : perl-Business-ISBN-Data-20120719.001-2.el7.noarch 13/90 Verifying : perl-IO-Socket-SSL-1.94-7.el7.noarch 14/90 Verifying : perl-Encode-Locale-1.03-5.el7.noarch 15/90 Verifying : perl-Data-Dumper-2.145-3.el7.x86_64 16/90 Verifying : perl-IO-Socket-IP-0.21-5.el7.noarch 17/90 Verifying : perl-Net-SSLeay-1.55-6.el7.x86_64 18/90 Verifying : perl-File-CheckTree-4.42-3.el7.noarch 19/90 Verifying : perl-Net-HTTP-6.06-2.el7.noarch 20/90 Verifying : 1:perl-Digest-SHA-5.85-4.el7.x86_64 21/90 Verifying : 4:perl-devel-5.16.3-294.el7_6.x86_64 22/90 Verifying : perl-HTML-Tagset-3.20-15.el7.noarch 23/90 Verifying : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64 24/90 Verifying : perl-B-Lint-1.17-3.el7.noarch 25/90 Verifying : perl-HTTP-Cookies-6.01-5.el7.noarch 26/90 Verifying : kernel-headers-3.10.0-957.27.2.el7.x86_64 27/90 Verifying : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 28/90 Verifying : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 29/90 Verifying : perl-Env-1.04-2.el7.noarch 30/90 Verifying : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 31/90 Verifying : perl-Pod-Checker-1.60-2.el7.noarch 32/90 Verifying : perl-ExtUtils-Install-1.58-294.el7_6.noarch 33/90 Verifying : 1:perl-XML-LibXML-2.0018-5.el7.x86_64 34/90 Verifying : perl-CPAN-1.9800-294.el7_6.noarch 35/90 Verifying : glibc-devel-2.17-260.el7_6.6.x86_64 36/90 Verifying : 1:perl-FCGI-0.74-8.el7.x86_64 37/90 Verifying : redhat-lsb-cxx-4.1-27.el7.centos.1.x86_64 38/90 Verifying : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 39/90 Verifying : perl-Digest-1.17-245.el7.noarch 40/90 Verifying : perl-Digest-MD5-2.52-3.el7.x86_64 41/90 Verifying : perl-URI-1.60-9.el7.noarch 42/90 Verifying : perl-libwww-perl-6.05-2.el7.noarch 43/90 Verifying : perl-Business-ISBN-2.06-2.el7.noarch 44/90 Verifying : mailcap-2.1.41-2.el7.noarch 45/90 Verifying : perl-ExtUtils-Manifest-1.61-244.el7.noarch 46/90 Verifying : foomatic-filters-4.0.9-8.el7_6.1.x86_64 47/90 Verifying : m4-1.4.16-10.el7.x86_64 48/90 Verifying : gdbm-devel-1.10-8.el7.x86_64 49/90 Verifying : redhat-lsb-printing-4.1-27.el7.centos.1.x86_64 50/90 Verifying : perl-HTML-Parser-3.71-4.el7.x86_64 51/90 Verifying : 1:qt-4.8.7-3.el7_6.x86_64 52/90 Verifying : perl-HTTP-Message-6.06-6.el7.noarch 53/90 Verifying : perl-Test-Harness-3.28-3.el7.noarch 54/90 Verifying : perl-Pod-LaTeX-0.61-2.el7.noarch 55/90 Verifying : perl-WWW-RobotRules-6.02-5.el7.noarch 56/90 Verifying : glibc-headers-2.17-260.el7_6.6.x86_64 57/90 Verifying : 1:qt-x11-4.8.7-3.el7_6.x86_64 58/90 Verifying : perl-Class-ISA-0.36-1010.el7.noarch 59/90 Verifying : perl-HTTP-Negotiate-6.01-5.el7.noarch 60/90 Verifying : patch-2.7.1-10.el7_5.x86_64 61/90 Verifying : perl-HTTP-Daemon-6.01-8.el7.noarch 62/90 Verifying : mesa-libGLU-9.0.0-4.el7.x86_64 63/90 Verifying : perl-IO-HTML-1.00-2.el7.noarch 64/90 Verifying : perl-Text-Unidecode-0.04-20.el7.noarch 65/90 Verifying : 1:perl-TimeDate-2.30-2.el7.noarch 66/90 Verifying : perl-Text-Soundex-3.04-4.el7.x86_64 67/90 Verifying : perl-XML-SAX-Base-1.08-7.el7.noarch 68/90 Verifying : perl-local-lib-1.008010-4.el7.noarch 69/90 Verifying : 1:perl-Module-Pluggable-4.8-3.el7.noarch 70/90 Verifying : perl-IO-Compress-2.061-2.el7.noarch 71/90 Verifying : qt-settings-19-23.8.el7.centos.noarch 72/90 Verifying : perl-HTTP-Date-6.02-8.el7.noarch 73/90 Verifying : perl-autodie-2.16-2.el7.noarch 74/90 Verifying : perl-XML-NamespaceSupport-1.11-10.el7.noarch 75/90 Verifying : perl-Mozilla-CA-20130114-5.el7.noarch 76/90 Verifying : libmng-1.0.10-14.el7.x86_64 77/90 Verifying : redhat-lsb-4.1-27.el7.centos.1.x86_64 78/90 Verifying : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 79/90 Verifying : perl-File-Listing-6.04-7.el7.noarch 80/90 Verifying : redhat-lsb-submod-multimedia-4.1-27.el7.centos.1.x86_64 81/90 Verifying : perl-XML-SAX-0.99-9.el7.noarch 82/90 Verifying : perl-CGI-3.63-4.el7.noarch 83/90 Verifying : perl-Pod-Plainer-1.03-4.el7.noarch 84/90 Verifying : spax-1.5.2-13.el7.x86_64 85/90 Verifying : systemtap-sdt-devel-3.3-3.el7.x86_64 86/90 Verifying : perl-Net-LibIDN-0.12-15.el7.x86_64 87/90 Verifying : glibc-common-2.17-260.el7_6.6.x86_64 88/90 Verifying : glibc-2.17-260.el7.x86_64 89/90 Verifying : glibc-common-2.17-260.el7.x86_64 90/90 Installed: redhat-lsb.x86_64 0:4.1-27.el7.centos.1 Dependency Installed: foomatic-filters.x86_64 0:4.0.9-8.el7_6.1 gdbm-devel.x86_64 0:1.10-8.el7 glibc-devel.x86_64 0:2.17-260.el7_6.6 glibc-headers.x86_64 0:2.17-260.el7_6.6 kernel-headers.x86_64 0:3.10.0-957.27.2.el7 libdb-devel.x86_64 0:5.3.21-24.el7 libmng.x86_64 0:1.0.10-14.el7 libpng12.x86_64 0:1.2.50-10.el7 m4.x86_64 0:1.4.16-10.el7 mailcap.noarch 0:2.1.41-2.el7 mesa-libGLU.x86_64 0:9.0.0-4.el7 patch.x86_64 0:2.7.1-10.el7_5 perl-B-Lint.noarch 0:1.17-3.el7 perl-Business-ISBN.noarch 0:2.06-2.el7 perl-Business-ISBN-Data.noarch 0:20120719.001-2.el7 perl-CGI.noarch 0:3.63-4.el7 perl-CPAN.noarch 0:1.9800-294.el7_6 perl-Class-ISA.noarch 0:0.36-1010.el7 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-Digest.noarch 0:1.17-245.el7 perl-Digest-MD5.x86_64 0:2.52-3.el7 perl-Digest-SHA.x86_64 1:5.85-4.el7 perl-Encode-Locale.noarch 0:1.03-5.el7 perl-Env.noarch 0:1.04-2.el7 perl-ExtUtils-Install.noarch 0:1.58-294.el7_6 perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 perl-FCGI.x86_64 1:0.74-8.el7 perl-File-CheckTree.noarch 0:4.42-3.el7 perl-File-Listing.noarch 0:6.04-7.el7 perl-HTML-Parser.x86_64 0:3.71-4.el7 perl-HTML-Tagset.noarch 0:3.20-15.el7 perl-HTTP-Cookies.noarch 0:6.01-5.el7 perl-HTTP-Daemon.noarch 0:6.01-8.el7 perl-HTTP-Date.noarch 0:6.02-8.el7 perl-HTTP-Message.noarch 0:6.06-6.el7 perl-HTTP-Negotiate.noarch 0:6.01-5.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-IO-HTML.noarch 0:1.00-2.el7 perl-IO-Socket-IP.noarch 0:0.21-5.el7 perl-IO-Socket-SSL.noarch 0:1.94-7.el7 perl-LWP-MediaTypes.noarch 0:6.02-2.el7 perl-Locale-Codes.noarch 0:3.26-2.el7 perl-Locale-Maketext.noarch 0:1.23-3.el7 perl-Module-Pluggable.noarch 1:4.8-3.el7 perl-Mozilla-CA.noarch 0:20130114-5.el7 perl-Net-HTTP.noarch 0:6.06-2.el7 perl-Net-LibIDN.x86_64 0:0.12-15.el7 perl-Net-SSLeay.x86_64 0:1.55-6.el7 perl-Pod-Checker.noarch 0:1.60-2.el7 perl-Pod-LaTeX.noarch 0:0.61-2.el7 perl-Pod-Parser.noarch 0:1.61-2.el7 perl-Pod-Plainer.noarch 0:1.03-4.el7 perl-Sys-Syslog.x86_64 0:0.33-3.el7 perl-Test-Harness.noarch 0:3.28-3.el7 perl-Test-Simple.noarch 0:0.98-243.el7 perl-Text-Soundex.x86_64 0:3.04-4.el7 perl-Text-Unidecode.noarch 0:0.04-20.el7 perl-TimeDate.noarch 1:2.30-2.el7 perl-URI.noarch 0:1.60-9.el7 perl-WWW-RobotRules.noarch 0:6.02-5.el7 perl-XML-LibXML.x86_64 1:2.0018-5.el7 perl-XML-NamespaceSupport.noarch 0:1.11-10.el7 perl-XML-SAX.noarch 0:0.99-9.el7 perl-XML-SAX-Base.noarch 0:1.08-7.el7 perl-autodie.noarch 0:2.16-2.el7 perl-devel.x86_64 4:5.16.3-294.el7_6 perl-libwww-perl.noarch 0:6.05-2.el7 perl-local-lib.noarch 0:1.008010-4.el7 qt.x86_64 1:4.8.7-3.el7_6 qt-settings.noarch 0:19-23.8.el7.centos qt-x11.x86_64 1:4.8.7-3.el7_6 qt3.x86_64 0:3.3.8b-51.el7 redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 redhat-lsb-cxx.x86_64 0:4.1-27.el7.centos.1 redhat-lsb-desktop.x86_64 0:4.1-27.el7.centos.1 redhat-lsb-languages.x86_64 0:4.1-27.el7.centos.1 redhat-lsb-printing.x86_64 0:4.1-27.el7.centos.1 redhat-lsb-submod-multimedia.x86_64 0:4.1-27.el7.centos.1 redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 spax.x86_64 0:1.5.2-13.el7 systemtap-sdt-devel.x86_64 0:3.3-3.el7 Dependency Updated: glibc.x86_64 0:2.17-260.el7_6.6 glibc-common.x86_64 0:2.17-260.el7_6.6 Complete! [root@node101.yinzhengjie.org.cn ~]#
[root@node101.yinzhengjie.org.cn ~]# lsb_release -a #这个命令CentOS7默认是不安装的,需要手动安装一下就好,它可用在ubantu系统上也可以使用哟~ LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:l anguages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarchDistributor ID: CentOS Description: CentOS Linux release 7.6.1810 (Core) Release: 7.6.1810 Codename: Core [root@node101.yinzhengjie.org.cn ~]#
3>.查看操作系统属于哪个分支版本
[root@node101.yinzhengjie.org.cn ~]# cat /etc/os-release #查看操作系统的发行版本 NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" #属于红帽的rhel fedora分支 VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" [root@node101.yinzhengjie.org.cn ~]#
六.查看Linux内核版本
[root@node101.yinzhengjie.org.cn ~]# uname -r 3.10.0-957.el7.x86_64 [root@node101.yinzhengjie.org.cn ~]#
七.查看主机名
[root@node101.yinzhengjie.org.cn ~]# hostname node101.yinzhengjie.org.cn [root@node101.yinzhengjie.org.cn ~]#
八.用户登录信息查看命令
[root@node101.yinzhengjie.org.cn ~]# who #系统当前所有的登录会话 root pts/0 2019-08-01 22:24 (172.30.1.1) root tty6 2019-08-01 22:53 [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# who am i #显示的还是蛮详细的 root pts/0 2019-08-01 22:24 (172.30.1.1) [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# whoami #显示当前登录有效用户 root [root@node101.yinzhengjie.org.cn ~]#
九.开机免密登录(一半用于自己的虚拟机的图形界面)
[root@node101.yinzhengjie.org.cn ~]# cat /etc/gdm/custom.conf # GDM configuration storage [daemon] AutomaticLoginEnable=true #我们这一行是启用开机自动登录 AutomaticLogin=root #我们这里使用的是root用户进行登录 [security] [xdmcp] [chooser] [debug] # Uncomment the line below to turn on debugging #Enable=true [root@node101.yinzhengjie.org.cn ~]#
十.查看当前所在的终端
[root@node101.yinzhengjie.org.cn ~]# tty /dev/pts/1 [root@node101.yinzhengjie.org.cn ~]#
十一.编写用户登录成功后的欢迎信息
[root@node101.yinzhengjie.org.cn ~]# cat /etc/motd #我们在这里写上相应的欢迎信息 welcome to https://www.cnblogs.com/yinzhengjie/ [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# logout #然后我们退出操作系统,由于我设置了重新连接的机制,基本上断开1秒后又重新连接啦。 Connection closed by foreign host. Disconnected from remote host(node101.yinzhengjie.org.cn) at 14:12:17. Type `help' to learn how to use Xshell prompt. [c:\~]$ Reconnecting in 1 seconds. Press any key to exit local shell. . Host 'node101.yinzhengjie.org.cn' resolved to 172.30.1.101. Connecting to 172.30.1.101:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Sep 3 13:58:41 2019 from 172.30.1.1 welcome to https://www.cnblogs.com/yinzhengjie/ #登录成功后,我们发现这里有相关的登录信息。 [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]#
十二.编写用户登录成功前的欢迎信息
[root@node101.yinzhengjie.org.cn ~]# cat /etc/issue #该配置文件在生产环境中建议把内核版本隐藏,不要出现welcome相关的词,如果黑客登录你的服务器你告他时,他反过来说你的设备写着"welcome"相关词语,你不应该惩罚我~那你就哑巴吃黄连,有苦说不出呀~ welcome to https://www.cnblogs.com/yinzhengjie/ !!! \S Kernel \r on an \m [root@node101.yinzhengjie.org.cn ~]#
十三.服务器关机和重启
关机:halt, poweroff 重启:reboot -f: 强制,不调用shutdown -p: 切断电源 关机或重启: shutdown shutdown [OPTION]... [TIME] [MESSAGE] -r: reboot -h: halt -c:cancel TIME:无指定,默认相当于+1(CentOS7) now: 立刻,相当于+0 +m: 相对时间表示法,几分钟之后;例如 +3 hh:mm: 绝对时间表示,指明具体时间 当然关机或重启还可以直接使用init 0或者init 6来执行。关于init这个命令我们之后会单独拿来给大家介绍的。
十四.screen命令
创建新screen会话
screen –S [SESSION]
加入screen会话
screen –x [SESSION]
退出并关闭screen会话
exit
剥离当前screen会话
Ctrl+a,d
显示所有已经打开的screen会话
screen -ls
恢复某screen会话
screen -r [SESSION]
1>.安装screen工具
[root@node101.yinzhengjie.org.cn ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 500G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 499G 0 part ├─centos-root 253:0 0 50G 0 lvm / ├─centos-swap 253:1 0 3.9G 0 lvm [SWAP] └─centos-home 253:2 0 445.1G 0 lvm /home sr0 11:0 1 10G 0 rom /run/media/root/CentOS 7 x86_64 #不难发现这里是我们本地的光盘位置 [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# rpm -ivh /run/media/root/CentOS\ 7\ x86_64/Packages/screen-4.1.0-0.25.20120 #我们直接使用本地的iso镜像光盘来安装,默认是附带该安装包的~ 314git3c2946.el7.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:screen-4.1.0-0.25.20120314git3c29################################# [100%] [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]#
2>.启动一个screen窗口
[root@node101.yinzhengjie.org.cn ~]# who #在第一个窗口查看当前的登录终端 root :0 2019-08-02 16:30 (:0) root pts/0 2019-08-02 16:37 (:0) root pts/1 2019-09-03 14:00 (172.30.1.1) root pts/2 2019-08-03 20:13 (172.30.1.1) #大家注意看这一行,很正常对吧?那么继续往下看 [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# screen #我们启用一个screen的命令会进入到一个新的窗口 [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# who #再次查看当前的登录终端 root :0 2019-08-02 16:30 (:0) root pts/0 2019-08-02 16:37 (:0) root pts/2 2019-08-03 20:13 (172.30.1.1) root pts/3 2019-09-03 19:20 (172.30.1.1:S.0) #大家看这里,我们发现这里右面 多出来了一个":S.0"的字样,没错,说明你启用screen成功啦! [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# ping 127.0.0.1 #紧接着,我们ping当前主机,然后不要使用”Ctrl + c“指令去终止该命令,让他一直执行下去,我们只需要在window中关闭当前连接即可! PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.086 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.099 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.042 ms 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.039 ms 64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.040 ms 64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.082 ms 64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.039 ms 64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=0.083 ms 64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=0.099 ms 64 bytes from 127.0.0.1: icmp_seq=10 ttl=64 time=0.081 ms 64 bytes from 127.0.0.1: icmp_seq=11 ttl=64 time=0.062 ms 64 bytes from 127.0.0.1: icmp_seq=12 ttl=64 time=0.097 ms 64 bytes from 127.0.0.1: icmp_seq=13 ttl=64 time=0.085 ms ........
3>.显示所有已经打开的screen会话
[root@node101.yinzhengjie.org.cn ~]# screen -ls ` #显示所有已经打开的screen会话 There is a screen on: 31644.pts-1.node101 (Detached) #注意,这里的"Detached"意思是和当前终端脱离啦,但命令依旧还在执行哟 1 Socket in /var/run/screen/S-root. [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# ps -ef | grep ping #我们知道刚刚执行了一条"ping 127.0.0.1"的指定,我们使用ps命令查看一下进程是否存在 root 10551 10086 0 9月02 ? 00:00:07 /usr/libexec/gsd-housekeeping root 31716 31645 0 19:24 pts/3 00:00:00 ping 127.0.0.1 #很显然,我们看到了这条命令是存在的! root 31752 28146 0 19:27 pts/2 00:00:00 grep --color=auto ping [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]#
4>.恢复某screen会话
[root@node101.yinzhengjie.org.cn ~]# screen -ls There is a screen on: 31644.pts-1.node101 (Detached) 1 Socket in /var/run/screen/S-root. [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# screen -r #恢复我们的screen会话,我们会发现之前的命令输出都会弹出来的 ...... 64 bytes from 127.0.0.1: icmp_seq=353 ttl=64 time=0.046 ms 64 bytes from 127.0.0.1: icmp_seq=354 ttl=64 time=0.049 ms 64 bytes from 127.0.0.1: icmp_seq=355 ttl=64 time=0.049 ms 64 bytes from 127.0.0.1: icmp_seq=356 ttl=64 time=0.044 ms 64 bytes from 127.0.0.1: icmp_seq=357 ttl=64 time=0.050 ms 64 bytes from 127.0.0.1: icmp_seq=358 ttl=64 time=0.043 ms 64 bytes from 127.0.0.1: icmp_seq=359 ttl=64 time=0.052 ms 64 bytes from 127.0.0.1: icmp_seq=360 ttl=64 time=0.039 ms ......
5>.使用screen工具实现字符界面共享案例
[root@node101.yinzhengjie.org.cn ~]# who root :0 2019-08-02 16:30 (:0) root pts/0 2019-08-02 16:37 (:0) root pts/1 2019-09-03 19:38 (172.30.1.1) [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# screen -S help_me #用户A登录服务器,启动一个screen,并自定义名称为"help_me" [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# who root :0 2019-08-02 16:30 (:0) root pts/0 2019-08-02 16:37 (:0) root pts/2 2019-09-03 19:39 (172.30.1.1) root pts/4 2019-09-03 19:39 (172.30.1.1:S.0) [root@node101.yinzhengjie.org.cn ~]#
[root@node101.yinzhengjie.org.cn ~]# screen -ls #用户B登录同一台服务器,查看当前已经打开的screen会话 There are screens on: 32229.help_me (Attached) #不难发现"Attached"状态说明这个终端有人正在使用呢,而下面的"Detached"的终端还未有用户进去管理,但是里面执行的命令依旧建在! 31644.pts-1.node101 (Detached) 2 Sockets in /var/run/screen/S-root. [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# screen -x help_me #用户B需要指定要连接的screen会话,登录用户A所启用的screen会话,即"help_me",我们需要使用"-x"参数来指定screen会话名称 [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# who #登录成功后,你会立即得到一个画面,也就是当前用户A正在执行的Screen字符界面,你现在就可以和他实现桌面共享啦~ root :0 2019-08-02 16:30 (:0) root pts/0 2019-08-02 16:37 (:0) root pts/2 2019-09-03 19:39 (172.30.1.1) root pts/4 2019-09-03 19:39 (172.30.1.1:S.0) [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]#
十五.tab键
命令补全 内部命令: 外部命令: bash根据PATH环境变量定义的路径,自左而右在每个路径搜寻以给定命令名命名的文件,第一次找到的命令即为要执行的命令 用户给定的字符串只有一条惟一对应的命令,直接补全 否则,再次Tab会给出列表 路径补全 把用户给出的字符串当做路径开头,并在其指定上级目录下搜索以指定的字 符串开头的文件名 如果惟一:则直接补全 否则:再次Tab给出列表
案例如下: [root@node101.yinzhengjie.org.cn ~]# ls /etc/sysc #按2下tab键,可以把符合条件的路径列出来,供咱们选择 sysconfig/ sysctl.conf sysctl.d/ [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# [root@node101.yinzhengjie.org.cn ~]# ifc #按2下tab键,可以把符合条件的命令列出来,供咱们选择 ifcfg ifconfig [root@node101.yinzhengjie.org.cn ~]#
十六.XSHELL的配置
1>.颜色设置
2>.自动连接配置
本文来自博客园,作者:尹正杰,转载请注明原文链接:https://www.cnblogs.com/yinzhengjie/p/11080600.html,个人微信: "JasonYin2020"(添加时请备注来源及意图备注,有偿付费)
当你的才华还撑不起你的野心的时候,你就应该静下心来学习。当你的能力还驾驭不了你的目标的时候,你就应该沉下心来历练。问问自己,想要怎样的人生。