- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Removing special characters 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
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
тАО11-03-2010 08:08 AM
тАО11-03-2010 08:08 AM
Any idea what this is and how to remove it?
# ls -dalb ???
-rw-r--r-- 1 root sys 0 Nov 2 10:57 \177\177\177
Solved! Go to Solution.
- Tags:
- unprintable chars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2010 08:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2010 08:36 AM
тАО11-03-2010 08:36 AM
Re: Removing special characters file
You can always remove a file from a filesystem by using its inode. Remember that an inode number is only unique within a filesystem.
# cd /path && ls -il
...[note the inode value]
# find . -xdev -type f -inum
The '-xdev' argument insures that we don't cross (out of) the mountpoint and clobber a file in another filesystem with the same inode number.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2010 08:45 AM
тАО11-03-2010 08:45 AM
Re: Removing special characters file
It may be created by doing something like
#touch ????
Here the ? mark appeared while you may use the delete key or backspace key which is not properly set for the terminal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2010 01:04 PM
тАО11-03-2010 01:04 PM
Re: Removing special characters file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2010 12:41 AM
тАО11-04-2010 12:41 AM
Re: Removing special characters file
This is a filename with three DELs. With my stty setup, I can just type that to rm.
$ touch ^?^?^?
$ ll ^?^?^?
-rw-rw-r-- 0 Nov 4 01:39
$ ll -b ^?^?^?
-rw-rw-r-- 0 Nov 4 01:39 \177\177\177
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2010 07:59 AM
тАО11-04-2010 07:59 AM
Re: Removing special characters file
You should remember the inode trick... that, and how do you get rid of an empty directory named
/home/${user}/-delete-me
are good interview questions. At least they get asked on every interview I'm running.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html