Linux locate command not showing searching file but file is available in the system

Posted: July 16, 2018 in locate command not showing searching file, Troubleshooting

I am searching nohup.out file in my server. in this case locate command not showing the file but file is available in the system. This is very simple think like very have update system database mean run updatedb.

[root@vm1 ~]# locate nohup.out
/test/nohup.out
/root/nohup.out

[root@vm1 ~]# ll /opt/VMware/bin/nohup.out
-rw——- 1 root root 43539 Jul 16 14:36 /opt/VMware/bin/nohup.out

[root@vm1 ~]# updatedb

[root@vm1 ~]# locate nohup.out
/test/nohup.out
/opt/VMware/bin/nohup.out
/root/nohup.out
[root@vm1 ~]#

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.