- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How delete a file without 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
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
01-11-2006 09:19 PM
01-11-2006 09:19 PM
how can i delete files without name , look at this, is the line shown before message file:
$ ls -rlt
total 14
-rwxr-xr-x 1 USERONE users 113 Jan 10 13:32 environment.sh
-rwxr-xr-x 1 USERONE users 1759 Jan 10 16:23 messages.txt
-rwxr-xr-x 1 USERONE users 1407 Jan 11 18:09 message.ak
-rw------- 1 USERONE users 0 Jan 12 03:58
-rwxr-xr-x 1 USERONE users 1296 Jan 12 03:58 message
thanks, Manuales.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:36 PM
01-11-2006 09:36 PM
Re: How delete a file without name?
Check it.
ll -bv
ll | vis
Now ll -il
note down inode number (appears in first column)
now find
find . -inum "number" -exec ll -d {} \;
confirm above, then
find . -inum "number" -exec rm -i {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:44 PM
01-11-2006 09:44 PM
Re: How delete a file without name?
It is always some character in the name of the file. Here it is a non printable character. This can be seen by
#ll -b
And can be deleted by doing "rm -i *" in that directory and then removing the desired file or through inode number.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:50 PM
01-11-2006 09:50 PM
Re: How delete a file without name?
You can delete them using inode number which is unique.
# ls -i will display inode number.
# rm -i
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:54 PM
01-11-2006 09:54 PM
Re: How delete a file without name?
simply execute rm *.*.
Or for interactive rm -i and use inodes.
HTH,
prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:55 PM
01-11-2006 09:55 PM
Re: How delete a file without name?
find . -inum NNNN -exec rm {} \;
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:55 PM
01-11-2006 09:55 PM
Re: How delete a file without name?
probably rm -f -- " " should solve your problem.
Rgds,
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:58 PM
01-11-2006 09:58 PM
Re: How delete a file without name?
rm -i -- *.*
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 09:59 PM
01-11-2006 09:59 PM
Re: How delete a file without name?
rm -i -- *
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2006 10:11 PM
01-11-2006 10:11 PM
Re: How delete a file without name?
There isn't any file below the one beginning with "message" dated Jan 12 03:58.
List this directory with:
# ls -lb
...to expose the non-printing characters that follow (or even spaces!).
Then, follow the technique of removing or renaming a file by inode that we discussed here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=988269
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2006 12:50 AM
01-12-2006 12:50 AM
Re: How delete a file without name?
also, if you have a graphics console, you can browse to the directory and select+delete the file.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2006 01:29 AM
01-12-2006 01:29 AM
Re: How delete a file without name?
http://www.helpdesk.umd.edu/topics/troubleshooting/os/unix/1231/
You can delete via the inode number:
ls -ali *
find ./ -inum ###### -exec rm -i {} \;
where ###### is the inode number of the file witout a name.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2006 06:32 AM
01-12-2006 06:32 AM
Re: How delete a file without name?
all things were correct !!!
Manuales.