首页 > 编程知识 正文

linux命令ll和ls区别,linux 查看日志

时间:2023-05-04 16:06:27 阅读:9637 作者:40

centos8[ 21:44336005 root @ c8-3-55~] # type llll是` ls -l --color=auto '的别名

Ubuntu 20 lastlog in : th umar 25173360013360562021 from 10.0.0.1 [ 09336046 u20 @ u20-0-52~] $ typellllllisaliasedto `

[ 2133604336057 root @ c8-3-55~] # ll-- help用法: ls [可选]. [文件] . listinformationaboutthefiles (the current direction.sortentriesalphabeticallyifnoneof-cftuvsuxnor-- sortis specified . -a,--all以.开头的项目--a,--almost-all列出.和.以外的项目。 如果同时使用--author和--l,则列出每个文件的作者--b,其中--escape表示八进制溢出序列中的不可打印字符e.g .'--block-size=M '; see SIZE format below -B,--ignore-backupsdonotlistimpliedentriesendingwith-- c with-lt 3360 sort by,and show,ctime (使用时间) otherwise: sort by ctime,newest first-clistentriesbycolumns---color [=when ] colorizetheoutput; when can be ' always ' (defaultifomitted )、' auto '、or 'never '; more info below-d---- directorylistdirectoriesthemselves,not their contents -D,- diredgenerateoutputdesignedforemacs ' ' disable -ls --color -F,- classifyappendindicator (one of */=@|) to entries --file-type likewise,exceptdonotapeppend 长时间,单列- 1,verbose -l,vertical-c-- full-time like-l-time-style=full-canbeaugmentedwithed

s, print sizes like 1K 234M 2G etc. --si likewise, but use powers of 1000 not 1024 -H, --dereference-command-line follow symbolic links listed on the command line --dereference-command-line-symlink-to-dir follow each command line symbolic link that points to a directory --hide=PATTERN do not list implied entries matching shell PATTERN (overridden by -a or -A) --hyperlink[=WHEN] hyperlink file names; WHEN can be 'always' (default if omitted), 'auto', or 'never' --indicator-style=WORD append indicator with style WORD to entry names: none (default), slash (-p), file-type (--file-type), classify (-F) -i, --inode print the index number of each file -I, --ignore=PATTERN do not list implied entries matching shell PATTERN -k, --kibibytes default to 1024-byte blocks for disk usage; used only with -s and per directory totals -l 使用较长格式列出信息 -L, --dereference 当显示符号链接的文件信息时,显示符号链接所指示 的对象而并非符号链接本身的信息 -m 所有项目以逗号分隔,并填满整行行宽 -n, --numeric-uid-gid like -l, but list numeric user and group IDs -N, --literal print entry names without quoting -o like -l, but do not list group information -p, --indicator-style=slash append / indicator to directories -q, --hide-control-chars print ? instead of nongraphic characters --show-control-chars show nongraphic characters as-is (the default, unless program is 'ls' and output is a terminal) -Q, --quote-name enclose entry names in double quotes --quoting-style=WORD use quoting style WORD for entry names: literal, locale, shell, shell-always, shell-escape, shell-escape-always, c, escape (overrides QUOTING_STYLE environment variable) -r, --reverse 逆序排列 -R, --recursive 递归显示子目录 -s, --size 以块数形式显示每个文件分配的尺寸 -S sort by file size, largest first --sort=WORD sort by WORD instead of name: none (-U), size (-S), time (-t), version (-v), extension (-X) --time=WORD with -l, show time as WORD instead of default modification time: atime or access or use (-u); ctime or status (-c); also use specified time as sort key if --sort=time (newest first) --time-style=TIME_STYLE time/date format with -l; see TIME_STYLE below -t sort by modification time, newest first -T, --tabsize=COLS assume tab stops at each COLS instead of 8 -u with -lt: sort by, and show, access time; with -l: show access time and sort by name; otherwise: sort by access time, newest first -U do not sort; list entries in directory order -v natural sort of (version) numbers within text -w, --width=COLS set output width to COLS. 0 means no limit -x list entries by lines instead of by columns -X sort alphabetically by entry extension -Z, --context print any security context of each file -1 list one file per line. Avoid 'n' with -q or -b --help 显示此帮助信息并退出 --version 显示版本信息并退出

CentOS 中记录文件夹颜色的文件

[21:49:14 root@C8-3-55 ~]#ll /etc/DIR_COLORS-rw-r--r--. 1 root root 4536 5月 11 2019 /etc/DIR_COLORS

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。