- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Deleting a directory with no name
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
11-04-2003 02:36 AM
11-04-2003 02:36 AM
# cd /
# ll | head -2
total 256
drwxrwxrwx 2 root sys 8192 Oct 27 09:28
#
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:44 AM
11-04-2003 02:44 AM
Re: Deleting a directory with no name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:44 AM
11-04-2003 02:44 AM
Re: Deleting a directory with no name
I created a directory CTRL-A and it shows up like this:
# ll | head -2 | od -bc
0000000 t o t a l 2 5 8 0 \n d r w x r
164 157 164 141 154 040 062 065 070 060 012 144 162 167 170 162
0000020 w x r w x 2 r o o t
167 170 162 167 170 040 040 040 062 040 162 157 157 164 040 040
0000040 s y s
040 040 040 040 040 163 171 163 040 040 040 040 040 040 040 040
0000060 9 6 N o v 4 1
040 040 040 040 040 071 066 040 116 157 166 040 040 064 040 061
0000100 0 : 3 6 001 \n
060 072 063 066 040 001 012
0000107
#
Note the 001 on the last line, that's a ctrl-A.
rm -ri *
CAREFUL though, it's saying to remove files and directories, but PROMPT first. The CTRL-A directory prompted me TWICE to delete it:
# rm -ir *
directory : ? (y/n) y
: ? (y/n) y
OLDsulog: ? (y/n) q
At the OLDsulog file I CTRL-C'd out of rm
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:45 AM
11-04-2003 02:45 AM
Re: Deleting a directory with no name
Do an
rmdir -i *.*
And make sure you reply NO to everything BUT this entry.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:45 AM
11-04-2003 02:45 AM
Re: Deleting a directory with no name
: ? (y/n)
Thanks,
Pramod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:46 AM
11-04-2003 02:46 AM
Re: Deleting a directory with no name
# ls -i /dir
find the inode number in the above command
# find /dir -inum xxxx -xdev -exec rmdir {} \;
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:46 AM
11-04-2003 02:46 AM
Re: Deleting a directory with no name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:46 AM
11-04-2003 02:46 AM
Re: Deleting a directory with no name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:50 AM
11-04-2003 02:50 AM
Re: Deleting a directory with no name
Do you run CDE ? Try to change the name from the file manager (dtfile).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:50 AM
11-04-2003 02:50 AM
Re: Deleting a directory with no name
ls >/tmp/tmp.out
open tmp.out and see the files. Remove all the entries you want to keep and leave out only those to delete.
add rm infront with awk and run that as a script.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:50 AM
11-04-2003 02:50 AM
Re: Deleting a directory with no name
For example, I did a mkdir and enterd a control-T. I can display it like this:
ls -l |cat -v
total 0
drwxrwxrwx 2 mgreene general 96 Nov 4 10:47 ^T
and now I an use rmdir to remove it by entering a control-V then a control-T and pressing enter.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 02:50 AM
11-04-2003 02:50 AM
Re: Deleting a directory with no name
ll -i | head -2 | vis
i'd see just how many invisible names there are first.
then you can use wildcards
rmdir -i *
or use find
find . -inum numberFromUsingll-i -exec rmdir {} \;
of course by using rmdir, the directory has to be empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 03:04 AM
11-04-2003 03:04 AM