‫The LS Command is used to list files or directories in Linux and other Unix based operating systems,
‫just like you navigate in your File Explorer or Finder with a gooey, the L.
‫S Command allows you to list all the files or directories in the current directory by default and further
‫interact with them via the command line.
‫Dash eight or double dash all parameters, lists, files or directories, including hidden files or
‫directories, so in Linux, anything that begins with DOT that is considered a hidden file.
‫Dash L lists the contents of the directory in a table format with content permissions.
‫Size of the content and bytes.
‫And last modified date and time of the content.
‫Dash eight shore double dash, human readable display size information with human readable format.
‫Dash, yes, or double dash size, where as is lower case lists, files or directories with their sizes.
‫Dash uppercase s lists, files or directories and sorts by date or time in descending order or from
‫biggest to smallest.
‫Finally, dashti is a parameter that lists files or directories and source by last modified date and
‫time in descending order from biggest to smallest.
‫So let's go ahead and practice.
‫So go to Carly.
‫Log in with the default credentials, Kelly and Kelly.
‫Open up the command line now you can change the font size from the preferences under the File tab.
‫Click on Change.
‫I'm going to set the size to be 14, OK, so it's better for me.
‫Now let's run the L.
‫S command with a help parameter and we'll be able to see some detailed information.
‫So you can see the arguments, options and parameters here, and you can use them when needed.
‫They're all right here.
‫So I'll show you some of the most common options.
‫Now, and by the way, you can clear the screen with control L.
‫So let's list all the files under these users bin folder with Dash Al parameter.
‫And as you can see.
‫We find all the files, including the hidden files, with the long listing format, and these are the
‫permissions and last modified date of the file.
‫So let's look at the file sizes with the human readable format.
‫And as you can see, the file sizes are more readable now.
‫Now the next parameter is lowercase s, and it'll show you the total size and sizes of each file.
‫And then finally, we'll use the T parameter.
‫And it sorts the files and directories by the last modified date and time from biggest to smallest.