{"id":70,"date":"2014-02-14T15:45:24","date_gmt":"2014-02-14T15:45:24","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=70"},"modified":"2014-02-14T15:45:24","modified_gmt":"2014-02-14T15:45:24","slug":"find-all-the-files-owned-by-a-particular-user-group","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/02\/14\/find-all-the-files-owned-by-a-particular-user-group\/","title":{"rendered":"Find All The Files Owned By a Particular User \/ Group"},"content":{"rendered":"<p>Find file owned by a group<\/p>\n<p>Use the following syntax:find directory-location -group {group-name} -name {file-name}<\/p>\n<p>Where,<\/p>\n<ul>\n<li>directory-location : Locate the file in this directory path.<\/li>\n<li>-group {group-name} : Find the file belongs to group-name.<\/li>\n<li>-name {file-name} : The file name or a search pattern<\/li>\n<\/ul>\n<p>In this example, locate or find all files belongs to a group called &#8220;ftpusers&#8221; in the \/home directory:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># find \/home -group ftpusers<\/pre>\n<p>To find all *.c file belongs to a group called &#8220;ftpusers&#8221; in \/data\/project directory, run:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># find \/data\/project -group ftpusers -name &quot;*.c&quot;<\/pre>\n<p>OR do case insensitive search:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># find \/data\/project -group ftpusers -iname &quot;*.c&quot;\nFind file owned by user<\/pre>\n<p>The syntax is: find directory-location -user {username} -name {file-name}<br \/>\nWhere,<\/p>\n<ul>\n<li>directory-location : Locate files or directories in this directory location.<\/li>\n<li>-user { user-name } : Find the file belongs to user.<\/li>\n<li>-name {file-name} : File name or pattern.<\/li>\n<\/ul>\n<p>In this example, locate or find all file belongs to a user called &#8220;vivek&#8221; in \/var directory:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# find \/var -user vivek\n<\/pre>\n<p>To find all *.pl (perl files) file belongs to a user called &#8220;vivek&#8221; in \/var\/www directory, enter:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# find \/var\/www -user vivek -name &quot;*.pl&quot;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Find file owned by a group Use the following syntax:find directory-location -group {group-name} -name {file-name} Where, directory-location : Locate the file in this directory path. -group {group-name} : Find the file belongs to group-name. -name {file-name} : The file name or a search pattern In this example, locate or find all files belongs to a &#8230; <a title=\"Find All The Files Owned By a Particular User \/ Group\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/02\/14\/find-all-the-files-owned-by-a-particular-user-group\/\" aria-label=\"Read more about Find All The Files Owned By a Particular User \/ Group\">Read more<\/a><\/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-70","post","type-post","status-publish","format-standard","hentry","category-apache"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}