I need to search for files starting with some particular name. There can be multiple files starting with a particular pattern and I want to list all such files present in the directory.
|
To complete exisitng answers: lsThe default directory list utility
Note that the file extension is relevant for the search results too. tree
In case we need to list files in a directory tree we can also issue
|
|||
|
|
|
You can use
The above command will search the file that starts with abc under the current working directory.
You can also use
option with |
|||
|
|
|
There are many ways to do it, depending on exactly what you want to do with them. Generally, if you want to just list them, you can do it in a terminal using:
... and replacing To understand the command, let's break it down a bit:
|
|||
|
|
|
You can search for a particular pattern using the Nautilus file manager and regular expressions. To do so, click on Select Items Matching in the Gear menu like below (you can also press Ctrl+s).
Then, just type the regular expression
Every file whose name matches your pattern will be automatically selected.
I'm using Nautilus 3.6.* from GNOME3 PPA on Ubuntu 12.10 (Quantal). |
||||
|
|



