3 ls

ls 用来显示目标列表,ls命令的输出信息可以进行彩色加亮显示,以区分不同类型的文件。
     
    语法:
       ls   (选项) (参数)
     选项:
        -a :显示所有档案及目录(ls内定将档案名或目录名称为“."的视为隐藏,不会列出);
        -A :显示除隐藏文件“."和".."以外的所有文件列表;
        -C: 多列显示输出结果。 这是默认选项;
        -l: 与“-C”选项功能相反,所有输出信息用单列格式输出,  
        -F: 在每个输出项后追加文件的类型标识符,具体含义:“*”表示具有可执行权限的普通文件,“/”表示目录,“@”表示符号链接,“|”表示命令通道FIFO,“=”表示sockets套接字。当文件为普通文件时,不输出任何标识符;
        -b: 将文件中的不可输出的字符以反斜线“”加字符编码的方式输出;
        -c:  与“-lt”选项连用时,按照文件状态时间排序输出目录内容,排序的依据是文件的索引节点中的ctime字段。与“-l”选项连用时,则排序的依据是文件的状态改变时间;
        -d: 仅显示目录名,而不显示目录下的内容列表。显示符号链接文件本身,而不显示其所指向的目录列表;
        -f: 此参数的效果和同时指定“aU”参数相同,并关闭“lst”参数的效果;
        -i: 显示文件索引节点号(inode)。一个索引节点代表一个文件;
        --file-type: 与“-F”选项功能相同,但是不显示“*”
        -k: 以KB(千字节)为单位显示文件大小;
        -l: 以长格式显示目录下的内容列表。输出的信息从左到右依次包括文件名,文件类型,权限模式,硬链接数,所有者,组,文件大小和文件的最后修改时间等;
        -m: 用“,”号区隔每一个文件和目录的名称;
        -n: 以用户识别码和群组识别码替代其名称;
        -r: 以文件名反序排列并输出目录内容列表;
        -s: 显示文件和目录的大小,以区块为单位;
        -t:用文件和目录的更改时间排序;
        -L: 如果遇到性质为符号链接的文件和目录,直接列出该链接所指向的原始文件或目录;
        -R: 递归处理,将指定目录下的所有文件及子目录一并处理;
        --full-time: 列出完整的日期与时间;
       
          
                       


    2clock  
            hwclock  【function】 【options】
       Functions
       -r: read hardware clock and print result,set the rtc to the time given with --date
            读取硬件时钟并打印结果 ,将RTC设置为给定日期
       -s: set the system time from the hardware clock,从硬件时钟设置系统时间
       -w: set the hardware clock to the current system time,将硬件时钟设置为当前系统时间 
            set the system time based on the current timezone,基于当前时区设置系统时间
            adjust the rtc to account for systematic drift since
            the clock was last set or adjusted
            调整时钟,以考虑系统的漂移,因为时钟是最后一套。
       -c: periodically compare the system clock with the CMOS clock,定期比较系统时钟和CMOS时钟
            print out the kernel's hardware clock epoch value,打印内核的硬件时钟历元值。
            set the kernel's hardware clock epoch value to the
            value given with --epoch
            将内核的硬件时钟历元值设置为给定的值——纪元
       -v: print out the version of hwclock to stdout,打印出来的hwclock版标准
      Options
       -u: the hardware clock is kept in UTC 。硬件时钟保持在UTC。
            the hardware clock is kept in local time。硬件时钟保存在本地时间
       -f: special /dev/... file to use instead of default。特别/开发/…要使用的文件而不是默认文件
            access the ISA bus directly instead of /dev/rtc。直接访问ISA总线而不是
            ignore rtc's year because the bios is broken。忽略RTC的一年,因为BIOS坏了
            specifies the time to which to set the hardware clock。指定设置硬件时钟的时间。
            specifies the year which is the beginning of the
            hardware clock's epoch value。指定年份是硬件时钟的时代价值的开始
            do not access /etc/adjtime. Requires the use of
            either --utc or --localtime。不要访问/ etc / adjtime。要求- UTC或使用时间
            specifies the path to the adjust file (default is
            /etc/adjtime)。指定的调整文件的路径(默认是/ etc / adjtime)
            do everything except actually updating the hardware
            clock or anything else。除了更新硬件时钟或其他东西之外,什么都可以做。
        -D:debug mode  调试方式;

原文地址:https://www.cnblogs.com/liang-1/p/8710945.html