i want to search qdbase (the name of DB). i dont know where this file is lies.i want to use grep at my server. my server name is qa@qaubuntu and for root root@qaubuntu.. i'm searching this file using terminal from client PC(qa@qadesktop)
So you're looking for a file with a known name and unknown location?
The latter is probably slower, but more "thorough", the first command is based on the fact that all file names have been indexed already, so that the search is quicker. Try the first option and if it fails, the second one.
You'll probably have to rsh in first.
sudo to not restrict the search by what folders your regular user is allowed access to
grep to search
/ for the root of the drive
"String to search for"
|show 2 more comments|