|
myshell 2.0.0
|
Authors: Andrii Yaroshevych, Pavlo Kryven, Yurii Kharabara
Variant:
-
myrls is a simple implementation of the ls(1) command for recursively listing directory contents. The closest output ls can produce is achieved with:
-A: list all files except.and..
-R: list subdirectories recursively
-F: append indicator (one of */=>|) to entries
-o: like-l, but do not list group information
--time-style="+%Y-%m-%d %H:%M:%S": show modification time in the specified format
The project is written in C standard 99 with GNU extensions and does not require any additional libraries.
Note
Your system must be POSIX-compliant
You can use CMake directly:
use provided compile.sh script:
or manually:
Where path is a path to the directory or file to be listed. If path is not specified, the current working directory is used.
Use -h or --help to display usage information.
myrls returns the following exit values:
0 - Success1 - Minor problems encountered during execution (e.g., cannot access file)2 - Fatal error (e.g., cannot allocate memory, command-line usage error)If ownership of a file is unknown or cannot be determined, the user ID is displayed instead.
None.
The [MIT](LICENSE) License.