- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Identifying and removing strage file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 12:36 AM
тАО06-30-2005 12:36 AM
myserv:root:/home>ls -al
total 26
-rw-rw-rw- 1 clear sun 0 Oct 28 1999 ^[OC^[OC^[OC^[Ocd
drwxrwxrwx 60 sunadmin root 2048 Jun 30 11:06 .
drwxr-xr-x 28 daemon daemon 1024 Jun 30 04:24 ..
drwxrwxrwx 2 atlas sun 96 Oct 11 1999 atlas
etc etc
myserv:root:/home>file *
cd:C empty
atlas: directory
atlasint: directory
etc...
myserv:root:/home>find . -type f -user clear -prune
cdCCCC
myserv:root:/home>rm cdCCCC
rm: cdCCCC non-existent
myserv:root:/home>rm cdC*
rm: non-existent
myserv:root:/home>rm "cdC*"
rm: non-existent
myserv:root:/home>ls -al cdCCCC
cdCCCC not found
myserv:root:/home>find . -type f | grep cd
cdCCCC
And I could go around in circles.
Any clues as to what this "file" could be, and how it can be removed?
Ta!
Bren
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 12:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 12:46 AM
тАО06-30-2005 12:46 AM
Re: Identifying and removing strage file
try doing ll *d to see if this is the only file ending in d, and then try rm -i *d to make sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 12:49 AM
тАО06-30-2005 12:49 AM
Re: Identifying and removing strage file
Try this one...
First do a "ll" on the directory .In your case i think it comes as the first file in the directory.
then try this command
rm `ll |awk '{print $9}'|sed -n 2p`
Here "sed 2p" means 2nd line in the output.
But before doing this command make sure that it is the first file showing in ll command. Other wise find out which line it comes and replace 2 with that line number..
Make sure the backup of the direcotry is available with u..
Regards
CS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 10:41 PM
тАО06-30-2005 10:41 PM
Re: Identifying and removing strage file
ls -li
this will show the inode-number for the file. Ex: 12234
Then use this command to remove it:
find . -inum 12234 -exec rm {} \;
Regards
Olav