mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 15:29:35 +02:00
config/git: import suckless sbase
i currently use the output of sha512sum in several places of xbmk, which is a bit unreliable in case output changes. other cases where i use util outputs in variables are probably reliable, because i'm using mostly posix utilities in those. to mitigate this, i now import suckless sbase, which has a reasonable sha512sum implementation. *every* binary it builds is being placed in build.list, because i'll probably start using more of them. for example, i may start modifying the "date" implementation, adding the GNU-specific options that i need as mentioned on init.sh i'm importing it in util/ because the sha512sum util is needed for verifying project sources, so if sbase itself is a "project source", that means we can into a chicken and egg bootstrapping problem. this is sbase at revision: 055cc1ae1b3a13c3d8f25af0a4a3316590efcd48 Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
.Dd October 8, 2015
|
||||
.Dt LS 1
|
||||
.Os sbase
|
||||
.Sh NAME
|
||||
.Nm ls
|
||||
.Nd list directory contents
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl iqr
|
||||
.Op Fl ln
|
||||
.Op Fl A | a
|
||||
.Op Fl 1
|
||||
.Op Fl h | F | p
|
||||
.Op Fl H | L
|
||||
.Op Fl R | d
|
||||
.Op Fl S | f | t | U
|
||||
.Op Fl c | u
|
||||
.Op Ar file ...
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
lists each given file, and the contents of each given directory.
|
||||
If no files are given the current directory is listed.
|
||||
.Sh OPTIONS
|
||||
.Bl -tag -width Ds
|
||||
.It Fl A
|
||||
List all entries except for '.' and '..'.
|
||||
.It Fl a
|
||||
Show hidden files (those beginning with '.').
|
||||
.It Fl c
|
||||
Use time file's status was last changed instead of last
|
||||
modification time for sorting or printing.
|
||||
.It Fl d
|
||||
List directories themselves, not their contents.
|
||||
.It Fl F
|
||||
Append a file type indicator to all special files.
|
||||
.It Fl f
|
||||
Like
|
||||
.Fl U
|
||||
but turns on
|
||||
.Fl a
|
||||
and disables
|
||||
.Fl r ,
|
||||
.Fl S
|
||||
and
|
||||
.Fl t .
|
||||
.It Fl H
|
||||
List information about the targets of symbolic links specified on the command
|
||||
line instead of the links themselves.
|
||||
.It Fl h
|
||||
Show filesizes in human\-readable format.
|
||||
.It Fl i
|
||||
Print the index number of each file.
|
||||
.It Fl L
|
||||
List information about the targets of symbolic links instead of the links
|
||||
themselves.
|
||||
.It Fl l
|
||||
List detailed information about each file, including their type, permissions,
|
||||
links, owner, group, size or major and minor numbers if the file is a
|
||||
character/block device, and last file status/modification time.
|
||||
.It Fl n
|
||||
List detailed information about each file, including their type, permissions,
|
||||
links, owner, group, size or major and minor numbers if the file is a
|
||||
character/block device, and last file status/modification time, but with
|
||||
numeric IDs.
|
||||
.It Fl p
|
||||
Append a file type indicator to directories.
|
||||
.It Fl q
|
||||
Replace non-printable characters in filenames with '?'.
|
||||
.It Fl R
|
||||
List directory content recursively.
|
||||
The
|
||||
.Fl 1
|
||||
flag is set implicitly.
|
||||
.It Fl r
|
||||
Reverse the sort order.
|
||||
.It Fl S
|
||||
Sort files by size (in decreasing order).
|
||||
.It Fl t
|
||||
Sort files by last file status/modification time instead of by name.
|
||||
.It Fl U
|
||||
Keep the list unsorted.
|
||||
.It Fl u
|
||||
Use file's last access time instead of last modification time for
|
||||
sorting or printing.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr stat 2
|
||||
.Sh STANDARDS
|
||||
POSIX.1-2013.
|
||||
Except for the
|
||||
.Op Fl Ckmpsx
|
||||
flags.
|
||||
.Pp
|
||||
The
|
||||
.Op Fl hU
|
||||
flags are an extension to that specification.
|
||||
Reference in New Issue
Block a user