Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
When using the find command in Linux, an error is reported: find: missing argument to ‘- exec’
The specific execution commands are as follows:
Shell code
find/u03-nameserver.xml-execgrep’9080′{}\;
The purpose is to find the file named server.xml in the directory of/u03, and grep search is carried out according to the search results, which contains 9080 text
-The format of exec is:
Shell code
-execcommand{}\;
There must be a space between {} and \, otherwise the above error will be reported
Re execute the command after adding a space:
Shell code
find/u03-nameserver.xml-execgrep’9080′{}\;
Similar Posts:
- Linux Error: missing argument to `-exec’ [How to Solve]
- Groovy executes the script command shell command [Solved]
- [Solved] appium Error: A new session could not be created
- Workaround for “could not retrieve mirrorlist” during Yum installation
- ping: www.baidu.com : unknown name or service. Linux cannot access the Internet
- [Solved] “/bin/bash^M: bad interpreter: No such file or directory”
- OSError: [Errno 8] Exec format error: “No such file or directory3” or “/usr/local/bin/python3^M: bad interpreter:…
- [Solved] OCI runtime exec failed……executable file not found in $PATH”: unknown
- Mac open terminal error – bash:: command not found
- Install CDH6.2 agent error [How to Solve]