top of page
Search

Find files and directories by name in linux?

Aug 6, 2020
1 min read

Use the command below to look for files and directories starting with letters qa. In our computer, we have the qatree.txt and qa.txt files as well as a directory by the name qa.


If we run the command;


find ./ -name "qa*"

It returns the following output


./test/qatree.pdf
./test/qa.txt
./home/qa

The command returns both the files and directories matching the search criteria. To find files or directories only, you need to specify this in the command.

 
 
 

Comments


Post: Blog2_Post
gkTechnical Blog

Subscribe to Stay Up to Date with the Latest Tech News

Get the latest content straight to your inbox. Enter your email below.

Subscribe Form

©2020 by gkTech.

bottom of page