I used locate command to locate the zip file as find was not working in this case. Then run unzip it manually. I am learning shell scripting. How can I do it in shell script?
Asked
Active
Viewed 60 times
0
#!/bin/bash
. Please try, and if you need help to make it work correctly, please edit your original question to show your shellscript file ascode
. – sudodus Oct 13 '21 at 11:11find / -name filename
will search 'everywhere' (for the file 'filename'). You may need elevated permissions (prefix withsudo
) to be able to search where a regular user lacks access. Butlocate
is often much faster thanfind
. – sudodus Oct 14 '21 at 06:30