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
- 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
- How to purchase a dedicated server
- 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
- What to do if a cp: omitting directory error occurs in Linux (detailed solution)
- What is the meaning of servererror500 (there is servererror500 solution)
- How to solve the Windows 10 prompt "The built-in administrator cannot activate this application"?
- Centos7 closes and restarts the system firewall and opens firewall ports
- Expand the root directory space of the CentOS system, and expand the home directory space to the root directory
- What should I do if the proxy server link fails to respond?