Forum Discussion
Is there any command on F5 which is similar to Unix "locate" command?
Dear Expert,
I attempted to run the command "locate" to find out that a file resides in which directory. However I am getting the error message that "locate" command not found.
[*****:Active:Standalone] / locate -i alertd.conf -bash: locate: command not found
As it's very hard to remember the directory of a file, is there any other command on F5 which is similar to Unix "locate" command?
Best Regards,
find / -type f -name "*alert*"
- Samir_Jha_52506Noctilucent
Use
unix command.find
- FozailAltostratus
Hi,
I tried but find also didn't help.
[:Active:Standalone] config find -name "alertd.conf" [:Active:Standalone] config find "alertd.conf" find: `alertd.conf': No such file or directory
- kunjanNimbostratus
find / -name alertd.conf
- FozailAltostratus
Hi Kunjan,
Thank you for sharing the info.
I tried it on my lab appliance, it does not tell the directory name of the file.
[root@fozilab:Active:Standalone] config find / -name alertd.conf [root@fozilab:Active:Standalone] config find / -name "alertd.conf" [root@fozilab:Active:Standalone] config find / -name alertd.conf [root@fozilab:Active:Standalone] config
- kunjan_118660Cumulonimbus
find / -name alertd.conf
- FozailAltostratus
Hi Kunjan,
Thank you for sharing the info.
I tried it on my lab appliance, it does not tell the directory name of the file.
[root@fozilab:Active:Standalone] config find / -name alertd.conf [root@fozilab:Active:Standalone] config find / -name "alertd.conf" [root@fozilab:Active:Standalone] config find / -name alertd.conf [root@fozilab:Active:Standalone] config
- kunjanNimbostratus
Actually it is alert.conf , at /etc/alertd/alert.conf
- FozailAltostratus
Hi Kunjan,
my bad :( , good catch.
I ran the command "find / -name alert" and it stops where it find the first match, is there a way to gte the complete list, like it should display directory for "alert.conf", "user_alert.conf" etc
[root@fozilab:Active:Standalone] config find / -name alert /config/user_alert.conf
- kunjan_118660Cumulonimbus
Actually it is alert.conf , at /etc/alertd/alert.conf
- FozailAltostratus
Hi Kunjan,
my bad :( , good catch.
I ran the command "find / -name alert" and it stops where it find the first match, is there a way to gte the complete list, like it should display directory for "alert.conf", "user_alert.conf" etc
[root@fozilab:Active:Standalone] config find / -name alert /config/user_alert.conf
- kunjanNimbostratus
find / -type f -name "*alert*"
- FozailAltostratus
Thank you very much Kunjan :)
- kunjan_118660Cumulonimbus
find / -type f -name "*alert*"
- FozailAltostratus
Thank you very much Kunjan :)
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com