Binaries/ls

From Minux Wiki
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.