{"id":8981,"date":"2005-05-19T10:34:53","date_gmt":"2005-05-19T07:34:53","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2005\/05\/19\/finding-all-executable-files-on-the-system\/"},"modified":"2005-05-31T23:11:03","modified_gmt":"2005-05-31T20:11:03","slug":"finding-all-executable-files-on-the-system","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2005\/05\/19\/finding-all-executable-files-on-the-system\/","title":{"rendered":"Finding all executable files on the system"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><code>find<\/code> is one of the most useful and feature rich commands in Linux.  Sometimes it is not that obvious which parameters should be fed to <code>find<\/code> for this or that behaviour.  The manual could surely use some work.<\/p>\n<p>Today I was trying to figure out how I can find all executable files on the system.  The manual suggests that I use the <code>-perm<\/code> option with the specification of the mode.  Figuring out the mode might get to you, so here is the example:<\/p>\n<pre>find \/ -type f -perm +0111<\/pre>\n<p>One could specify any mode what-so-ever.  Just remember that 1 stands for &#8216;execute&#8217;, 2 stands for &#8216;write&#8217;, and 4 stands for &#8216;read&#8217;.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>find is one of the most useful and feature rich commands in Linux. Sometimes it is not that obvious which parameters should be fed to find for this or that behaviour. The manual could surely use some work. Today I was trying to figure out how I can find all executable files on the system. &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2005\/05\/19\/finding-all-executable-files-on-the-system\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Finding all executable files on the system<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,6,18,62],"tags":[1960,1531],"keyring_services":[],"class_list":["post-8981","post","type-post","status-publish","format-standard","hentry","category-general","category-linux","category-programming","category-technology","tag-command-line","tag-operating-systems"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":14521,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/03\/09\/chmod-text-modes\/","url_meta":{"origin":8981,"position":0},"title":"chmod text modes","author":"Leonid Mamchenkov","date":"March 9, 2011","format":false,"excerpt":"I came across this blog post which praises text modes for \/bin\/chmod. There are two ways you can change file permissions in Unix - one is using\u00a0chmod's symbolic (text) modes (like\u00a0chmod ug+x file), the other is using the octal modes (like\u00a0chmod 0660 file). It turns out that symbolic modes are\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":42630,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/05\/19\/40x-speed-up-of-ls-on-large-dirs\/","url_meta":{"origin":8981,"position":1},"title":"40x speed up of ls on large dirs","author":"Leonid Mamchenkov","date":"May 19, 2019","format":false,"excerpt":"If you ever tried listing a directory with a lot (10,000+) of files in it, I'm sure you know how annoyingly slow 'ls' can be. Turns out there is a simple way to make it better. Have a look at the \"When setting an environment variable gives you a 40x\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7481,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/05\/03\/setting-up-quake-iii-osp\/","url_meta":{"origin":8981,"position":2},"title":"Setting up Quake III (OSP)","author":"Leonid Mamchenkov","date":"May 3, 2004","format":false,"excerpt":"I've ran a poll some time ago at Gamers.CY which showed that are people who have troubles configuring Quake III for network play. That poll pushed me into writing down these few simple steps that will hopefully increase the number of peole enjoying the deathmatch fun. First of all, of\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14962,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/05\/26\/does-microsoft-internet-explorer-really-hate-google-chrome\/","url_meta":{"origin":8981,"position":3},"title":"Does Microsoft Internet Explorer really hate Google Chrome?","author":"Leonid Mamchenkov","date":"May 26, 2011","format":false,"excerpt":"The other day I wanted to install Google Chrome browser on the nearby Windows PC. \u00a0Here is what I saw when I opened the download page in Microsoft Internet Explorer. To help protect security, Internet Explorer blocked this site from downloading files to your computer. I know, it's probably a\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2011\/05\/google_chrome_blocked_in_msie-500x303.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":14979,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/05\/28\/vim-tips-of-the-day\/","url_meta":{"origin":8981,"position":4},"title":"Vim tips of the day","author":"Leonid Mamchenkov","date":"May 28, 2011","format":false,"excerpt":"I'm using Vim text editor for more than decade now. \u00a0And I still can't say I really know Vim. \u00a0I'm used to it and my fingers remember the commands. \u00a0And for those commands that I don't remember, I've found some way of working around and got used to it too.\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14768,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/04\/18\/command-line-php\/","url_meta":{"origin":8981,"position":5},"title":"Command line PHP","author":"Leonid Mamchenkov","date":"April 18, 2011","format":false,"excerpt":"I've discovered two things about command line PHP today. \u00a0I'll share them here just in case you missed them too. First, the \"-f\" parameter is optional. \u00a0I'm not sure when the change happened, but I'm pretty sure back when I started using it, it was required. \u00a0Now, instead of \"php\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2011\/04\/php-interactive-shell.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/8981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=8981"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/8981\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=8981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=8981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=8981"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=8981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}