From 1e5145bdd24f27404e04a731ea16dd340b424b8a Mon Sep 17 00:00:00 2001 From: ponzim Date: Mon, 12 Nov 2018 09:09:12 +0000 Subject: [PATCH] fs: added LS page git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@127 a672b425-5310-4d7a-af5c-997e18724b81 --- site/pages/fs/LS.html | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 site/pages/fs/LS.html diff --git a/site/pages/fs/LS.html b/site/pages/fs/LS.html new file mode 100644 index 0000000..acfb063 --- /dev/null +++ b/site/pages/fs/LS.html @@ -0,0 +1,47 @@ +--- +layout: page +category_title: file system +category-page: navigation +tags: lS +author: Mirko Ponzio +title: LS +--- +

+

LS, list directory contents

+

What is LS?

+ +

+ In computing, ls is a command to list computer files in Unix and Unix-like operating systems. ls is specified by POSIX and the Single UNIX Specification. + When invoked without any arguments, ls lists the files in the current working directory. The command is also available in the EFI shell. + In other environments, such as DOS and Microsoft Windows, similar functionality is provided by the dir command. +

+ +Unix and Unix-like operating systems maintain the idea of a current working directory, that is, where one is currently positioned in the hierarchy of directories. +When invoked without any arguments, ls lists the files in the current working directory. +If another directory is specified, then ls will list the files there, and in fact the user may specify any list of files and directories to be listed. +

+ +Files whose names start with "." are not listed, unless the -a flag is specified, the -A flag is specified, or the files are specified explicitly. +

+ +Without options, ls displays files in a bare format. This bare format however makes it difficult to establish the type, permissions, and size of the files. +The most common options to reveal this information or change the list of files are: +

+

+ +

LS, all commands

+

The following options are available:


+

-@
+ +Display extended attribute keys and sizes in long (-l) output. +