- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
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
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:56 AM
03-19-2002 01:56 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2002 02:04 AM
03-19-2002 02:04 AM
Re: problem with strange file
cd to the directory, then issue:
rm -i *
this will run the rm in interactive mode, therefore answer no to all the files expect the one you wish to remove.
I'm assuming there aren't that many files in this directory, otherwise you may have to refine the wildcard.
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2002 02:07 AM
03-19-2002 02:07 AM
Re: problem with strange file
try an asteric and some sensible characters until you get a listing of the just the files you want to zap ie
ls *DM*
or
ls *DM*DM*
if the listing is just the unwanted files
do rm *DM* ( or your ls string )
good luck
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2002 02:36 AM
03-19-2002 02:36 AM
SolutionTo avoid using * as argument to rm
you can use this method.
cd to the directory
ls -li
this will give you the inode-number for
the files. You can then use the inode-number
in find to delete the file. In this way
you specify one (and only one) file:
Example:
find . -inum 1453 -exec rm {} \;
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2002 02:37 AM
03-19-2002 02:37 AM
Re: problem with strange file
ls -i
you'll get the inode numbers N
remove using:
find DIR -type f -inum N -exec rm {} \;
Ciao
Federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2002 05:59 AM
03-19-2002 05:59 AM
Re: problem with strange file
I presume you've already deleted the file but...
If you can enter "ls @*" without a problem, then you can do "rm -i @*".
The only special purpose I'm aware of for the "@" character is that it has been used on some systems as stty's kill character (what you enter when typing a command and decide you want to erase the entire line you are typing and start over). Most systems today use ^U (
If you can not enter @ on your terminal, use "stty" to see what your kill character is set to. You can change it with "stty kill ^U" and then you should be able to enter "rm -i @*" without a problem.
Darrell