{"id":68636,"date":"2023-09-29T18:01:32","date_gmt":"2023-09-29T10:01:32","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=68636"},"modified":"2023-10-05T12:37:01","modified_gmt":"2023-10-05T04:37:01","slug":"linux-command-fd","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/","title":{"rendered":"How to Use the &#8216;fd&#8217; Command in Linux"},"content":{"rendered":"<p>The <code>fd<\/code> command, short for \u201cfind directory,\u201d is designed to search and locate files and directories within the filesystem. It\u2019s known for its simplicity and speed, making it a favorite among system administrators and developers alike.<\/p>\n<p>Compared to the traditional <code><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-find\/\">find<\/a><\/code> command, <code>fd<\/code> offers a more user-friendly syntax and faster search capabilities. It\u2019s commonly used for locating specific files, cleaning up directories, or even in automation scripts. Additionally, the <code>fd<\/code> command can be paired with other commands like <code><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-grep\/\">grep<\/a><\/code> for more advanced search functionality.<\/p>\n<h2>How to Install the <code>fd<\/code> Command<\/h2>\n<p><code>fd<\/code> is not typically included by default in most Linux distributions, so you will need to install it. The installation process can vary depending on the distribution you are using. Here\u2019s how you can install and uninstall <code>fd<\/code> on some common distributions:<\/p>\n<p><strong>Ubuntu\/Debian<\/strong><\/p>\n<p>To install <code>fd<\/code> on Ubuntu or Debian, you can use the following command:<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get install fd-find<\/pre>\n<p>To uninstall it later, you can use:<\/p>\n<pre>sudo apt-get remove fd-find<\/pre>\n<p><strong>Fedora<\/strong><\/p>\n<p>On Fedora, you can install <code>fd<\/code> with:<\/p>\n<pre>sudo dnf install fd-find\r\n<\/pre>\n<p>To uninstall it:<\/p>\n<pre>sudo dnf remove fd-find<\/pre>\n<p><strong>macOS (using Homebrew)<\/strong><\/p>\n<p>If you\u2019re on macOS and using <a href=\"https:\/\/brew.sh\/\">Homebrew<\/a>, you can install <code>fd<\/code> with:<\/p>\n<pre>brew install fd<\/pre>\n<p>To uninstall it:<\/p>\n<pre>brew uninstall fd<\/pre>\n<p><strong>Note:<\/strong> the package name might be <code>fd-find<\/code> in some package managers, and you may need to use the command <code>fdfind<\/code> instead of <code>fd<\/code>. You can alias it to <code>fd<\/code> by adding alias <code>fd=fdfind<\/code> to your shell\u2019s configuration file (e.g., <code>.bashrc<\/code> or <code>.zshrc<\/code>).<\/p>\n<h2>How to Use <code>fd<\/code><\/h2>\n<h3>1. Search for Files by Name<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd PATTERN<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for files and directories with a name matching the given pattern.<\/p>\n<p><strong>Example:<\/strong> <code>fd 'report.txt'<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n\/home\/user\/documents\/report.txt\r\n\/home\/user\/archive\/report.txt<\/pre>\n<p>The command searches for all occurrences of <code>report.txt<\/code> in the current directory and its subdirectories, listing the full paths to the files.<\/p>\n<hr>\n<h3>2. Search for Files with a Specific Extension<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd '.*EXTENSION'<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for files with a specific extension.<\/p>\n<p><strong>Example:<\/strong> <code>fd '.*\\.pdf'<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n\/home\/user\/documents\/file1.pdf\r\n\/home\/user\/documents\/file2.pdf<\/pre>\n<p>The command searches for all PDF files in the current directory and its subdirectories.<\/p>\n<hr>\n<h3>3. Search for Files Modified in the Last N Days<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd --changed-within 'Nd'<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for files and directories modified within the last N days.<\/p>\n<p><strong>Example:<\/strong> <code>fd --changed-within '7d'<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n\/home\/user\/documents\/week_report.docx\r\n\/home\/user\/photos\/recent_image.jpg<\/pre>\n<p>The command lists all files and directories modified within the last 7 days.<\/p>\n<hr>\n<h3>4. Search for Directories Only<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd --type d PATTERN<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for directories with a name matching the given pattern.<\/p>\n<p><strong>Example:<\/strong> <code>fd --type d 'projects'<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n\/home\/user\/development\/projects\r\n\/home\/user\/design\/projects<\/pre>\n<p>The command searches for all directories named <code>projects<\/code> in the current directory and its subdirectories.<\/p>\n<hr>\n<h3>5. Search for Files Excluding Certain Directories<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd --exclude DIR PATTERN<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for files and directories matching the pattern, excluding specified directories.<\/p>\n<p><strong>Example:<\/strong> <code>fd --exclude 'archive' 'report.txt'<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n\/home\/user\/documents\/report.txt<\/pre>\n<p>The command searches for <code>report.txt<\/code> but excludes any results from the \u201carchive\u201d directory.<\/p>\n<hr>\n<h3>6. Search for Files Larger than a Specific Size<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd --size '+SIZE'<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for files larger than a specified size.<\/p>\n<p><strong>Example:<\/strong> <code>fd --size '+1M'<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n\/home\/user\/videos\/large_video.mp4\r\n\/home\/user\/music\/big_album.flac<\/pre>\n<p>The command lists all files larger than 1 megabyte in the current directory and its subdirectories.<\/p>\n<hr>\n<h3>7. Search for Files and Execute a Command on Them<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd PATTERN -x COMMAND<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for files matching the pattern and executes a specified command on them.<\/p>\n<p><strong>Example:<\/strong> <code>fd '.*\\.txt' -x cat<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\nContents of file1.txt\r\nContents of file2.txt<\/pre>\n<p>The command searches for all text files and then runs the <code>cat<\/code> command on them, displaying their contents.<\/p>\n<hr>\n<h3>8. Search for Files in a Case-Insensitive Manner<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd --ignore-case PATTERN<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for files and directories matching the pattern, ignoring case.<\/p>\n<p><strong>Example:<\/strong> <code>fd --ignore-case 'readme'<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n\/home\/user\/README\r\n\/home\/user\/projects\/readme.md<\/pre>\n<p>The command searches for all occurrences of <code>readme<\/code> in the current directory and its subdirectories, ignoring the case.<\/p>\n<hr>\n<h3>9. Search for Files Using a Regular Expression<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd --regex 'REGEX'<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for files and directories matching a given regular expression.<\/p>\n<p><strong>Example:<\/strong> <code>fd --regex '^a.*\\.txt$'<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n\/home\/user\/documents\/a_file.txt\r\n\/home\/user\/documents\/another_file.txt<\/pre>\n<p>The command searches for all text files in the current directory and its subdirectories that start with the letter <code>a<\/code>.<\/p>\n<hr>\n<h3>10. Search for Files with Specific Permissions<\/h3>\n<p><strong>Syntax<\/strong>: <code>fd --perm PERMISSIONS<\/code><\/p>\n<p><strong>Explanation<\/strong>: Searches for files with specific permissions.<\/p>\n<p><strong>Example:<\/strong> <code>fd --perm 755<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n\/home\/user\/scripts\/executable_script.sh<\/pre>\n<p>The command searches for files with permissions set to <code>755<\/code> (read, write, and execute for the owner; read and execute for the group and others).<\/p>\n<hr>\n<h3 style=\"padding-bottom:10px\">More Linux commands:<\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"150\">Directory Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rm-rmdir\/\"><code>rmdir<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cd\/\"><code>cd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-pwd\/\"><code>pwd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-exa\/\"><code>exa<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ls\/\"><code>ls<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/\"><code>cat<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cp\/\"><code>cp<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-dd\/\"><code>dd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-less\/\"><code>less<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-touch\/\"><code>touch<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/\"><code>ln<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/\"><code>rename<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-more\/\"><code>more<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-head\/\"><code>head<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File System Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-chown\/\"><code>chown<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mkfs\/\"><code>mkfs<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-locate\/\"><code>locate<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Networking<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ping\/\"><code>ping<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-curl\/\"><code>curl<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-wget\/\"><code>wget<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-iptables\/\"><code>iptables<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mtr\/\"><code>mtr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Search and Text Processing<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-find\/\"><code>find<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-grep\/\"><code>grep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sed\/\"><code>sed<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-whatis\/\"><code>whatis<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ripgrep\/\"><code>ripgrep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/\"><code>fd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-tldr\/\"><code>tldr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">System Information and Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-env\/\"><code>env<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-history\/\"><code>history<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/\"><code>top<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-who\/\"><code>who<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-htop\/\"><code>htop<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-glances\/\"><code>glances<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-lsof\/\"><code>lsof<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">User and Session Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-screen\/\"><code>screen<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-su\/\"><code>su<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sudo\/\"><code>sudo<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-open\/\"><code>open<\/code><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"<p>From installation to advanced use-cases, get the most out of the &#8216;fd&#8217; command.<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[3397],"tags":[888,3316],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Use the &#039;fd&#039; Command in Linux - Hongkiat<\/title>\n<meta name=\"description\" content=\"From installation to advanced use-cases, get the most out of the &#039;fd&#039; command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use the &#039;fd&#039; Command in Linux\" \/>\n<meta property=\"og:description\" content=\"From installation to advanced use-cases, get the most out of the &#039;fd&#039; command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-29T10:01:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-05T04:37:01+00:00\" \/>\n<meta name=\"author\" content=\"Hongkiat.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-fd\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-fd\\\/\"},\"author\":{\"name\":\"Hongkiat.com\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\"},\"headline\":\"How to Use the &#8216;fd&#8217; Command in Linux\",\"datePublished\":\"2023-09-29T10:01:32+00:00\",\"dateModified\":\"2023-10-05T04:37:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-fd\\\/\"},\"wordCount\":599,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"Linux\",\"Linux Commands\"],\"articleSection\":[\"Desktop\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-fd\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-fd\\\/\",\"name\":\"How to Use the 'fd' Command in Linux - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2023-09-29T10:01:32+00:00\",\"dateModified\":\"2023-10-05T04:37:01+00:00\",\"description\":\"From installation to advanced use-cases, get the most out of the 'fd' command.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-fd\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-fd\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-fd\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use the &#8216;fd&#8217; Command in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\",\"name\":\"Hongkiat.com\",\"description\":\"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use the 'fd' Command in Linux - Hongkiat","description":"From installation to advanced use-cases, get the most out of the 'fd' command.","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:\/\/www.hongkiat.com\/blog\/linux-command-fd\/","og_locale":"en_US","og_type":"article","og_title":"How to Use the 'fd' Command in Linux","og_description":"From installation to advanced use-cases, get the most out of the 'fd' command.","og_url":"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2023-09-29T10:01:32+00:00","article_modified_time":"2023-10-05T04:37:01+00:00","author":"Hongkiat.com","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat.com","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/"},"author":{"name":"Hongkiat.com","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3"},"headline":"How to Use the &#8216;fd&#8217; Command in Linux","datePublished":"2023-09-29T10:01:32+00:00","dateModified":"2023-10-05T04:37:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/"},"wordCount":599,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["Linux","Linux Commands"],"articleSection":["Desktop"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/","url":"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/","name":"How to Use the 'fd' Command in Linux - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2023-09-29T10:01:32+00:00","dateModified":"2023-10-05T04:37:01+00:00","description":"From installation to advanced use-cases, get the most out of the 'fd' command.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use the &#8216;fd&#8217; Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3","name":"Hongkiat.com","description":"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/com\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-hR2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/68636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=68636"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/68636\/revisions"}],"predecessor-version":[{"id":69713,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/68636\/revisions\/69713"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=68636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=68636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=68636"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=68636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}