{"id":448,"date":"2020-10-11T03:03:00","date_gmt":"2020-10-11T07:03:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=448"},"modified":"2021-01-01T01:11:14","modified_gmt":"2021-01-01T06:11:14","slug":"how-to-pipe-the-output-of-locate-to-ls","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/how-to-pipe-the-output-of-locate-to-ls\/","title":{"rendered":"How to pipe the output of locate to ls"},"content":{"rendered":"\n<p>locate command can be used to search for files. Locate command is good at search an index but not great at listing the results. To get better listing features, you can pipe it to ls command as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ locate something | xargs ls -lh<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>locate command can be used to search for files. Locate command is good at search an index but not great at listing the results. To get better listing features, you can pipe it to ls command as follows:<\/p>\n","protected":false},"author":1,"featured_media":498,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[94,35,103],"class_list":["post-448","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-bash","tag-linux","tag-locate"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=448"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/448\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/448\/revisions\/449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media\/498"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}