• Linux 命令[1]:ls


    ls [选项] [目录名...]

    [选项]

    -a, --all列出目录中所有文件,包括以隐藏。

    -l, --format=long, --format=verbose  显示详细信息

    -d 查看目录属性

    -h 显示人性化大小信息(只修饰文件大小)

    -i 显示inode

    [root@localhost ~]# ls -l
    总用量 20
    -rw-------. 1 root root 1097 1月 23 15:22 anaconda-ks.cfg
    -rw-r--r--. 1 root root 9214 1月 23 15:22 install.log
    -rw-r--r--. 1 root root 3091 1月 23 15:21 install.log.syslog

    权限:-(文件类型 -文件 d目录 l软链接文件) rw-(u用户) -r-(g用户组) r--(o其他人)

    r读 w写 x可执行

     1(引用数)  

    root(所有者)

    root(所属组)

    1097(大小 单位:字节)

    1月 23 15:22 (最后一次修改时间)

    anaconda-ks.cfg (文件名)

    ls -lh 可将大小显示的能看懂

    [root@localhost ~]# ls -lh
    总用量 20K
    -rw-------. 1 root root 1.1K 1月  23 15:22 anaconda-ks.cfg
    -rw-r--r--. 1 root root 9.0K 1月  23 15:22 install.log
    -rw-r--r--. 1 root root 3.1K 1月  23 15:21 install.log.syslog
  • 相关阅读:
    10月6日动手动脑
    10月5日
    SQL
    bug 对应
    @OneToMany
    SQL Constraints
    SQL级联删除——删除主表同时删除从表——同时删除具有主外键关系的表
    子父表
    取字符串
    SQL中MAX()
  • 原文地址:https://www.cnblogs.com/lazyx/p/4783734.html
Copyright © 2020-2023  润新知