centos7

文章目录

  • ls --help

ls --help

[root@localhost 20220813]# ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.Mandatory arguments to long options are mandatory for short options too.-a, --all                  do not ignore entries starting with .   //不忽略以 . 开头的条目。-A, --almost-all           do not list implied . and ..--author               with -l, print the author of each file-b, --escape               print C-style escapes for nongraphic characters--block-size=SIZE      scale sizes by SIZE before printing them; e.g.,'--block-size=M' prints sizes in units of1,048,576 bytes; see SIZE format below-B, --ignore-backups       do not list implied entries ending with ~-c                         with -lt: sort by, and show, ctime (time of lastmodification of file status information);with -l: show ctime and sort by name;otherwise: sort by ctime, newest first-C                         list entries by columns--color[=WHEN]         colorize the output; WHEN can be 'never', 'auto',or 'always' (the default); more info below-d, --directory            list directories themselves, not their contents-D, --dired                generate output designed for Emacs' dired mode-f                         do not sort, enable -aU, disable -ls --color-F, --classify             append indicator (one of */=>@|) to entries--file-type            likewise, except do not append '*'--format=WORD          across -x, commas -m, horizontal -x, long -l,single-column -1, verbose -l, vertical -C--full-time            like -l --time-style=full-iso-g                         like -l, but do not list owner--group-directories-firstgroup directories before files;can be augmented with a --sort option, but anyuse of --sort=none (-U) disables grouping-G, --no-group             in a long listing, don't print group names-h, --human-readable       with -l, print sizes in human readable format(e.g., 1K 234M 2G)--si                   likewise, but use powers of 1000 not 1024-H, --dereference-command-linefollow symbolic links listed on the command line--dereference-command-line-symlink-to-dirfollow each command line symbolic linkthat points to a directory--hide=PATTERN         do not list implied entries matching shell PATTERN(overridden by -a or -A)--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-l                         use a long listing format-L, --dereference          when showing file information for a symboliclink, show information for the file the linkreferences rather than for the link itself-m                         fill width with a comma separated list of entries-n, --numeric-uid-gid      like -l, but list numeric user and group IDs-N, --literal              print raw entry names (don't treat e.g. controlcharacters specially)-o                         like -l, but do not list group information-p, --indicator-style=slashappend / 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, c, escape-r, --reverse              reverse order while sorting-R, --recursive            list subdirectories recursively-s, --size                 print the allocated size of each file, in blocks-S                         sort by file size--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 defaultmodification time: atime or access or use (-u)ctime or status (-c); also use specified timeas sort key if --sort=time--time-style=STYLE     with -l, show times using style STYLE:full-iso, long-iso, iso, locale, or +FORMAT;FORMAT is interpreted like in 'date'; if FORMATis FORMAT1<newline>FORMAT2, then FORMAT1 appliesto non-recent files and FORMAT2 to recent files;if STYLE is prefixed with 'posix-', STYLEtakes effect only outside the POSIX locale-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-U                         do not sort; list entries in directory order-v                         natural sort of (version) numbers within text-w, --width=COLS           assume screen width instead of current value-x                         list entries by lines instead of by columns-X                         sort alphabetically by entry extension-1                         list one file per lineSELinux options:--lcontext                 Display security context.   Enable -l. Lineswill probably be too wide for most displays.-Z, --context              Display security context so it fits on mostdisplays.  Displays only mode, user, group,security context and file name.--scontext                 Display only security context and file name.--help     display this help and exit--version  output version information and exitSIZE is an integer and optional unit (example: 10M is 10*1024*1024).  Units
are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB, ... (powers of 1000).Using color to distinguish file types is disabled both by default and
with --color=never.  With --color=auto, ls emits color codes only when
standard output is connected to a terminal.  The LS_COLORS environment
variable can change the settings.  Use the dircolors command to set it.Exit status:0  if OK,1  if minor problems (e.g., cannot access subdirectory),2  if serious trouble (e.g., cannot access command-line argument).GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
For complete documentation, run: info coreutils 'ls invocation'
[root@localhost 20220813]# 

linux ls指令(ls命令)相关推荐

  1. Linux常用指令(命令)超级无敌全合集加图文说明

    Linux常用指令(命令) 指令与选项 基础指令 1.ls指令 2.pwd指令 3.cd指令 4.mkdir指令 5.touch指令 6.cp指令 7.mv指令 8.rm指令 9.vim指令 配置域名 ...

  2. Linux基础——Linux 基本指令 ls 和 cd

    文章目录 1.前言 2.cd 指令 1.返回上一级目录 2.去往子文件夹 3.返回你刚刚所在的目录 4.向上返回两次 5.去往 Home 6.去往电脑任何地方, 你需要的是一个绝对路径 3.ls 指令 ...

  3. linux登录指令 pgsql_命令行方式登录PostgreSQL

    目录: 一.在默认配置条件下,本机访问PostgreSQL 二.创建新用户来访问PostgreSQL 三.最简单的做法 四.开启远程访问 一.在默认配置条件下,本机访问PostgreSQL 切换到Li ...

  4. 【Linux】万字总结Linux 基本指令,绝对详细!!!

    文章目录 Linux 基本指令 ls 指令 alias 指令 cd指令 pwd 指令 clear指令 touch 指令 mkdir 指令(重要) rmdir指令 && rm 指令(重要 ...

  5. 【Linux编程】一、Linux常见指令和权限理解(思维导图总结)

    文章目录 Linux下基本指令 01.ls 指令 02.pwd 指令 03 cd 指令 04.mkdir 指令 05.rmdir 指令 06.rm 指令 07.tree 指令 08.cp 指令 09. ...

  6. Linux基础指令(覆盖80%)

    基础指令(常用) 1.[root@localhost 桌面]# root:当前登录的用户名 localhost:登录的主机名 桌面:当前工作目录 #:身份识别符("#":代表roo ...

  7. linux常用定时任务,Linux常用指令---定时任务

    linux定时任务 crontab命令选项基本只有对用户操作选项: -u 指定用户 -l 列出某用户任务计划 -r 删除某用户任务 -e 编辑某用户任务 查看某一用户的定时任务crontab -u r ...

  8. Linux常用指令(超详细整理)

    关机&重启命令 shutdown –h now :表示立即关机 shutdown –h 1 :表示一分钟后关机 shutdown –r now :立即重启halt :直接使用,等价于关机 re ...

  9. linux指令ls -1,linux命令1--ls

    ls就是list的缩写,用来查看文件夹下的文件信息,这里介绍几个常用的实例. 1 根据ctime(文件最后更改时间)来排序文件夹下所有文件, ls -lct 2 显示所有文件,-g不显示文件所有者, ...

最新文章

  1. Android用户界面设计学习之旅-第三站
  2. Emacs常用快捷键
  3. 5.sql2008分组与嵌套
  4. android添加动画文件,Android开发之图形图像与动画(五)LayoutAnimationController详解
  5. 离散数学反对称关系_【离散数学】1.2&1.3集合与元素,集合与集合之间的关系...
  6. unity中解析excel表
  7. LeetCode MySQL 614. 二级关注者
  8. Xshell连接远程Linux服务器失败Could not connect to ‘192.xxx.xx.xxx‘ (port 22): Connection failed.
  9. Qt笔记-QProcess切换用户执行进程(Linux)
  10. php画弧,php绘制一条弧线的方法
  11. configure报错C compiler cannot create executables
  12. Wireshark实战分析之DHCP协议(一)
  13. 群晖NAS与Windows系统实现共享文件夹同步方案
  14. 数学建模2020B题穿越沙漠
  15. 任意门怎么用团发_任意门日淘app官方手机版-任意门日淘安卓版下载v1.4.6-壹六下载...
  16. 报错:NavigationDuplicated: Avoided redundant navigation to current location(跳转了重复路由)
  17. 详解自监督发展趋势! 何恺明连获三年CVPR最高引用的秘诀是?
  18. 数据分析:大数据时代的必备技能之Power BI
  19. ToG产品_产品白皮书框架_2019_003
  20. 服装行业要渡“疫情劫”,赢家时尚凭什么成为增长样本?

热门文章

  1. hulu dpp_您可以立即流式传输的10个最佳Hulu原创电视节目(2020年4月)
  2. word操作技巧:如何设计专属的个性页眉
  3. html登录 页面连接数据库,连接数据库实现登录页面
  4. c语言炉石传说算法设计,FZU Problem 2232 炉石传说(匈牙利算法)
  5. win8.1 android驱动安装失败,Win8.1版系统显卡驱动安装失败的解决方法
  6. 李子柒与袁隆平同台获奖,程序员表示:我们太像了!
  7. 打造宜居韧性智慧城市,武汉“智”理有模 华为云有样
  8. 如何在vs studio中使用代码云托管
  9. MYSQL/MSSQL/ORACLE数据库脚本代码
  10. Nginx 各种反向代理方式