Archive for the ‘locate command not showing searching file’ Category


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 ~]#