The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Checking for a file in file pattern before deleting it dsrookie UNIX for Dummies Questions & Answers 1 05-09-2008 05:29 PM
Deleting lines inside a file without opening the file toms Shell Programming and Scripting 3 09-24-2007 08:58 AM
Remove the contents of a file without deleting the file sumesh.abraham Shell Programming and Scripting 10 12-02-2006 05:35 PM
Deleting a file I don't own kumachan UNIX for Dummies Questions & Answers 5 09-19-2003 11:50 AM
Deleting log file s_aamir UNIX for Advanced & Expert Users 5 01-07-2002 11:05 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-05-2007
LisaS LisaS is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 59
deleting file that isn't really there

sorry about the title -

I have a directory where a file is showing with ls or ls -l but if I try to reference it - I get the message that it isn't there. It is as if the directory structure isn't matching the actual content.

Right now, I have two files of same name showing in the directory - one real, one this other situation - if I rename the real one - then any attempt to work with the other one is "file not found".
it happens to be in /var/adm/cron with the file queuedefs
-r--r--r-- 1 bin bin 51 Mar 26 2004 .proto
prw------- 1 root root 0 Jul 5 10:32 FIFO
-rw-r--r-- 1 root root 187087 Jul 5 12:15 OLDlog
-r--r--r-- 1 root sys 18 Apr 25 16:13 at.allow.orig
-rw-rw-rw- 1 root sys 0 Apr 25 16:13 at.deny
-r--r--r-- 1 bin bin 18 Apr 25 16:10 cron.allow
-rw-r--r-- 1 root root 2833 Jul 5 14:45 log
-rw-r--r-- 1 root sys 207 Apr 19 09:41 queuedefs
-rw-rw-r-- 1 root sys 207 May 2 10:00 queuedefs


How do I clean this up?

Lisa
HP-UX 11.23 i64
  #2 (permalink)  
Old 07-05-2007
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,825
The first (very simple) thing I would try is to move one of the files:


Code:
mv que* tempfoo

Then, I would try to move the other one with wildcards:


Code:
mv qu* newfoo

or


Code:
mv *qu* newfoo

...and see what happens.

Maybe there are some hidden special chars in one of the filenames?
  #3 (permalink)  
Old 07-05-2007
LisaS LisaS is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 59
you guys are so smart.
that was it - some char I couldn't see I guess.
I mv the good one; rm *que* the bad one; and moved back the good one.
all OK now.

thanks again!
  #4 (permalink)  
Old 07-08-2007
aladdin aladdin is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 78
so what the "p" permission is for in:


Code:
prw------- 1 root root 0 Jul 5 10:32 FIFO

THX
  #5 (permalink)  
Old 07-08-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Quote:
Originally Posted by aladdin View Post
so what the "p" permission is for in:


Code:
prw------- 1 root root 0 Jul 5 10:32 FIFO

THX
P means that the file in question is a fifo. These were originally called "named pipes" and the p meant pipe.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0