1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# dmidecode |grep -A16 "Memory Device$" Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: 2048 MB //1条2G内存 Form Factor: DIMM Set: 1 Locator: DIMM1 Bank Locator: Not Specified Type: DDR2 Type Detail: Synchronous Speed: 667 MHz Manufacturer: 7F7F7F7F7F510000 Serial Number: 0403E324 Asset Tag: 450721 Part Number: 72T256220HR3SA -- Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: 2048 MB //1条2G内存 Form Factor: DIMM Set: 1 Locator: DIMM2 Bank Locator: Not Specified Type: DDR2 Type Detail: Synchronous Speed: 667 MHz Manufacturer: 7F7F7F7F7F510000 Serial Number: 0403E324 Asset Tag: 450721 Part Number: 72T256220HR3SA -- Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: No Module Installed //1个内存空槽 Form Factor: DIMM Set: 2 Locator: DIMM3 Bank Locator: Not Specified Type: DDR2 Type Detail: Synchronous Speed: Unknown Manufacturer: Serial Number: Asset Tag: Part Number: -- Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: No Module Installed //1个内存空槽 Form Factor: DIMM Set: 2 Locator: DIMM4 Bank Locator: Not Specified Type: DDR2 Type Detail: Synchronous Speed: Unknown Manufacturer: Serial Number: Asset Tag: Part Number: -- Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: No Module Installed //1个内存空槽 Form Factor: DIMM Set: 3 Locator: DIMM5 Bank Locator: Not Specified Type: DDR2 Type Detail: Synchronous Speed: Unknown Manufacturer: Serial Number: Asset Tag: Part Number: -- Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: No Module Installed //1个内存空槽 Form Factor: DIMM Set: 3 Locator: DIMM6 Bank Locator: Not Specified Type: DDR2 Type Detail: Synchronous Speed: Unknown Manufacturer: Serial Number: Asset Tag: Part Number: |
感谢有奉献精神的人 转自:https://blog.csdn.net/zhangliao613/article/details/79021606 转自:http://www.jb51.net/article/97157.htm 1 查看CPU 1.1 查看CPU个数 # cat /proc/cpuinfo | grep "physical id" | uniq | wc -l 2 **uniq命令:删除重复行;wc –l命令:统计行数** 1.2 查看CPU核数 # cat /proc/cpuinfo | grep "cpu cores" | uniq cpu cores : 4 1.3 查看CPU型号 # cat /proc/cpuinfo | grep 'model name' |uniq model name : Intel(R) Xeon(R) CPU E5630 @ 2.53GHz 总结:该服务器有2个4核CPU,型号Intel(R) Xeon(R) CPU E5630 @ 2.53GHz 2 查看内存 2.1 查看内存总数 #cat /proc/meminfo | grep MemTotal MemTotal: 32941268 kB //内存32G 下面是一些命令的集合,供参考: uname -a # 查看内核/操作系统/CPU信息的linux系统信息 head -n l /etc/issue # 查看操作系统版本 cat /proc/cpuinfo # 查看CPU信息 hostname # 查看计算机名的linux系统信息命令 lspci -tv # 列出所有PCI设备 lsusb -tv # 列出所有USB设备的linux系统信息命令 lsmod # 列出加载的内核模块 env # 查看环境变量资源 […]
View Details1 git status 查看有多少次 提交了 没有push到版本库 eg:Your branch is ahead of 'origin/master' by 1 commit. (我这里有一次) 2. 查看已经提交 但是未传送到远程代码库的提交描述/说明 git cherry -v eg: + 27122d40164dbf08276d96960bde20a2059cdb8b 修改页面 3.查看已经提交但是未传送到远程代码库的提交详情(可能不止一次) git log master ^origin/master eg: commit 27122d40164dbf08276d96960bde20a2059cdb8b Author: huyw Date: Mon Oct 8 11:43:19 2018 +0800 修改页面 总结:一定要记住时刻本地和服务器保持一致,一旦出现冲突,生产环境就很麻烦(当然,不怕冲突多的,可以忽略) git status 只能查看未传送代码库提交的次数 git cherry -v只能查看未传送代码库提交的描述/说明(唯一id) git log master ^origin/master则可以查看未传送代码库提交的详细信息 ———————————————— 版权声明:本文为CSDN博主「跨省少年」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/u010089432/article/details/85318995
View Details