{"id":1186,"date":"2022-03-01T18:06:59","date_gmt":"2022-03-01T18:06:59","guid":{"rendered":"https:\/\/jamj.org\/?p=1186"},"modified":"2022-03-01T18:06:59","modified_gmt":"2022-03-01T18:06:59","slug":"gnu-ls","status":"publish","type":"post","link":"https:\/\/jamj.org\/index.php\/2022\/03\/01\/gnu-ls\/","title":{"rendered":"Gnu &#8211; ls"},"content":{"rendered":"\n<p>This command allows you to list files and directories (<code>dir<\/code> in Ms-dos world). Lets see how this  works.<\/p>\n\n\n\n<p>The format is as follows:<\/p>\n\n\n\n<p><code> ls [OPTION]\u2026 [FILE]\u2026<\/code><\/p>\n\n\n\n<p> You can type <code>ls<\/code> as is to show a barebones listing of files and directories. Lets see more possibilities:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>ls -l<\/code> -&gt; this shows the long listing format (its a compact way to show the info)<\/li><li><code>ls -a<\/code> -&gt; shows only the hidden files (the ones starting with a dot)<\/li><li><code>ls -la<\/code> -&gt; shows all files in listing format plus, the hidden ones <\/li><li><code>ls -i <\/code> -&gt; shows <em>inode<\/em> information about the files (info about the file system)<\/li><li><code>la -lh<\/code> -&gt; shows files and details in human readable format<\/li><li><code>ls -lha<\/code>  -&gt; You get the idea, you can combine the options to get the result that you want, with this you get details in human readable format plus hidden files<\/li><\/ul>\n\n\n\n<p>As you can see there are many combinations. Those here are just a tiny fraction of what is possible with this command. If you want more info, type <code>man ls<\/code> to see the full list of options.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This command allows you to list files and directories (dir in Ms-dos world). Lets see how this works. The format is as follows: ls [OPTION]\u2026 [FILE]\u2026 You can type ls as is to show a barebones listing of files and directories. Lets see more possibilities: ls -l -&gt; this shows the long listing format (its [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1186","post","type-post","status-publish","format-standard","hentry","category-gnu"],"_links":{"self":[{"href":"https:\/\/jamj.org\/index.php\/wp-json\/wp\/v2\/posts\/1186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jamj.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jamj.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jamj.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jamj.org\/index.php\/wp-json\/wp\/v2\/comments?post=1186"}],"version-history":[{"count":0,"href":"https:\/\/jamj.org\/index.php\/wp-json\/wp\/v2\/posts\/1186\/revisions"}],"wp:attachment":[{"href":"https:\/\/jamj.org\/index.php\/wp-json\/wp\/v2\/media?parent=1186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jamj.org\/index.php\/wp-json\/wp\/v2\/categories?post=1186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jamj.org\/index.php\/wp-json\/wp\/v2\/tags?post=1186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}