- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: problem with strange 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
Forums
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
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
тАО03-19-2002 01:55 AM
тАО03-19-2002 01:55 AM
problem with strange file
On HP-UX 10.20 I have the following problem.
In one directory on my server I saw some file in the followin format :
@^DM-^V0@^DM-fM-|
Are there any way to delete them?
Thanks in advance for your help and your support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2002 03:22 AM
тАО03-19-2002 03:22 AM
Re: problem with strange file
there is an old quote "Unter UNIX der find ist dein freund" (in UNIX the find(enemy) is your friend):
# cd
# ls -li
(grep the inode)
# find . -type f -inum
(hope you see the bachslash before the ; )
Heiner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2002 07:09 AM
тАО03-19-2002 07:09 AM
Re: problem with strange file
rm *M*M*fM*
should kill your:
@^DM-^V0@^DM-fM-|
just make sure you don't kill something you need.
You can also move all of the good files out of the directory then do rm * then move the good files back.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2002 09:29 AM
тАО03-19-2002 09:29 AM
Re: problem with strange file
rm \@M\-auxb
This should work for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2002 01:22 PM
тАО03-19-2002 01:22 PM
Re: problem with strange file
You can use the file completion of bash to fill in the name for you, and it will properly escape the characters. For example enter
'rm @' then hit the escape key a couple of times.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2002 04:13 AM
тАО03-20-2002 04:13 AM
Re: problem with strange file
Easy way to do it :
1.
# ls /directoryWhereTheFileIs > /tmp/bizare.sh
2.
# vi /tmp/bizare.sh
and remove all other files but not the bizare one. Then add the "rm" command in the begining, and the content of your /tmp/bizare.sh will be like :
rm *^F.^M...
3.
# sh /tmp/bizare.sh
And the bizare file will be away .
HTH
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2002 05:01 PM
тАО03-20-2002 05:01 PM
Re: problem with strange file
Rather than trying yo delete using the command line. Use your file manager in your desktop environment.
Open to the file folder find the file, right click and delete it or drag and drop in to your trash can. (This will only work if the file has write permissions, but those can be added by right click/properties)
I've found it to be the quickest, easiest way to delete a file with a strange name. Using the command line can be dangerous if you are not careful.
Good luck,
Kel