Changeset View
Changeset View
Standalone View
Standalone View
bin/ls/ls.1
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | |||||||||||
This option is not defined in | This option is not defined in | ||||||||||
.St -p1003.1-2008 . | .St -p1003.1-2008 . | ||||||||||
.It Fl L | .It Fl L | ||||||||||
If argument is a symbolic link, list the file or directory the link references | If argument is a symbolic link, list the file or directory the link references | ||||||||||
rather than the link itself. | rather than the link itself. | ||||||||||
This option cancels the | This option cancels the | ||||||||||
.Fl P | .Fl P | ||||||||||
option. | option. | ||||||||||
.It Fl O | |||||||||||
Include the file flags in a long | |||||||||||
.Pq Fl l | |||||||||||
output. | |||||||||||
See | |||||||||||
.Xr chflags 1 | |||||||||||
for a list of file flags and their meanings. | |||||||||||
.It Fl P | .It Fl P | ||||||||||
If argument is a symbolic link, list the link itself rather than the | If argument is a symbolic link, list the link itself rather than the | ||||||||||
object the link references. | object the link references. | ||||||||||
This option cancels the | This option cancels the | ||||||||||
.Fl H | .Fl H | ||||||||||
and | and | ||||||||||
.Fl L | .Fl L | ||||||||||
options. | options. | ||||||||||
▲ Show 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | |||||||||||
this option has no effect on the | this option has no effect on the | ||||||||||
.Fl d , | .Fl d , | ||||||||||
.Fl l , | .Fl l , | ||||||||||
.Fl R | .Fl R | ||||||||||
and | and | ||||||||||
.Fl s | .Fl s | ||||||||||
options. | options. | ||||||||||
.It Fl g | .It Fl g | ||||||||||
This option has no effect. | Display the long | ||||||||||
It is only available for compatibility with | |||||||||||
.Bx 4.3 , | |||||||||||
where it was used to display the group name in the long | |||||||||||
.Pq Fl l | .Pq Fl l | ||||||||||
format output. | format output without the file owner's name or number. | ||||||||||
This option is incompatible with | |||||||||||
.St -p1003.1-2008 . | |||||||||||
.It Fl h | .It Fl h | ||||||||||
When used with the | When used with the | ||||||||||
.Fl l | .Fl l | ||||||||||
option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte | option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte | ||||||||||
and Petabyte in order to reduce the number of digits to four or fewer | and Petabyte in order to reduce the number of digits to four or fewer | ||||||||||
using base 2 for sizes. | using base 2 for sizes. | ||||||||||
This option is not defined in | This option is not defined in | ||||||||||
.St -p1003.1-2008 . | .St -p1003.1-2008 . | ||||||||||
Show All 14 Lines | |||||||||||
.It Fl m | .It Fl m | ||||||||||
Stream output format; list files across the page, separated by commas. | Stream output format; list files across the page, separated by commas. | ||||||||||
.It Fl n | .It Fl n | ||||||||||
Display user and group IDs numerically rather than converting to a user | Display user and group IDs numerically rather than converting to a user | ||||||||||
or group name in a long | or group name in a long | ||||||||||
.Pq Fl l | .Pq Fl l | ||||||||||
output. | output. | ||||||||||
.It Fl o | .It Fl o | ||||||||||
Include the file flags in a long | Display the long | ||||||||||
.Pq Fl l | .Pq Fl l | ||||||||||
output. | format output without the file's group name or number. | ||||||||||
This option is incompatible with | |||||||||||
.St -p1003.1-2008 . | |||||||||||
See | |||||||||||
.Xr chflags 1 | |||||||||||
for a list of file flags and their meanings. | |||||||||||
.It Fl p | .It Fl p | ||||||||||
Write a slash | Write a slash | ||||||||||
.Pq Ql / | .Pq Ql / | ||||||||||
after each filename if that file is a directory. | after each filename if that file is a directory. | ||||||||||
rpokala: I think it would be clearer if the second sentence looked more like this:
```
This behavior… | |||||||||||
.It Fl q | .It Fl q | ||||||||||
Force printing of non-graphic characters in file names as | Force printing of non-graphic characters in file names as | ||||||||||
the character | the character | ||||||||||
.Ql \&? ; | .Ql \&? ; | ||||||||||
this is the default when output is to a terminal. | this is the default when output is to a terminal. | ||||||||||
.It Fl r | .It Fl r | ||||||||||
Reverse the order of the sort. | Reverse the order of the sort. | ||||||||||
.It Fl s | .It Fl s | ||||||||||
▲ Show 20 Lines • Show All 496 Lines • ▼ Show 20 Lines | |||||||||||
.Pp | .Pp | ||||||||||
.Dl $ ls -l | .Dl $ ls -l | ||||||||||
.Pp | .Pp | ||||||||||
In addition to listing the contents of the current working directory in | In addition to listing the contents of the current working directory in | ||||||||||
long format, show inode numbers, file flags (see | long format, show inode numbers, file flags (see | ||||||||||
.Xr chflags 1 ) , | .Xr chflags 1 ) , | ||||||||||
and suffix each filename with a symbol representing its file type: | and suffix each filename with a symbol representing its file type: | ||||||||||
.Pp | .Pp | ||||||||||
.Dl $ ls -lioF | .Dl $ ls -liOF | ||||||||||
Done Inline Actions
pauamma_gundo.com: | |||||||||||
.Pp | .Pp | ||||||||||
List the files in | List the files in | ||||||||||
.Pa /var/log , | .Pa /var/log , | ||||||||||
sorting the output such that the mostly recently modified entries are | sorting the output such that the mostly recently modified entries are | ||||||||||
printed first: | printed first: | ||||||||||
.Pp | .Pp | ||||||||||
.Dl $ ls -lt /var/log | .Dl $ ls -lt /var/log | ||||||||||
.Sh COMPATIBILITY | .Sh COMPATIBILITY | ||||||||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
I think it would be clearer if the second sentence looked more like this: