How to Find file location if we forget it on RHEL 7 Easily

How to Find file location if we forget it on RHEL 7 Easily - Hi gays, I will share one trick for all of you. This trick is usually used for those of you who are looking for a file in linux, especially rhel which I demonstrated here.

This  manual  page documents the GNU version of find.  GNU find searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according to the rules of precedence  (see  section OPERATORS), until the outcome is known (the left hand side is false for and operations, true for or), at which point find moves on to the next file name.

If you are using find in an environment where security is important (for example if you are using  it to  search  directories  that  are writable by other users), you should read the "Security Considerations" chapter of the findutils documentation, which is called Finding Files and  comes  with  findutils. That  document  also includes a lot more detail and discussion than this manual page, so you may find it a more useful source of information.

This command is very basic :

# find location -type f -name "formatfile/filename"
# find /etc/httpd/ -type f -name "*.conf"
command find filename
command find filename

The results that are displayed you can see the information :

  • location all file with formatfile is .conf

You can edit with your needed.

Maybe that's all I can share with you guys, hopefully this article will be useful.

Thank You

Bangkit Ade Saputra
Bangkit Ade Saputra At the end of the day, my job involves people. we're complicated, we're always changing, we have millions of things going on in our lives, and changing jobs is always a big decision.

Post a Comment for "How to Find file location if we forget it on RHEL 7 Easily"