- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to remove weird 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
тАО03-06-2007 04:38 AM
тАО03-06-2007 04:38 AM
total 454
drwx------ 3 root sys 96 Mar 2 15:24 ^V
When I do an ll (without more)
camintp6:/home/egprdbb/bin # ll
total 454
drwx------ 3 root sys 96 Mar 2 15:24
How can I remove this directory?
Thanks!
Solved! Go to Solution.
- Tags:
- unprintable chars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 04:43 AM
тАО03-06-2007 04:43 AM
Re: How to remove weird file
hth,
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 04:43 AM
тАО03-06-2007 04:43 AM
Re: How to remove weird file
rmdir \cntrl-V
Just type a backslash '\' character that tells the shell to ignore any special properties of the next character. Then hold down the ctrl button and press V.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 04:44 AM
тАО03-06-2007 04:44 AM
Re: How to remove weird file
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 04:45 AM
тАО03-06-2007 04:45 AM
Re: How to remove weird file
Do this but be careful:
cd to parent directory.
rmdir -i *
You will be prompted for each file/directory name. Answer 'y' ONLY to the directory that you want to delete. Answer 'n' to everything else. After your directory has been deleted, you can enter Ctrl-C (or whatever your intr character is set to) to terminate the command.
If the direcory is not empty then you need to do a
rm -r -i *
which will also ask before removing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 04:47 AM
тАО03-06-2007 04:47 AM
Re: How to remove weird file
I did an rmdir -i * and did it that way. Should've thought of that.
THANKS
Tonya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 04:54 AM
тАО03-06-2007 04:54 AM
Re: How to remove weird file
directory : ? (y/n) y
directory /home: ? (y/n) camintp6:/home/egprdbb/bin # ll | more
total 454
drwx------ 3 root sys 96 Mar 2 15:24 ^V
Wait! It did not work. Still there. Then it lists a dir (/home) that is not even in this directory... ??? Confused!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 04:54 AM
тАО03-06-2007 04:54 AM
Re: How to remove weird file
Answered my own question but still do not understand. Using:
rmdir \^V^V
ended up as a single ^V. I wonder if that was due to the shell editor....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 05:01 AM
тАО03-06-2007 05:01 AM
SolutionYet another way is to find the inode number of the directory and remove by that:
# ls -il
340 drwx------ 3 root sys 96 Mar 2 15:24 ^V
...the inode number is 340. Now:
# cd /path
# find /path -xdev -type d -inum 340 -exec rm -ri {} \;
Note that inode numbers are only unique within a filesystem.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 05:31 AM
тАО03-06-2007 05:31 AM
Re: How to remove weird file
Done.