Binaries/ls

From Minux Wiki
Revision as of 23:59, 26 September 2024 by Shorun (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ls is a binary used to list a folder's content.


usage:

ls folder option


folder can be a folder in the working path, or absolute path


option is optional and can be:

-a - shows additional info

-r - does a recursive file listing including all subdirectories and their contents.


eg: "ls /bin" will list the contents of /bin in classical craftOS style

"ls /bin -a" will list the contents of /bin and open the result in the program less to enable scrolling.

"ls /bin -r" will list the contents of /bin and all it's subdirectories recursively and open the result in the program less to enable scrolling.