linux - 系统及硬件

系统信息

uname -a      # 显示全部
uname -m      # 显示机器的处理器架构
uname -r      # 显示正在使用的内核版本

date          # 显示系统日期
cal           # 显示日历表

关机 (系统的关机、重启以及登出)

shutdown -h now # 关闭系统(1)
init 0          # 关闭系统(2)
telinit 0       # 关闭系统(3)
shutdown -h     # hours:minutes & 按预定时间关闭系统
shutdown -c     # 取消按预定时间关闭系统
shutdown -r     # now 重启(1)
reboot          # 重启(2)
logout          # 注销

磁盘空间

df -Th          # 查看磁盘空间
du -h           # 查看每一个文件占用大小
free -h         # 查看内存大小

查看麒麟系统版本

nkvers

# 或者
cat /etc/.productinfo

posted on 2018-09-29 09:09  疯狂的妞妞  阅读(163)  评论(0编辑  收藏  举报

导航