{"id":795,"date":"2022-12-04T11:04:13","date_gmt":"2022-12-04T11:04:13","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=795"},"modified":"2024-01-01T06:53:26","modified_gmt":"2024-01-01T06:53:26","slug":"ls-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/ls-command-in-linux\/","title":{"rendered":"The \u201cls\u201d Command in Linux [7+ Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>ls<\/strong> is a popular shell command used in Linux to list the files and directories in a directory. The ls stands for &#8220;list&#8221; and when it runs, it automatically lists down all the files and folders in the current directory. But you can customize the behavior of this command by using different options with it. Since it&#8217;s one of the most used commands in Linux, you should learn the fundamentals of this command thoroughly.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#Syntax_of_%E2%80%9Cls%E2%80%9D_Command\" >Syntax of \u201cls&#8221; Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#Options_of_%E2%80%9Cls%E2%80%9D_Command\" >Options of \u201cls&#8221; Command<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#7_Examples_of_Using_%E2%80%9Cls%E2%80%9D_Command_in_Linux\" >7+ Examples of Using \u201cls\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#1_Using_%E2%80%9Cls%E2%80%9D_Command_to_List_Files_and_directories\" >1. Using &#8220;ls&#8221; Command to List Files and directories<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#2_Using_%E2%80%9Cls%E2%80%9D_Command_to_List_the_Contents_of_Other_Directories\" >2. Using \u201cls&#8221; Command to List the Contents of Other Directories<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#3_Using_%E2%80%9Cls%E2%80%9D_Command_to_Display_Hidden_Files_and_Directories_in_Linux\" >3. Using &#8220;ls&#8221; Command to Display Hidden Files and Directories in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#4_Using_%E2%80%9Cls%E2%80%9D_Command_to_List_in_Long_Format\" >4. Using &#8220;ls&#8221; Command to List in Long Format<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#5_Using_%E2%80%9Cls%E2%80%9D_Command_to_See_Human_Readable_File_Sizes\" >5. Using &#8220;ls&#8221; Command to See Human Readable File Sizes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#6_Using_%E2%80%9Cls%E2%80%9D_Command_to_Perform_Recursive_Listing_of_Subdirectories\" >6. Using \u201cls&#8221; Command to Perform Recursive Listing of Subdirectories<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#7_Using_the_%E2%80%9Cls%E2%80%9D_Command_for_Listing_and_Sorting_in_Linux\" >7. Using the &#8220;ls&#8221; Command for Listing and Sorting in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#Case_1_Sorting_by_Time\" >Case 1: Sorting by Time<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#Case_02_Sorting_by_Size\" >Case 02: Sorting by Size<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#People_Also_Ask\" >People Also Ask<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#Why_use_ls_command_in_Linux\" >Why use ls command in Linux?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#How_to_use_ls\" >How to use ls?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#Is_%E2%80%9Cls%E2%80%9D_a_system_command\" >Is \u201cls&#8221; a system command?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#How_to_read_the_output_of_%E2%80%9Cls%E2%80%9D_command\" >How to read the output of \u201cls&#8221; command?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#What_is_ls_-l_command_in_Linux\" >What is ls -l command in Linux?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Syntax_of_%E2%80%9Cls%E2%80%9D_Command\"><\/span>Syntax of \u201cls&#8221; Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The syntax for the <code class=\"\" data-line=\"\">ls<\/code> command is pretty simple which is the command itself followed by some specific options. Check the syntax:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls [OPTION]... [FILE]...<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#e1e3e6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\">EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\nIn the above syntax OPTION enclosed by a square bracket followed by 3 dots represents that multiple options can be utilized at the same time.<br \/>\n<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Options_of_%E2%80%9Cls%E2%80%9D_Command\"><\/span>Options of \u201cls&#8221; Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Many useful <strong>options<\/strong> are available for the <code class=\"\" data-line=\"\">ls<\/code> command. I have listed some of the most used ones here. However, if you want to know more about options for <strong>ls<\/strong> command you can always check the <code class=\"\" data-line=\"\">man<\/code> page for the <strong>ls<\/strong> command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man ls<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Here are the most useful options:<\/strong><\/span><\/p>\n<div class=\"su-table su-table-responsive su-table-alternate su-table-fixed\">\n<table width=\"0\">\n<tbody>\n<tr>\n<th width=\"312\"><strong>Options<\/strong><\/th>\n<th width=\"312\"><strong>Description<\/strong><\/th>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-a<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Displays hidden contents (Names starting with dot(.)).<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-d<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Only lists the current directory, not its contents.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-h<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">With option -l it shows file size in human-readable format(i.e. 1K, 100M, 10G).<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-l<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Shows a detailed list consisting of owner name, group name, file size, date &amp; time of modification, and the corresponding file name.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-n<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Similar to option -l but it lists numerically.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-R<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Performs listing on the subdirectories also.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-r<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Reverses the default order of listing.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-s<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Displays the size of the contents.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-S<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Displays in a sorted manner by size(largest first).<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-t<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Lists contents in a sorted manner by time(newest first).<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-i<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Lists all files and directories with inode (index number).<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"312\"><strong>-g<\/strong><\/td>\n<td style=\"text-align: center\" width=\"312\">Displays the group ownership of files and directories instead of owner.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify\"><\/div>\n<p style=\"text-align: justify;\"><strong>Note:<\/strong> The options in Linux <strong>CLI(Command Line Interface)<\/strong> are all case-sensitive, So be cautious while using them.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"7_Examples_of_Using_%E2%80%9Cls%E2%80%9D_Command_in_Linux\"><\/span>7+ Examples of Using \u201cls\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The <strong>ls <\/strong>command in Linux is an easy-to-use command that lists down the contents of a directory. Some of the most useful applications of the <strong>ls <\/strong>\u00a0command have been illustrated below:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1_Using_%E2%80%9Cls%E2%80%9D_Command_to_List_Files_and_directories\"><\/span>1. Using &#8220;ls&#8221; Command to List Files and directories<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To list files and directories in Linux, you can use the <code class=\"\" data-line=\"\">ls<\/code> command. So type the following command in the command prompt of your terminal to list the contents of your current directory:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls<\/code><\/pre>\n<p>You can see In the image that the contents of my current directory have been listed:<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-819 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1.png\" alt=\"The ls command in Linux list the contents.\" width=\"825\" height=\"332\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1-300x121.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1-1024x412.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1-768x309.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1-1536x618.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1-2048x824.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1-373x150.png 373w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1-100x40.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1-870x350.png 870w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1-788x317.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_Using_%E2%80%9Cls%E2%80%9D_Command_to_List_the_Contents_of_Other_Directories\"><\/span>2. Using \u201cls&#8221; Command to List the Contents of Other Directories<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To list the contents of other directories rather than your current directory, you can use <code class=\"\" data-line=\"\">ls<\/code> command. However, you have to specify the directory to do this. For example, Currently, I am in the directory named \u2018Folder\u2019 of my desktop directory. I can list the content of my home directory by using <code class=\"\" data-line=\"\">ls<\/code> followed by the specific path to the directory.<\/p>\n<p style=\"text-align: justify;\">You can do the same by typing the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls \/home\/softeko\/<\/code><\/pre>\n<p style=\"text-align: justify;\">You can see in the image that the contents of the home directory of the user named softeko on my pc have been listed:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-820 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2.png\" alt=\"Listing other directories using the ls command\" width=\"825\" height=\"88\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2-300x32.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2-1024x109.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2-759x81.png 759w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2-1536x164.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2-2048x218.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2-1406x150.png 1406w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2-100x11.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-1_2-788x84.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><strong><span style=\"font-size: 18pt; color: #000080;\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/pwd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cpwd\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/cd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ccd\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"3_Using_%E2%80%9Cls%E2%80%9D_Command_to_Display_Hidden_Files_and_Directories_in_Linux\"><\/span>3. Using &#8220;ls&#8221; Command to Display Hidden Files and Directories in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To display hidden files and directories in Linux, you cannot apply only the <code class=\"\" data-line=\"\">ls<\/code> command. To do so you have to use the <code class=\"\" data-line=\"\">-a<\/code> option along with the ls command. Hidden files can be recognized from their names as they start with a <strong>dot(.)<\/strong>. You can do this task by writing this command:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls -a<\/code><\/pre>\n<p>You can see In the image that the hidden contents of my desktop directory have been listed:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-821 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2.png\" alt=\"Listing hidden files &amp; directories using the ls command.\" width=\"825\" height=\"404\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2-300x147.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2-1024x501.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2-768x376.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2-1536x752.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2-2048x1003.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2-306x150.png 306w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2-100x49.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2-715x350.png 715w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-2-788x385.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Using_%E2%80%9Cls%E2%80%9D_Command_to_List_in_Long_Format\"><\/span>4. Using &#8220;ls&#8221; Command to List in Long Format<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Listing in long format means to list contents with more information like file attributes, user name, group names, file size, date of modification along with the content name.<\/p>\n<p>To list in long format, use the <code class=\"\" data-line=\"\">-l<\/code> option with the <code class=\"\" data-line=\"\">ls<\/code> command as follows:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls -l<\/code><\/pre>\n<p style=\"text-align: justify;\">You can see In the image that the contents of my desktop directory have been listed in a long format:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-822 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3.png\" alt=\"Listing contents in a long format. \" width=\"825\" height=\"404\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3-300x147.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3-1024x501.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3-768x376.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3-1536x752.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3-2048x1003.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3-306x150.png 306w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3-100x49.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3-715x350.png 715w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-3-788x385.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Using_%E2%80%9Cls%E2%80%9D_Command_to_See_Human_Readable_File_Sizes\"><\/span>5. Using &#8220;ls&#8221; Command to See Human Readable File Sizes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can see the sizes of the contents with the <code class=\"\" data-line=\"\">ls -l<\/code> command however, they are not displayed in human-readable form like the following picture:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0.png\" alt=\"Listing contents in a long format with file sizes in nonhuman-readable form.\" width=\"825\" height=\"404\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0-300x147.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0-1024x501.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0-768x376.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0-1536x752.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0-2048x1003.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0-306x150.png 306w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0-100x49.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0-715x350.png 715w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4_0-788x385.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p style=\"text-align: justify;\">Therefore, to see human-readable file size like(1k, 5M, 20G), you can easily modify it by adding the option <code class=\"\" data-line=\"\">-h<\/code> with the option <code class=\"\" data-line=\"\">-l<\/code>:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls -lh<\/code><\/pre>\n<p>You can see In the image that the list contains sizes in human-readable form:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-823 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4.png\" alt=\"Listing contents in a long format with file sizes in human-readable form.\" width=\"825\" height=\"417\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4-300x152.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4-1024x518.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4-768x388.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4-1536x776.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4-2048x1035.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4-297x150.png 297w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4-100x51.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4-692x350.png 692w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-4-788x398.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><strong><span style=\"font-size: 18pt; color: #000080;\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;The \u201cmv\u201d Command in Linux [8 Practical Examples]&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:34954171,&quot;3&quot;:{&quot;1&quot;:0},&quot;4&quot;:{&quot;1&quot;:2,&quot;2&quot;:16773836},&quot;6&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;7&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;8&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;10&quot;:2,&quot;11&quot;:4,&quot;12&quot;:0,&quot;14&quot;:{&quot;1&quot;:2,&quot;2&quot;:255},&quot;15&quot;:&quot;Arial&quot;,&quot;17&quot;:1,&quot;19&quot;:0,&quot;21&quot;:1,&quot;23&quot;:1,&quot;28&quot;:1}\" data-sheets-hyperlink=\"https:\/\/linuxsimply.com\/mv-command-in-linux\/\"><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/mv-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>The \u201cmv\u201d Command in Linux [8 Practical Examples]<\/strong><\/a><\/span><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/cp-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ccp\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/rm-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201crm\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"6_Using_%E2%80%9Cls%E2%80%9D_Command_to_Perform_Recursive_Listing_of_Subdirectories\"><\/span>6. Using \u201cls&#8221; Command to Perform Recursive Listing of Subdirectories<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To perform a recursive listing of the contents of the subdirectories, you can utilize the <code class=\"\" data-line=\"\">-R<\/code> option with the <code class=\"\" data-line=\"\">ls<\/code> command. Here\u2019s how:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls -R<\/code><\/pre>\n<p style=\"text-align: justify;\">You can see that I have listed the contents of the subdirectories of my Desktop directory with the help of the<strong> -R<\/strong> option:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-825 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5.png\" alt=\"Recursive listing using the ls command.\" width=\"825\" height=\"502\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5-300x183.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5-1024x623.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5-767x467.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5-1536x935.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5-2048x1246.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5-247x150.png 247w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5-100x61.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5-575x350.png 575w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-5-788x479.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_Using_the_%E2%80%9Cls%E2%80%9D_Command_for_Listing_and_Sorting_in_Linux\"><\/span>7. Using the &#8220;ls&#8221; Command for Listing and Sorting in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To list and sort the files and directories, you can use <code class=\"\" data-line=\"\">ls<\/code> command with different options. In this part, I will show you two cases of listing and sorting files and directories in Linux.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_1_Sorting_by_Time\"><\/span>Case 1: Sorting by Time<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">You can sort the contents of your directory by time with the help of option <code class=\"\" data-line=\"\">-t<\/code>. It will display the newest content first. So, to sort by time, run the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls -lt<\/code><\/pre>\n<p style=\"text-align: justify;\">You can see that the listed contents were sorted according to their modification times(newest first):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-826 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6.png\" alt=\"Sorting the list with the option -t of the ls command.\" width=\"825\" height=\"411\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6-300x149.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6-1024x510.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6-767x382.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6-1536x765.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6-2048x1020.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6-301x150.png 301w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6-100x50.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6-703x350.png 703w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-6-788x392.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_02_Sorting_by_Size\"><\/span>Case 02: Sorting by Size<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">Again, you can sort the contents of your directory by size with the help of option <code class=\"\" data-line=\"\">-s<\/code>. It will display the largest content first. So, to sort by size, run the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls -lhS<\/code><\/pre>\n<p>You can see that the listed contents were sorted according to their sizes(largest first):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-827 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7.png\" alt=\"Sorting the list with the option -S of the ls command.\" width=\"825\" height=\"419\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7-300x152.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7-1024x520.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7-768x390.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7-1536x780.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7-2048x1040.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7-295x150.png 295w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7-100x51.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7-689x350.png 689w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-7-788x400.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p style=\"text-align: justify;\">However, if you want to reverse the order of sorting you can simply add the option <strong>-r<\/strong>.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ls -lhSr<\/code><\/pre>\n<p style=\"text-align: justify;\">You can see that the listed contents were sorted according to their sizes however, this time in reverse order(smallest first):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-828 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8.png\" alt=\"Sorting the list in reverse order with the option -S &amp; option -r of the ls command.\" width=\"825\" height=\"418\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8-300x152.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8-1024x519.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8-768x389.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8-1536x778.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8-2048x1038.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8-296x150.png 296w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8-100x51.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8-691x350.png 691w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/ls-Command-in-Linux-8-788x399.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">ls (<strong>l<\/strong>i<strong>s<\/strong>t) is a basic command but one of the most used commands. As it empowers the user to view contents through the terminal without even using the <strong>GUI(Graphical User Interface). <\/strong>So, as a learner, you should explore more with the <strong>ls<\/strong> command in Linux. Hopefully, this article will show you the right path with the abovementioned practical examples.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"People_Also_Ask\"><\/span>People Also Ask<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Why_use_ls_command_in_Linux\"><\/span>Why use ls command in Linux?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <code class=\"\" data-line=\"\">ls<\/code> command is used in Linux to list the files and directories inside a directory. You can customize the output to show more detailed info, show hidden files, sort, and more. It&#8217;s a great tool for navigating directories and looking at files on the command line.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_use_ls\"><\/span>How to use ls?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To use the<code class=\"\" data-line=\"\"> ls<\/code> command, you can simply write this command in your terminal. Additionally, to perform several tasks, you can use different options. You can find the options on the <code class=\"\" data-line=\"\">mas ls<\/code> page.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Is_%E2%80%9Cls%E2%80%9D_a_system_command\"><\/span>Is \u201cls&#8221; a system command?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Yes, in operating systems like Unix and Linux, the &#8220;ls&#8221; command is actually a system command.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_read_the_output_of_%E2%80%9Cls%E2%80%9D_command\"><\/span>How to read the output of \u201cls&#8221; command?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <code class=\"\" data-line=\"\">ls<\/code> command\u2019s output is simple to read. The <strong>1st column <\/strong>shows the file&#8217;s permissions. The <strong>2nd column<\/strong> shows how many links to the file there are. The <strong>3rd column<\/strong> shows who owns the file, and the <strong>4th column<\/strong> shows what group the file belongs to. The <strong>5th column<\/strong> shows how big the file is in bytes, the <strong>6th column<\/strong> shows when it was last changed, and the <strong>7th column<\/strong> shows what the file or directory is called.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_ls_-l_command_in_Linux\"><\/span>What is ls -l command in Linux?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <code class=\"\" data-line=\"\">ls -l<\/code> command in Linux is used to list <strong>files and directories<\/strong> including all the information like file and directory name, permissions, ownership, modification time, size, group, etc. Here, <code class=\"\" data-line=\"\">-l<\/code> stands for long format.<\/p>\n<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"Why use ls command in Linux?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"The ls command is used in Linux to list the files and directories inside a directory. You can customize the output to show more detailed info, show hidden files, sort, and more. It's a great tool for navigating directories and looking at files on the command line.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How to use ls?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"To use the ls command, you can simply write this command in your terminal. Additionally, to perform several tasks, you can use different options. You can find the options on the mas ls page.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"Is 'ls' a system command?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Yes, in operating systems like Unix and Linux, the \\\"ls\\\" command is actually a system command.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How to read the output of 'ls' command?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"The ls command\u2019s output is simple to read. The 1st column shows the file's permissions. The 2nd column shows how many links to the file there are. The 3rd column shows who owns the file, and the 4th column shows what group the file belongs to. The 5th column shows how big the file is in bytes, the 6th column shows when it was last changed, and the 7th column shows what the file or directory is called.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What is ls -l command in Linux?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"The ls -l command in Linux is used to list files and directories including all the information like file and directory name, permissions, ownership, modification time, size, group, etc. Here, -l stands for long format.\"\n    }\n  }]\n}\n<\/script><br \/>\n<strong><span style=\"font-size: 18pt; color: #000080;\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;The \u201ctouch\u201d Command in Linux [8 Practical Examples]&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:34954171,&quot;3&quot;:{&quot;1&quot;:0},&quot;4&quot;:{&quot;1&quot;:2,&quot;2&quot;:16773836},&quot;6&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;7&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;8&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;10&quot;:2,&quot;11&quot;:4,&quot;12&quot;:0,&quot;14&quot;:{&quot;1&quot;:2,&quot;2&quot;:38823},&quot;15&quot;:&quot;Arial&quot;,&quot;17&quot;:1,&quot;19&quot;:0,&quot;21&quot;:1,&quot;23&quot;:1,&quot;28&quot;:1}\" data-sheets-hyperlink=\"https:\/\/linuxsimply.com\/touch-command-in-linux\/\"><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/touch-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>The \u201ctouch\u201d Command in Linux [8 Practical Examples]<\/strong><\/a><\/span><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/mkdir-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cmkdir\u201d Command in Linux [6+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/locate-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201clocate\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/find-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfind\u201d Command in Linux [10+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/chmod-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cchmod\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/chown-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The &#8220;chown&#8221; Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;795&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;3&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (3 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201cls\u201d Command in Linux [7+ Practical Examples]&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 142.5px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (3 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>ls is a popular shell command used in Linux to list the files and directories in a directory. The ls &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201cls\u201d Command in Linux [7+ Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/#more-795\" aria-label=\"Read more about The \u201cls\u201d Command in Linux [7+ Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314889,"featured_media":818,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[55],"class_list":["post-795","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-file-management-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201cls\u201d Command in Linux [7+ Practical Examples] - LinuxSimply<\/title>\n<meta name=\"description\" content=\"The ls command in Linux is one of the most executed commands in day-to-day operations. In brief, It lists the contents of a directory.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201cls\u201d Command in Linux [7+ Practical Examples] - LinuxSimply\" \/>\n<meta property=\"og:description\" content=\"The ls command in Linux is one of the most executed commands in day-to-day operations. In brief, It lists the contents of a directory.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/ls-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/theashakul\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-04T11:04:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-01T06:53:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/Feature-image-ls-command-in-Linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Md. Ashakul Islam Sowad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Md. Ashakul Islam Sowad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/\"},\"author\":{\"name\":\"Md. Ashakul Islam Sowad\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/c42af9aa5346c95e67ed1e40f451c783\"},\"headline\":\"The \u201cls\u201d Command in Linux [7+ Practical Examples]\",\"datePublished\":\"2022-12-04T11:04:13+00:00\",\"dateModified\":\"2024-01-01T06:53:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/\"},\"wordCount\":1396,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/Feature-image-ls-command-in-Linux.png\",\"keywords\":[\"file management commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/\",\"name\":\"The \u201cls\u201d Command in Linux [7+ Practical Examples] - LinuxSimply\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/Feature-image-ls-command-in-Linux.png\",\"datePublished\":\"2022-12-04T11:04:13+00:00\",\"dateModified\":\"2024-01-01T06:53:26+00:00\",\"description\":\"The ls command in Linux is one of the most executed commands in day-to-day operations. In brief, It lists the contents of a directory.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/Feature-image-ls-command-in-Linux.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/Feature-image-ls-command-in-Linux.png\",\"width\":400,\"height\":400,\"caption\":\"ls command in Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ls-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201cls\u201d Command in Linux [7+ Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/c42af9aa5346c95e67ed1e40f451c783\",\"name\":\"Md. Ashakul Islam Sowad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Md.-Ashakul-Islam-Sowad-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Md.-Ashakul-Islam-Sowad-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Md.-Ashakul-Islam-Sowad-II-96x96.png\",\"caption\":\"Md. Ashakul Islam Sowad\"},\"description\":\"Hi, I am Md. Ashakul Islam Sowad from Dhaka, Bangladesh. I have completed my undergraduate degree in Biomedical Engineering from the Bangladesh University of Engineering and Technology (BUET). I love to watch football and play video games in my free time. Here, I am working as a Linux Content Developer Executive. Furthermore, as a Linux enthusiast, I am always learning new things about Linux-based systems and I\u2019ll be sharing them here. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/theashakul\\\/\",\"https:\\\/\\\/www.instagram.com\\\/the_ashakul\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/ashakul-islam\\\/\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/sowad\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201cls\u201d Command in Linux [7+ Practical Examples] - LinuxSimply","description":"The ls command in Linux is one of the most executed commands in day-to-day operations. In brief, It lists the contents of a directory.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/ls-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201cls\u201d Command in Linux [7+ Practical Examples] - LinuxSimply","og_description":"The ls command in Linux is one of the most executed commands in day-to-day operations. In brief, It lists the contents of a directory.","og_url":"https:\/\/linuxsimply.com\/ls-command-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/theashakul\/","article_published_time":"2022-12-04T11:04:13+00:00","article_modified_time":"2024-01-01T06:53:26+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/Feature-image-ls-command-in-Linux.png","type":"image\/png"}],"author":"Md. Ashakul Islam Sowad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Md. Ashakul Islam Sowad","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/"},"author":{"name":"Md. Ashakul Islam Sowad","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/c42af9aa5346c95e67ed1e40f451c783"},"headline":"The \u201cls\u201d Command in Linux [7+ Practical Examples]","datePublished":"2022-12-04T11:04:13+00:00","dateModified":"2024-01-01T06:53:26+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/"},"wordCount":1396,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/Feature-image-ls-command-in-Linux.png","keywords":["file management commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/ls-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/","url":"https:\/\/linuxsimply.com\/ls-command-in-linux\/","name":"The \u201cls\u201d Command in Linux [7+ Practical Examples] - LinuxSimply","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/Feature-image-ls-command-in-Linux.png","datePublished":"2022-12-04T11:04:13+00:00","dateModified":"2024-01-01T06:53:26+00:00","description":"The ls command in Linux is one of the most executed commands in day-to-day operations. In brief, It lists the contents of a directory.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/ls-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/Feature-image-ls-command-in-Linux.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/Feature-image-ls-command-in-Linux.png","width":400,"height":400,"caption":"ls command in Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/ls-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201cls\u201d Command in Linux [7+ Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/c42af9aa5346c95e67ed1e40f451c783","name":"Md. Ashakul Islam Sowad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Md.-Ashakul-Islam-Sowad-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Md.-Ashakul-Islam-Sowad-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Md.-Ashakul-Islam-Sowad-II-96x96.png","caption":"Md. Ashakul Islam Sowad"},"description":"Hi, I am Md. Ashakul Islam Sowad from Dhaka, Bangladesh. I have completed my undergraduate degree in Biomedical Engineering from the Bangladesh University of Engineering and Technology (BUET). I love to watch football and play video games in my free time. Here, I am working as a Linux Content Developer Executive. Furthermore, as a Linux enthusiast, I am always learning new things about Linux-based systems and I\u2019ll be sharing them here. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/theashakul\/","https:\/\/www.instagram.com\/the_ashakul\/","https:\/\/www.linkedin.com\/in\/ashakul-islam\/"],"url":"https:\/\/linuxsimply.com\/author\/sowad\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314889"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=795"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/795\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/818"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}