Linux常用命令


  • cat /etc/redhat-release //查系统版本;
  • clock //时间;
  • hostname //主机名
  • pwd //当前所在目录
  • cd //返回用户主目录
  • cd 路径 //更改目录
  • top //进程信息
  • df //磁盘使用情况
  • free //内存信息
  • ls //列出该目录包含的文件及子目录
  • uptime //查系统运行时间、用户数、负载
  • who//查当前用户
  • last//用户或终端的登录情况
  • ifconfig //查看网络属性
  • netstat //查看网络状态
  • cal //日历
  • history //查历史操作记录
  • timedatectl list-timezones //打印时区列表(没有北京是正常的)
  • timedatectl set-timezone Asia/Shanghai //更改时区

相关文章