- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing hidden files from a directory
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
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
тАО05-29-2003 03:36 AM
тАО05-29-2003 03:36 AM
Removing hidden files from a directory
When I try to delete all files from a directory with wild character, the hidden files are not removed. How can this be done.
I know I can delete the hidden files explicitly by giving the name. But I don't want this to be done. I want some command with wild chars
Cheers!!!!!
Dipu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2003 03:37 AM
тАО05-29-2003 03:37 AM
Re: Removing hidden files from a directory
ls -i (* note inode number *)
find . -inum #### -exec rm {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2003 03:41 AM
тАО05-29-2003 03:41 AM
Re: Removing hidden files from a directory
you mean .files
# rm -- .*files
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2003 03:42 AM
тАО05-29-2003 03:42 AM
Re: Removing hidden files from a directory
this is tricky thing to do .
first you can do ls -q to see hidden char in this files .
after that you can try to do rm "*" -i to confirm the delete ( remember to use it or you will delete all files ) .
and you can also check this reply that help me that i had problem with this issue :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x838a107d277ad611abdb0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x962436e69499d611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2003 03:48 AM
тАО05-29-2003 03:48 AM
Re: Removing hidden files from a directory
# cd yourdir
# rm .[!.]* .??* *
The three regular expressions following the 'rm' should remove everything but the "." and the ".." directories.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2003 04:07 AM
тАО05-29-2003 04:07 AM
Re: Removing hidden files from a directory
This avoids the . and .. entries, and deletes everything else.