Binaries/ls: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
(Created page with "ls is a binary used to list a folder's content.")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
ls is a binary used to list a folder's content.
ls is a [[Binaries|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.

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.