Hot Article
- Centos7 closes and restarts the system firewall and opens firewall ports
- How IID server uses Xshell to connect to Linux (centos) server
- BT panel forgets the background login URL, and the solution to the security entrance verification failure
- What to do if a cp: omitting directory error occurs in Linux (detailed solution)
- The php domain name points to ip, how to use the specified ip address to access a server in the url request domain name in curl mode
- Error connecting to MySQL: Cant connect to MySQL server (10060)
In Linux, you can use the "find" command to search and find files. To do a fuzzy query, you can use the "-name" option and use wildcards in the file name.
For example, to find all files that start with "file" and end with ".txt", you can use the following command.
find /path/to/search -name "file*.txt"
The above command will find all files starting with "file" and ending with ".txt" in the specified path (/path/to/search). An asterisk (*) indicates a wildcard character and is used to match any character.
Similarly, to find files with specific characters in the file name, you can use asterisks for fuzzy queries. For example, to find all files that contain the character "hello", you can use the following command.
find /path/to/search -name "*hello*"
The above command will find all files with the "hello" character in the specified path (/path/to/search).
Please note that the "find" command may take some time to complete the search, depending on the size of the file system and the number of files.
related topic
- How does CentOS7 open/view ports?
- Merge the /home directory into the / directory under CentOS
- How to view file size in linux
- linux delete folder command
- Windows Server system prompts that the account is disabled when accessing shares
- What to do if a cp: omitting directory error occurs in Linux (detailed solution)