{"id":949,"date":"2015-07-29T19:48:28","date_gmt":"2015-07-29T19:48:28","guid":{"rendered":"http:\/\/www.van-maanen.com\/?p=949"},"modified":"2015-07-29T19:48:28","modified_gmt":"2015-07-29T19:48:28","slug":"how-to-find-a-file-on-linux","status":"publish","type":"post","link":"http:\/\/archief.van-maanen.com\/?p=949","title":{"rendered":"How to find a file on Linux"},"content":{"rendered":"<p>There are zillions of small little Linux commands that make life easy. Those tiny little commands may save you hours of time and tons of frustration. Wheneever I look as the terminal of one of my colleagues, I discover yet another trick that they use to make life easy. May I present a little command from my side:<\/p>\n<pre>\nfind \/ -name post*.* 2>\/dev\/null\n<\/pre>\n<p>This tiny little command help you to find a file. It starts with the command find. Its first parameter is the root from where to start. If you have nu clue where to look &#8220;\/&#8221;  might be a good idea as it is the root of the file system. Then we have parameter -name post*.*. This indicates that we use a name to fin d file, followed by the name. Wild card characters may be used such as the *. In this case, we are looking for a file that starts with post. Then &#8220;2>\/dev\/null&#8221;  indicates that error messages are ignored. Otherwise, every map that provides no access generates an error message which precludes rapid analysis of the results.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are zillions of small little Linux commands that make life easy. Those tiny little commands may save you hours of time and tons of frustration. Wheneever I look as the terminal of one of my colleagues, I discover yet another trick that they use to make life easy. May I present a little command [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":950,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-949","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=949"}],"version-history":[{"count":0,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/949\/revisions"}],"wp:attachment":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=949"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}