Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-10-2009, 03:34 AM   #1
LQ Newbie
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Unhappy ls -a doesn't show the file that exists

we have installed vignette software on the linux box and would like to uninstall it. To uninstall it we need to delete one file named When we used locate, the file is found in 2 places. But when we used the ls -a in those locations the file is not seen. basically we want to remove that file. If we do rm, this also doesn't work.
Also when we used find -H the file is not found. What is wrong here. I am sure the file will be added to file system as part of vignette. Can anyone suggest what could be wrong here.

We logged in as root user to remove this file.

Installation is done twice using root and vignette user ids. Thats why file is located in 2 places.

Old 09-10-2009, 03:45 AM   #2
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392

Is the database that locate uses up-to-date? Use updatedb (probably as rootuser, but that depends on how things are setup) to refresh/update the database.

Another way of looking for this file would be (as root):

cd /
find . -iname ""

Hope this helps.
Old 09-10-2009, 10:25 AM   #3
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,125
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Are you sure its not already deleted and just waiting for a process to release it? Do an lsof | grep ""
Old 09-10-2009, 10:31 AM   #4
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,079

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
As druuna implies, the locate/slocate/mlocate database is not "live". It is refreshed usually once a day via a cron job, so it doesn't necessarily reflect the status of your file system. If the file is not there, don't worry. Just do run updatedb and locate should stop reporting that matches.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vim always says swap file already exists for a particular file leftty Linux - Software 1 09-13-2008 02:53 PM
How do I know if a file exists in c? kalleanka Programming 2 12-16-2007 08:10 AM
file not found by glob? - file exists? rgdatit Linux - Newbie 2 07-29-2005 03:16 AM
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 09:29 AM
Linker problem: can't find a file, but the file exists atlep Programming 5 08-16-2004 07:15 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration