#Introduction
In this tutorial, how to use fd command in Linux. fd command-line tool to find files in the file system. this tool is very simple.
Install fd command
Using apt to install fd on Ubuntu Server.
sudo apt-get install fd-find
(Optional) Create an alias for fd that refers to fdfind.
alias fd=fdfind
(Optional) To make the alias permanent.
vi ~/.bashrc
#Add this entry to the bashrc file
alias fd=fdfind
Use fd command in Linux
Before using fd command in Linux, we need to read the help of the command.
# fd --help
The output terminal as below
find all files that were changed before a specified number of days
$ fd index /home/vagrant --changed-before 365d
Finding Files Inside a Specific Directory
$ fd password /etc
Finding Files Based on Extension
$ fd -e html
Finding Hidden Files
$ fd -H bash
More details information about fd command.
man fd
Conclusion
fd command is a simple command in Linux. It uses the number of lines of files. Thank you for reading the DevopsRoles page!