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

📄 ls.1

📁 minix操作系统最新版本(3.1.1)的源代码
💻 1
字号:
.TH LS 1.SH NAMEls \- list the contents of a directory.SH SYNOPSIS\fBls\fP [\fB\-acdfghilpqrstu1ACDFLMRTX\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 command line to draw options from, one isthe environment variable.B LSOPTSthat is scanned for option letters 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 d, f, r, t and x are translated to D, F, R, T and X.Useful links 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 3 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 \-hShow file sizes in kilo, mega or gigabytes..TP.B \-iI-node number printed in the 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 \-pMark directories with a '\fB/\fP'..TP.B \-qPrint nongraphic characters as '\fB?\fP' (default on terminals)..TP.B \-rReverse the sort order..TP.B \-sGive the size in kilobytes in the first.RB ( \-s )or second column.RB ( \-is )..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 \-DDistinguish files by type, i.e. regular files together, directoriestogether, etc..TP.B \-FMark directories with a '\fB/\fP', executables with a '\fB*\fP', \s-2UNIX\s+2domain sockets with a '\fB=\fP', named pipes with a '\fB|\fP' and symboliclinks with a '\fB@\fP' behind the 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 \-TPrint file times in a long format, e.g. "Oct 24 21:37:41 1996"..TP.B \-XPrint crunched mode and size before name (implies.BR \-C ).Only the rwx permissions that its caller has on the file are shown, but theyare in upper case if the caller owns the file and has given the permissionto the callers group or other users.  The size is listed in bytes (<= 5K),or rounded up 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.B st_mode(see.BR stat (2))..PPThe.B LSOPTSvariable and the.BR -D ,.B -Mand.B -Xflags are not found on other.B lsimplementations.  (They have their own nonstandard flags.).SH AUTHORKees J. Bot <kjb@cs.vu.nl>

⌨️ 快捷键说明

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