1 00:00:00,950 --> 00:00:07,580 ‫The LS Command is used to list files or directories in Linux and other Unix based operating systems, 2 00:00:08,870 --> 00:00:14,930 ‫just like you navigate in your File Explorer or Finder with a gooey, the L. 3 00:00:14,930 --> 00:00:21,230 ‫S Command allows you to list all the files or directories in the current directory by default and further 4 00:00:21,230 --> 00:00:23,000 ‫interact with them via the command line. 5 00:00:25,130 --> 00:00:32,360 ‫Dash eight or double dash all parameters, lists, files or directories, including hidden files or 6 00:00:32,360 --> 00:00:40,850 ‫directories, so in Linux, anything that begins with DOT that is considered a hidden file. 7 00:00:43,470 --> 00:00:49,800 ‫Dash L lists the contents of the directory in a table format with content permissions. 8 00:00:50,250 --> 00:00:52,020 ‫Size of the content and bytes. 9 00:00:52,260 --> 00:00:56,640 ‫And last modified date and time of the content. 10 00:01:00,420 --> 00:01:07,170 ‫Dash eight shore double dash, human readable display size information with human readable format. 11 00:01:10,110 --> 00:01:19,710 ‫Dash, yes, or double dash size, where as is lower case lists, files or directories with their sizes. 12 00:01:21,640 --> 00:01:30,460 ‫Dash uppercase s lists, files or directories and sorts by date or time in descending order or from 13 00:01:30,460 --> 00:01:31,900 ‫biggest to smallest. 14 00:01:34,450 --> 00:01:42,340 ‫Finally, dashti is a parameter that lists files or directories and source by last modified date and 15 00:01:42,340 --> 00:01:45,220 ‫time in descending order from biggest to smallest. 16 00:01:45,730 --> 00:01:46,900 ‫So let's go ahead and practice. 17 00:01:48,400 --> 00:01:49,270 ‫So go to Carly. 18 00:01:50,210 --> 00:01:53,420 ‫Log in with the default credentials, Kelly and Kelly. 19 00:02:02,190 --> 00:02:08,130 ‫Open up the command line now you can change the font size from the preferences under the File tab. 20 00:02:09,140 --> 00:02:10,280 ‫Click on Change. 21 00:02:11,210 --> 00:02:17,180 ‫I'm going to set the size to be 14, OK, so it's better for me. 22 00:02:18,890 --> 00:02:20,410 ‫Now let's run the L. 23 00:02:20,420 --> 00:02:25,100 ‫S command with a help parameter and we'll be able to see some detailed information. 24 00:02:36,280 --> 00:02:41,440 ‫So you can see the arguments, options and parameters here, and you can use them when needed. 25 00:02:42,250 --> 00:02:43,180 ‫They're all right here. 26 00:02:45,550 --> 00:02:47,680 ‫So I'll show you some of the most common options. 27 00:02:52,150 --> 00:02:56,350 ‫Now, and by the way, you can clear the screen with control L. 28 00:02:57,910 --> 00:03:05,110 ‫So let's list all the files under these users bin folder with Dash Al parameter. 29 00:03:09,010 --> 00:03:10,090 ‫And as you can see. 30 00:03:11,100 --> 00:03:18,630 ‫We find all the files, including the hidden files, with the long listing format, and these are the 31 00:03:18,630 --> 00:03:21,270 ‫permissions and last modified date of the file. 32 00:03:23,150 --> 00:03:26,840 ‫So let's look at the file sizes with the human readable format. 33 00:03:39,470 --> 00:03:43,020 ‫And as you can see, the file sizes are more readable now. 34 00:03:49,460 --> 00:03:56,780 ‫Now the next parameter is lowercase s, and it'll show you the total size and sizes of each file. 35 00:04:05,100 --> 00:04:07,500 ‫And then finally, we'll use the T parameter. 36 00:04:11,880 --> 00:04:18,060 ‫And it sorts the files and directories by the last modified date and time from biggest to smallest.