目的:记录Linux日常所用命令

  [20171222]Linux环境下查看硬件组件型号

  cat /proc/cpuinfo及lspci

查看CPU
[root@t-redhat- ~]# cat /proc/cpuinfo
processor :
vendor_id : AuthenticAMD
cpu family :
model :
model name : AMD Ryzen Eight-Core Processor ->这里就是CPU型号
stepping :
cpu MHz : 2994.370 ->cpu 频率
cache size : KB
fpu : yes
fpu_exception : yes
cpuid level :
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp lm up rep_good extd_apicid unfair_spinlock pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm cr8_legacy abm sse4a misalignsse 3dnowprefetch
bogomips : 5988.74
TLB size : 4K pages
clflush size :
cache_alignment :
address sizes : bits physical, bits virtual
power management: lspci会把所有pci接口硬件型号显示

[root@t-redhat-01 ~]# lspci 
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) ->主桥
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] ->ISA 桥
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) ->IDE接口
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter ->VGA兼容控制器
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) ->网卡
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service ->系统外围组件
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01) ->音频
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB ->USB接口
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08) ->桥
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02) ->SATA接口

 

[20171225]

[root@localhost ~]# mount -o loop rhel-server-5.9-x86_64-dvd.iso /root/loop_iso/ (挂载本地ISO文件)
[root@localhost u04]# dd if=/dev/zero of=/u04/loop_mount bs=1M count= (制作文件分区)
[root@localhost u04]# mount -o loop /u04/loop_mount /u04/mount_loop (挂载文件分区)
[root@localhost ~]# mkswap /u04/loop_mount 、swapon -v /u04/loop_mount (格式化swap 并挂载swap )
[root@localhost ~]# mount -o remount,rw auto/ (单例模式重新挂载 根/ 目录)
[root@localhost ~]# find . |xargs grep -ri "wh_site_isn" (查询目录包含的字符)
[root@localhost oracle]# mount -t tmpfs shmfs -o size=7g /dev/shm (挂载shm分区并指定大小)
[root@localhost ~]#mount /dev/cdrom /opt/linux_ic_21 (linuxIC_21 hyper-v linux网络补丁包)
[oracle@localhost dbs]$ od c--- (Linux下查看二进制文件od)
[root@localhost ~]# dmidecode |grep -A16 "Memory Device$" (查看设备的内存信息)
[root@localhost ~]# cat /etc/issue & uname -a & cat /proc/version(查看Linux内核版本)
[oracle@localhost ~]$ kibitz oracle (Linux同步用户界面)
 
05-11 22:02