{"id":205,"date":"2017-07-09T10:54:02","date_gmt":"2017-07-09T10:54:02","guid":{"rendered":"http:\/\/hyderabadwebhosting.in\/blog\/?p=205"},"modified":"2017-07-10T05:17:18","modified_gmt":"2017-07-10T05:17:18","slug":"list-ls-commands","status":"publish","type":"post","link":"https:\/\/hyderabadwebhosting.in\/blog\/list-ls-commands\/","title":{"rendered":"List of &#8220;ls&#8221; commands"},"content":{"rendered":"<p><span style=\"font-size: large;\">We are mostly used to find the list of files and directory by using \u201cls\u201d commands. \u201cls\u201d command is most frequently used commands in Linux.We are not aware to use number of \u201cls\u201d option.<\/span><\/p>\n<p><span style=\"font-size: large;\"><strong>ls \u00a0-with no option<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls<\/strong> command, you have to seen list of files and directories.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/1-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-208 size-full aligncenter\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/1-2.png\" alt=\"\" width=\"641\" height=\"50\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/1-2.png 641w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/1-2-300x23.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>To View Hidden files<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls -a<\/strong> option to files and directories along with hidden files starting with \u201c.\u201d<\/span><br \/>\n<a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-210 size-full aligncenter\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-2.png\" alt=\"\" width=\"642\" height=\"47\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-2.png 642w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-2-300x22.png 300w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>List files with option -l<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls -l <\/strong>command,you will see list of files and directories size,modified date and time and owner of the file and it&#8217;s permission<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/3-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-214 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/3-1.png\" alt=\"\" width=\"414\" height=\"237\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/3-1.png 414w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/3-1-300x172.png 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>List of files and directories end with \u201c\/\u201d<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls -F<\/strong> command,you will see the list of files and directories ended with \/<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/4-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-215 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/4-1.png\" alt=\"\" width=\"639\" height=\"52\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/4-1.png 639w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/4-1-300x24.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>List file with option -la<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls -la<\/strong> command, you will see list of files and directories size,modified date and time and owner of the file and it&#8217;s permission including hidden files.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/5-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-218 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/5-1.png\" alt=\"\" width=\"638\" height=\"335\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/5-1.png 638w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/5-1-300x158.png 300w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>List file size with human readable format<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls -lh<\/strong> command,you will see list of files and directories size,modified date and time and owner of the file and it&#8217;s permission.Also you can see the file and folder size in human readable format<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/6-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-220 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/6-1.png\" alt=\"\" width=\"639\" height=\"244\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/6-1.png 639w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/6-1-300x115.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>Files in Reverse order<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls -r<\/strong> command, you will see list of files and directories in reverse order<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/7-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-223 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/7-1.png\" alt=\"\" width=\"634\" height=\"48\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/7-1.png 634w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/7-1-300x23.png 300w\" sizes=\"auto, (max-width: 634px) 100vw, 634px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>File and directory size<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls -s<\/strong> command, you will see the list of file and directory size.<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-224 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1.png\" alt=\"\" width=\"626\" height=\"68\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1.png 626w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1-300x33.png 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>Sort by File size<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls -S<\/strong> command, you will see the list of files and directories by sorting the file size<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/9-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-225 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/9-1.png\" alt=\"\" width=\"640\" height=\"46\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/9-1.png 640w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/9-1-300x22.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>Sort by date and time<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using <strong>ls -t<\/strong> command, you will the list of files and directories by sorting date and time<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/10-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-227 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/10-1.png\" alt=\"\" width=\"641\" height=\"47\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/10-1.png 641w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/10-1-300x22.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>Inode number of file and directory<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">By using ls -i command, you will see the list of files and directories with inode number<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/11-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-230 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/11-1.png\" alt=\"\" width=\"639\" height=\"80\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/11-1.png 639w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/11-1-300x38.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/a><\/p>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tfPqExJLUpMSkwpT03KyC8uycxL18vM00\/KyU8HAA==\" \/><input type=\"hidden\" name=\"blogName\" value=\"86hMSS1KTEpMUQhPTVLwyC8uycxLBwA=\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"MzIwBQA=\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"88ksLlHIT1NQU7YwMjKwzikGMwytFZLzc3MT81KKAQ==\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"BcHRDYAwCAXAiSr\/bgPSFBIKxkdi3N47675xEtmn82FhfadYoT3X4UkStSgcPQLjqr05FfQD\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"c\/QLDVAICHJ08XD0AwA=\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwNNc1ACJLBUMDKwNzKwMjAA==\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"vZnNjuJGEMfv+xQlR4oSaYzttjFmFkZKDqNE2lM2Ss4NbnBLtpu4m2HY0z5IIuVZ8ij7JCl\/AjMDA+NiTviLqur2719V7Z6s7iZ6xXPQZpuKqbVQubG1\/CJuIeXFUny07v4UwAsBmdIm3cJaixiMgoXM8TcRkEptQC3wQio0cLway0LMjSq2MCufl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9XfKDA7CDfmA\/+fBbPkhKtn6N7KcLihcCulJbFBHyTL1wjo7wzMIdzyEdz1HLMwv78xw1PPvn8czCfZ7Ls7fy\/FkVpty6uG\/7IlKSP19K8vM8jbFpVX8s7dqVJs4r8D0m5Jt6mTw+wnfg7uXrkIzvcct34Pbne9zm6zM\/l7oHn0vd\/nwfdM6kjJtTjF\/E99MYr7Hb5RICPiIGvAvu1H4X4YZA649ow8u9kHGyHa9fcxXvbwg\/bwl6A1+CLt+cw6ulttyL8kpwe3Rw+9QLyS64UyvJiHAz16NcSZbW6gYlolhJ\/g8=\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\"><img src=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/sheep_32x32.png\" alt=\"www.pdf24.org\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"<p>We are mostly used to find the list of files and directory by using \u201cls\u201d commands. \u201cls\u201d command is most frequently used commands in Linux.We are not aware to use number of \u201cls\u201d option. ls \u00a0-with no option By using ls command, you have to seen list of files and directories. To View Hidden files\u2026 <span class=\"read-more\"><a href=\"https:\/\/hyderabadwebhosting.in\/blog\/list-ls-commands\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":232,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"_links":{"self":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":14,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":231,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions\/231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/media\/232"}],"wp:attachment":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}