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
- Error connecting to MySQL: Cant connect to MySQL server (10060)
- How to purchase a dedicated server
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
- centos7 open and close 80 port tutorial
- What to do if a cp: omitting directory error occurs in Linux (detailed solution)
- Debian system installation yum command
- How to modify the remote port in CentOS 7 and 8
- What should I do if I lose connection to the game server of Legend M international service? (Detailed solution)
- Merge the /home directory into the / directory under CentOS