On Friday, August 11, 2017 16:17:30 Aman ulla wrote:
> how can i run this command in our centos 7 server to get results..?
It depends on which results you want to get. My suggestion is not to run
commands as root unless you really understand what they do ;-)
> # find /root/home/ -mindepth 1 -type f -not -name '.*' -delete && find
> /root/home/ -type d -not \(\-name '.*' -or -name 'Desktop' -or -name
> 'thinclient_drives' \) -delete
> this command gives this error.
> find: paths must precede expression: (-name
The error message sounds clear to me. You likely want to spell \(\-name
as \( -name so that ( ... ) is recognized as operator, instead of badly
Note that the back slashes are consumed by your shell, not by find itself.
> Usage: find [-H] [-L] [-P] [-Olevel] [-D
> help|tree|search|stat|rates|opt|exec] [path...] [expression]
> kindly help us to resolve this..
> Thanks in Advance.
> " Don't pollute it,good planets are hard to
> find "
> *-*-* Unity is Strength *-*-*