美文网首页
Linux 的基础命令

Linux 的基础命令

作者: 57fc17b7d598 | 来源:发表于2017-07-06 16:31 被阅读16次

    查看当前所在的目录

    [root@localhost ~]# pwd
    /root
    

    查看当前的日期时间

    [root@localhost ~]# date
    2017年 07月 06日 星期四 16:17:23 CST
    

    查看当前的日历信息

    [root@localhost ~]# cal
          七月 2017     
    日 一 二 三 四 五 六
                       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
    

    查看系统磁盘容量(-h 表示将大小以简单易懂的形式描述)

    [root@localhost ~]# df -h
    文件系统             容量  已用  可用 已用% 挂载点
    /dev/mapper/cl-root   17G  1.8G   16G   11% /
    devtmpfs             902M     0  902M    0% /dev
    tmpfs                912M     0  912M    0% /dev/shm
    tmpfs                912M  8.6M  904M    1% /run
    tmpfs                912M     0  912M    0% /sys/fs/cgroup
    /dev/sda1           1014M  184M  831M   19% /boot
    tmpfs                183M     0  183M    0% /run/user/0
    

    查看系统内存信息

    [root@localhost ~]# free -h
                  total        used        free      shared  buff/cache   available
    Mem:           1.8G        140M        1.3G        8.6M        353M        1.5G
    Swap:          2.0G          0B        2.0G
    

    相关文章

      网友评论

          本文标题:Linux 的基础命令

          本文链接:https://www.haomeiwen.com/subject/glnhhxtx.html