gudii9
asked on
how to search on file name in unix like xyz.ccfg under my unix server
Hi,
I have xyz.ccfg under my weblogic server.
I logged in to unix weblogic server box.
How do i search on above file name 'xyz.ccfg' to find its exact location like
abc/home/user1/......
i am not sure exactly where it is?
please advise
I have xyz.ccfg under my weblogic server.
I logged in to unix weblogic server box.
How do i search on above file name 'xyz.ccfg' to find its exact location like
abc/home/user1/......
i am not sure exactly where it is?
please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try "sudo find / -name xyz.ccfg"
You have to have the proper permissions to do a global search.
You have to have the proper permissions to do a global search.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That command will show you every file with that character match.
ASKER
what is meaning of sudo?
how to sudo as some super user to do this?
how to sudo as some super user to do this?
"sudo" allows non-privileged accounts to run privileged commands as specified in /etc/sudoers.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Would the author please close this question? There are good options listed here.
ASKER
let me try
ASKER
find / -name xyz.ccfg
can i use find to search zip folders also or only files?
find / -name xyz.gz
can i use find to search zip folders also or only files?
find / -name xyz.gz
ASKER
i did as below and found "a file"
https://www.tutorialspoint.com/unix_terminal_online.php
sh-4.4$ /bin/bash
bash-4.4$ touch a
bash-4.4$ ls -ltr
total 4
-rw-r--r-- 1 36894 36894 978 Nov 28 21:02 README.txt
-rw-r--r-- 1 36894 36894 0 Nov 28 21:02 a
bash-4.4$ find / -name a
find: '/usr/share/doc/scala/api/ scala-libr ary/scala/ collection ': Permission denied
/home/cg/root/a
https://www.tutorialspoint.com/unix_terminal_online.php
sh-4.4$ /bin/bash
bash-4.4$ touch a
bash-4.4$ ls -ltr
total 4
-rw-r--r-- 1 36894 36894 978 Nov 28 21:02 README.txt
-rw-r--r-- 1 36894 36894 0 Nov 28 21:02 a
bash-4.4$ find / -name a
find: '/usr/share/doc/scala/api/
/home/cg/root/a
can i use find to search zip folders also or only files?
The find command only searches for files. To search inside a gzip file, you use zgrep.
ASKER
says permission denied
please advise