一、查看系統(tǒng)內(nèi)核版本
通過查看/proc/version文件,可獲得系統(tǒng)內(nèi)核版本信息:
root@ELF1:~# cat /proc/version
Linux version 4.1.15-00007-ge9125e24 (elf@ubuntu) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Mon Sep 11 16:37:54 CST 2023 |
二、查看內(nèi)存使用情況
可使用free查看內(nèi)存使用情況:
root@ELF1:~#?free
total ???????used ???????free ?????shared ?buff/cache ??available Mem: ???????507732 ?????59572 ?????393716 ????864 ????54444 ?????379652 Swap: ?????????0 ??????????0 ??????????0 |
輸出結(jié)果意義:
第一行Mem行解釋:
total:內(nèi)存總數(shù);
used:已經(jīng)使用的內(nèi)存數(shù);
free:空閑的內(nèi)存數(shù);
shared:當(dāng)前已經(jīng)廢棄不用;
buffers Buffer:緩存內(nèi)存數(shù);
available:可用內(nèi)存數(shù)。
關(guān)系:total = used + free
第二行是指交換分區(qū)。
三、查看CPU等信息
root@ELF1:~# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
1 ?ARMv7 Processor rev 5 (v7l) |
四、reboot 重新啟動系統(tǒng)
當(dāng)需要關(guān)機(jī)或重啟時,如果有數(shù)據(jù)存儲操作,為了確保數(shù)據(jù)完全寫入,可輸入 sync 命令,完成數(shù)據(jù)同步后關(guān)閉電源重啟。
也可輸入reboot命令重啟:
root@ELF1:~# reboot |