⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ls.1

📁 Unix操作系统minix 2.0源码
💻 1
字号:
.TH LS 1.SH NAMEls \- list the contents of a directory.SH SYNOPSIS\fBls\fP [\fB\-acdfgilqrstu1ACFLMRTX\fP] [\fIname\fP...].SH DESCRIPTIONFor each file argument, list it.  For each directory argument, list itscontents.  The current working directory is listed when no files are named.Information is printed multicolumn on terminals, single column if the outputis redirected.  The options control what information is shown and how..PP.B Lshas two sources other then the commands line to draw options from, one isthe environment variable.B LSOPTSand is used only when the output of.B lsis displayed on a terminal.  The other is the name of.B lsitself.  If.B lsis linked to another name, then all the characters after the l are used asflags too, except that f, r, t and x are translated to F, R, T and X.  Usefullinks are.BR ll ,.BR lf ,.B lmand.BR lx ..PPFiles whose names start with a dot are by default not listed..PPNote that standard Minix doesn't have symbolic links or sockets and.B \-uand.B \-care no-ops on a V1 file system, since only modified times are stored in V1inodes..SH OPTIONS.TP.B \-aAll entries are listed, even.B .and.B ...TP.B \-cUse inode changed time for sorting, listing or searching..TP.B \-dDo not list contents of directories, but list the directory itself..TP.B \-fDo not sort (should also be: treat a file as a directory, but thatcan't be implemented portably)..TP.B \-gSuppress the owner name on a long listing (implies.BR \-l )..TP.B \-iI-node number printed in first column..TP.B \-lLong listing: mode, links, owner, group, size and time..RB ( "ls \-lC"uses columns in a wide enough window!).TP.B \-nPrint numerical user and group id's..TP.B \-qPrint nongraphic characters as '\fB?\fP' (default on terminals)..TP.B \-rReverse the sort order..TP.B \-sGive size in kilobytes..TP.B \-tSort by time (modified time default), latest first..TP.B \-uUse last accessed time for sorting, listing or searching..TP.B \-1Print in one column..TP.B \-AList all entries, but not.B .and.B ..(This is the default for privileged users.).TP.B \-CPrint multicolumn (default on terminals)..TP.B \-FMark directories with a '\fB/\fP', executables with a '\fB*\fP', \s-2UNIX\s+2domain sockets with a '\fB=\fP' and symbolic links with a '\fB@\fP' behindthe name..TP.B \-LPrint the file referenced by a symbolic link instead of the link..TP.B \-MList mode before name (implies.BR \-C )..TP.B \-RList directory trees recursively..TP.B \-TGroup files by type, i.e. regular files together, directoriestogether, etc..TP.B \-XPrint crunched mode and size before name (implies.BR \-C ).Only the rwx permissions that its caller has on the file, but they are inupper case if the caller owns the file and has given the permission to thecallers group or other users.  The size is listed in bytes (<= 5K), or roundedup kilo, mega or gigabytes..SH "SEE ALSO".BR du (1),.BR stat (1),.BR stat (2)..SH BUGSHaving to type.B ls \-Cwhen viewing files through.BR more (1)..PPIs only portable to systems with the same st_mode (see.BR stat (2))..PPThe.B LSOPTSvariable and the.BR -M ,.B -Tand.B -Xflags are not found on other.B lsimplementations.  (They have there own nonstandard flags.).SH AUTHORKees J. Bot (kjb@cs.vu.nl)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -