- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Different kind of problem
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
05-26-2002 11:46 PM
05-26-2002 11:46 PM
Different kind of problem
Please see the attachment for the o/p of command -- ll -- The first file is a special charecter file and has a link file created for it. If I give any other command it is displaying in special symbols- which in not human readable form.
Is their a way to remove this file alone.
Thanks,
Gnana A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2002 11:49 PM
05-26-2002 11:49 PM
Re: Different kind of problem
In the dir where this file is do an>
rm -i ./*
And when it lists your file with control characters answer Y to remove it. Answer N to the other files so you dont remove them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2002 11:54 PM
05-26-2002 11:54 PM
Re: Different kind of problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2002 12:02 AM
05-27-2002 12:02 AM
Re: Different kind of problem
Do the following commands;
ls -li | vis
This will list the files and show special or control characters with a \ first. What we are looking for is the inode number of the file you want to delete, eg;
> ls -li
total 10
145 -rwx------ 1 ops_sf users 47 May 27 08:36 go
140 -rw------- 1 ops_sf users 2268 May 26 18:18 nohup.out
51 drwx------ 2 ops_sf users 96 May 23 14:55 nsmail
Lets say we want to delete the file nohup.out, its inode number is 140. Now use the find command to remove by inode number;
find . -inum 140 -exec rm {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2002 12:04 AM
05-27-2002 12:04 AM
Re: Different kind of problem
if you like "some" typing work : :)
ls > /tmp/list
ed /tmp/list
,l (this will list the file without translating special chars, search for the file with some escape codes in front of it)
q
rm -i *xxxxx* (replace xxxx with the readable part of the filename)
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2002 12:19 AM
05-27-2002 12:19 AM
Re: Different kind of problem
I worked out the solution in this way.
1.Copied all files to a tmp directory.
2.Tried rm -i * ( since it is a special file - I assumed it will the first file prompted for deletion and marked as Y, and for other things I gave N)
3. This worked, So I repeated the same process in the original directory.
Thanks Again.
Gnana A.