how can i run this command in our centos 7 server to get results..?

# 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
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   *-*-*

Regards,
S.Amanulla

Reply via email to