{"id":2134,"date":"2023-12-17T13:35:00","date_gmt":"2023-12-17T13:35:00","guid":{"rendered":"https:\/\/datmt.com\/?p=2134"},"modified":"2023-12-17T13:35:02","modified_gmt":"2023-12-17T13:35:02","slug":"linux-find-command-cheat-sheet","status":"publish","type":"post","link":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/","title":{"rendered":"Linux find Command Cheat Sheet"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>The find command is one of the most useful commands in Linux (for me). This cheat sheet serves as a reference so you (and I) can quickly find the correct command to get what we search.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Basic usages of the find command<\/h2>\n\n\n\n<p>This is the pattern of the find command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find [path] -name [filename]<\/pre><\/div>\n\n\n\n<p>For example, I have the following folder:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"754\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-3-1024x754.png\" alt=\"The folder structure\" class=\"wp-image-2135\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-3-1024x754.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-3-300x221.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-3-768x565.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-3.png 1484w\" \/><\/figure>\n\n\n\n<p>For example, if I want to find the file &#8220;sdk.json&#8221;, this is the command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find . -name &quot;sdk.json&quot;<\/pre><\/div>\n\n\n\n<p>Sure enough, I got the file back:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"132\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-4.png\" alt=\"find result \" class=\"wp-image-2136\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-4.png 792w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-4-300x50.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-4-768x128.png 768w\" \/><\/figure>\n\n\n\n<p>As you can see, the find command also finds in the nested folder.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Case Insensitive search<\/h2>\n\n\n\n<p>By default, the find command treats the search term case-sensitively. That means, if I run:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find . -name &quot;SDK.json&quot;<\/pre><\/div>\n\n\n\n<p>There would be no result returns.<\/p>\n\n\n\n<p>If I want to ignore case sensitivity, I can use <code>iname<\/code> instead of <code>name<\/code><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find . -iname &quot;SDK.json&quot;<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Find directory only &amp; file only<\/h2>\n\n\n\n<p>Consider the following structure:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"925\" height=\"1024\" sizes=\"auto, (max-width: 925px) 100vw, 925px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-5-925x1024.png\" alt=\"\" class=\"wp-image-2137\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-5-925x1024.png 925w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-5-271x300.png 271w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-5-768x850.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-5.png 1274w\" \/><\/figure>\n\n\n\n<p>The first loki is a file and the second loki is a folder. <\/p>\n\n\n\n<p>Execute the following command would return both files:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find . -name &quot;loki&quot;<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"168\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-6.png\" alt=\"\" class=\"wp-image-2138\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-6.png 750w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-6-300x67.png 300w\" \/><\/figure>\n\n\n\n<p>You can specify the type you want to return with <code>-type<\/code><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">#returns only the directory\nfind . -name &quot;loki&quot; -type d<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\"># returns only the file\nfind . -name &quot;loki&quot; -type f<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Find by size (greater than, less than)<\/h2>\n\n\n\n<p>Let&#8217;s consider the following files in a folder:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"256\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-7-1024x256.png\" alt=\"\" class=\"wp-image-2139\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-7-1024x256.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-7-300x75.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-7-768x192.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-7.png 1518w\" \/><\/figure>\n\n\n\n<p>I can execute the following commands to find the files that are less than 50KB<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\"># returns only the file\nfind . -size -50k\n# returns\n# .\/dockermetrics.json\n# .\/sdk.json<\/pre><\/div>\n\n\n\n<p>This command would result in the files that are larger than 50KB:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\"># returns only the file\nfind . -size +50k\n# returns\n#.\/postgres.json\n#.\/temporal.json<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Find finds by permission<\/h2>\n\n\n\n<p>You can find files by permission with:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find [path] -perm [permissions]<\/pre><\/div>\n\n\n\n<p>Let&#8217;s say I have the following files:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"228\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-8-1024x228.png\" alt=\"Files with permissions\" class=\"wp-image-2140\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-8-1024x228.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-8-300x67.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-8-768x171.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-8.png 1384w\" \/><\/figure>\n\n\n\n<p>As you can see, they are all 664.<\/p>\n\n\n\n<p>I can issue a command to find by permission 664 and sure enough, I can see the 4 files:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"185\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-9-1024x185.png\" alt=\"find files with permission\" class=\"wp-image-2141\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-9-1024x185.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-9-300x54.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-9-768x139.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-9.png 1338w\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Find files with logical condition<\/h2>\n\n\n\n<p>You are not limited to just one condition. Let&#8217;s say you want to find JSON files with a size > 50KB. You can do the following:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find -name &quot;*.json&quot; -size +50k<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"139\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-10-1024x139.png\" alt=\"\" class=\"wp-image-2142\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-10-1024x139.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-10-300x41.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-10-768x104.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-10.png 1088w\" \/><\/figure>\n\n\n\n<p>These conditions are implicity AND. If you want to do OR condition, you can use the following command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find . \\( -name &quot;sdk*&quot; -o -name &quot;post*&quot; \\)<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"121\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-11-1024x121.png\" alt=\"\" class=\"wp-image-2143\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-11-1024x121.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-11-300x35.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-11-768x91.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-11.png 1372w\" \/><\/figure>\n\n\n\n<p>Here, I use the wildcard to match the file names. Essentially, what I did was to ask the command to return the files that either start with <code>sdk<\/code> or <code>post<\/code>. The result was quite expected. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Execute commands on found files<\/h2>\n\n\n\n<p>if you want to execute a command on found files, you have it covered. For example, I want to find all the shell files and make them executable.<\/p>\n\n\n\n<p>First, here are the nonexecutable files:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"142\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-13-1024x142.png\" alt=\"\" class=\"wp-image-2145\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-13-1024x142.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-13-300x42.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-13-768x107.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-13.png 1222w\" \/><\/figure>\n\n\n\n<p>They are not executable as you can see. <\/p>\n\n\n\n<p>Let&#8217;s make them all executable:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find *sh -exec chmod +x {} \\;<\/pre><\/div>\n\n\n\n<p>If I list the files again, they are all executable:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"139\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-14-1024x139.png\" alt=\"Files are now executable\" class=\"wp-image-2146\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-14-1024x139.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-14-300x41.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-14-768x104.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-14.png 1266w\" \/><\/figure>\n\n\n\n<p>in the command above, the <code>{}<\/code> is the placeholder for the found files. the \\; at the end signifies this is the end of the command that needs to be executed. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Negate search<\/h2>\n\n\n\n<p>There are times you want to find files that don&#8217;t match a pattern, you can precede the -name with !<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find . ! -name &quot;sdk*&quot;<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"285\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-15-1024x285.png\" alt=\"negate search with find\" class=\"wp-image-2148\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-15-1024x285.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-15-300x83.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-15-768x214.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-15.png 1280w\" \/><\/figure>\n\n\n\n<p>As you can see, all files returned except for sdk.json.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Find files by users and groups<\/h2>\n\n\n\n<p>Similar to finding by names, you can find files by user and group. The syntaxes are familiar:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find [path] -user [username]\nfind [path] -group [groupname]\n<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"200\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-16-1024x200.png\" alt=\"\" class=\"wp-image-2149\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-16-1024x200.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-16-300x59.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-16-768x150.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-16-1536x300.png 1536w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-16.png 1846w\" \/><\/figure>\n\n\n\n<p>In the list of files above, you can see that the run1.sh file is owned by the user jenkins-agent. The following command return that single file:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find . -user jenkins-agent<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"77\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-17-1024x77.png\" alt=\"\" class=\"wp-image-2150\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-17-1024x77.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-17-300x22.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-17-768x57.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-17-1536x115.png 1536w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-17.png 1578w\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Find with limit depth of search<\/h2>\n\n\n\n<p>There are times you don&#8217;t want to search through all levels of the directory tree. For example, in the following directory tree:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"531\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-18-1024x531.png\" alt=\"\" class=\"wp-image-2151\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-18-1024x531.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-18-300x155.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-18-768x398.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-18-1536x796.png 1536w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-18-2048x1061.png 2048w\" \/><\/figure>\n\n\n\n<p>You only want to find all the &#8216;loki&#8217; files in the first level but not the ones inside sub folders.<\/p>\n\n\n\n<p>You can specify the depth with -maxdepth<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find [path] -maxdepth N -name [pattern]\nfind -maxdepth 1 -name &quot;loki&quot;<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"96\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-19-1024x96.png\" alt=\"\" class=\"wp-image-2152\" srcset=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-19-1024x96.png 1024w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-19-300x28.png 300w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-19-768x72.png 768w, https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/image-19.png 1148w\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Find and delete files<\/h2>\n\n\n\n<p>Combining the find command with the <code>-delete<\/code> can be very useful (and dangerous).<\/p>\n\n\n\n<p>Let&#8217;s say I want to find all .sh files in the current folder and delete them:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">find -name &quot;*sh&quot; -exec rm {} \\;<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In this post, I&#8217;ve introduced you to the usage of the find command in Linux. This is a very powerful and useful command. Using it right can serve you well. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The find command is one of the most useful commands in Linux (for me). This cheat sheet serves as a reference so you (and I) can quickly find the correct command to get what we search. Basic usages of the find command This is the pattern of the find command: For example, I have &#8230; <a title=\"Linux find Command Cheat Sheet\" class=\"read-more\" href=\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/\" aria-label=\"Read more about Linux find Command Cheat Sheet\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2154,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[31],"tags":[297,173],"class_list":["post-2134","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-find-command","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Linux find Command Cheat Sheet - datmt<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux find Command Cheat Sheet - datmt\" \/>\n<meta property=\"og:description\" content=\"Overview The find command is one of the most useful commands in Linux (for me). This cheat sheet serves as a reference so you (and I) can quickly find the correct command to get what we search. Basic usages of the find command This is the pattern of the find command: For example, I have ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/\" \/>\n<meta property=\"og:site_name\" content=\"datmt\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-17T13:35:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-17T13:35:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u0110\u1ea1t Tr\u1ea7n\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0110\u1ea1t Tr\u1ea7n\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/\"},\"author\":{\"name\":\"\u0110\u1ea1t Tr\u1ea7n\",\"@id\":\"https:\/\/datmt.com\/#\/schema\/person\/7736566e3758f424a11fd53f581c4b5e\"},\"headline\":\"Linux find Command Cheat Sheet\",\"datePublished\":\"2023-12-17T13:35:00+00:00\",\"dateModified\":\"2023-12-17T13:35:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/\"},\"wordCount\":639,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/datmt.com\/#\/schema\/person\/7736566e3758f424a11fd53f581c4b5e\"},\"image\":{\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg\",\"keywords\":[\"find command\",\"linux\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/\",\"url\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/\",\"name\":\"Linux find Command Cheat Sheet - datmt\",\"isPartOf\":{\"@id\":\"https:\/\/datmt.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg\",\"datePublished\":\"2023-12-17T13:35:00+00:00\",\"dateModified\":\"2023-12-17T13:35:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#primaryimage\",\"url\":\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg\",\"contentUrl\":\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/datmt.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux find Command Cheat Sheet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/datmt.com\/#website\",\"url\":\"https:\/\/datmt.com\/\",\"name\":\"datmt\",\"description\":\"Hands on projects\",\"publisher\":{\"@id\":\"https:\/\/datmt.com\/#\/schema\/person\/7736566e3758f424a11fd53f581c4b5e\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/datmt.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/datmt.com\/#\/schema\/person\/7736566e3758f424a11fd53f581c4b5e\",\"name\":\"\u0110\u1ea1t Tr\u1ea7n\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/datmt.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/03\/cropped-profile.jpg\",\"contentUrl\":\"https:\/\/datmt.com\/wp-content\/uploads\/2023\/03\/cropped-profile.jpg\",\"width\":512,\"height\":512,\"caption\":\"\u0110\u1ea1t Tr\u1ea7n\"},\"logo\":{\"@id\":\"https:\/\/datmt.com\/#\/schema\/person\/image\/\"},\"description\":\"I build softwares that solve problems. I also love writing\/documenting things I learn\/want to learn.\",\"sameAs\":[\"https:\/\/datmt.com\"],\"url\":\"https:\/\/datmt.com\/author\/mtdat171_c\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux find Command Cheat Sheet - datmt","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/","og_locale":"en_US","og_type":"article","og_title":"Linux find Command Cheat Sheet - datmt","og_description":"Overview The find command is one of the most useful commands in Linux (for me). This cheat sheet serves as a reference so you (and I) can quickly find the correct command to get what we search. Basic usages of the find command This is the pattern of the find command: For example, I have ... Read more","og_url":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/","og_site_name":"datmt","article_published_time":"2023-12-17T13:35:00+00:00","article_modified_time":"2023-12-17T13:35:02+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg","type":"image\/jpeg"}],"author":"\u0110\u1ea1t Tr\u1ea7n","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u0110\u1ea1t Tr\u1ea7n","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#article","isPartOf":{"@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/"},"author":{"name":"\u0110\u1ea1t Tr\u1ea7n","@id":"https:\/\/datmt.com\/#\/schema\/person\/7736566e3758f424a11fd53f581c4b5e"},"headline":"Linux find Command Cheat Sheet","datePublished":"2023-12-17T13:35:00+00:00","dateModified":"2023-12-17T13:35:02+00:00","mainEntityOfPage":{"@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/"},"wordCount":639,"commentCount":0,"publisher":{"@id":"https:\/\/datmt.com\/#\/schema\/person\/7736566e3758f424a11fd53f581c4b5e"},"image":{"@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#primaryimage"},"thumbnailUrl":"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg","keywords":["find command","linux"],"articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/","url":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/","name":"Linux find Command Cheat Sheet - datmt","isPartOf":{"@id":"https:\/\/datmt.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#primaryimage"},"image":{"@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#primaryimage"},"thumbnailUrl":"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg","datePublished":"2023-12-17T13:35:00+00:00","dateModified":"2023-12-17T13:35:02+00:00","breadcrumb":{"@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#primaryimage","url":"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg","contentUrl":"https:\/\/datmt.com\/wp-content\/uploads\/2023\/12\/linux.jpg-bc-at-2134.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/datmt.com\/linux\/linux-find-command-cheat-sheet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/datmt.com\/"},{"@type":"ListItem","position":2,"name":"Linux find Command Cheat Sheet"}]},{"@type":"WebSite","@id":"https:\/\/datmt.com\/#website","url":"https:\/\/datmt.com\/","name":"datmt","description":"Hands on projects","publisher":{"@id":"https:\/\/datmt.com\/#\/schema\/person\/7736566e3758f424a11fd53f581c4b5e"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/datmt.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/datmt.com\/#\/schema\/person\/7736566e3758f424a11fd53f581c4b5e","name":"\u0110\u1ea1t Tr\u1ea7n","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/datmt.com\/#\/schema\/person\/image\/","url":"https:\/\/datmt.com\/wp-content\/uploads\/2023\/03\/cropped-profile.jpg","contentUrl":"https:\/\/datmt.com\/wp-content\/uploads\/2023\/03\/cropped-profile.jpg","width":512,"height":512,"caption":"\u0110\u1ea1t Tr\u1ea7n"},"logo":{"@id":"https:\/\/datmt.com\/#\/schema\/person\/image\/"},"description":"I build softwares that solve problems. I also love writing\/documenting things I learn\/want to learn.","sameAs":["https:\/\/datmt.com"],"url":"https:\/\/datmt.com\/author\/mtdat171_c\/"}]}},"_links":{"self":[{"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/posts\/2134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/comments?post=2134"}],"version-history":[{"count":1,"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/posts\/2134\/revisions"}],"predecessor-version":[{"id":2153,"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/posts\/2134\/revisions\/2153"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/media\/2154"}],"wp:attachment":[{"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/media?parent=2134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/categories?post=2134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datmt.com\/wp-json\/wp\/v2\/tags?post=2134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}