Binaries/ls: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 15: Line 15:


'''-r''' - does a recursive file listing including all subdirectories and their contents.
'''-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.

Latest revision as of 23:59, 26 September 2024

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.