- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to delete massive amount of zero byte files
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-24-2002 08:09 AM
11-24-2002 08:09 AM
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 08:39 AM
11-24-2002 08:39 AM
Re: How to delete massive amount of zero byte files
# find /common/out -type f -size 0c | xargs rm -f
OR
# find /common/out -type f -size 0c -exec rm -f {} \;
repeat for "/common/log". You might want to test it first by replacing "rm -f" with "ls -l" first to make sure it's listing zero size files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 09:04 AM
11-24-2002 09:04 AM
Re: How to delete massive amount of zero byte files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 09:30 AM
11-24-2002 09:30 AM
Re: How to delete massive amount of zero byte files
When I try the 2nd command you shared, it doesn't complete. appldevl@dbserv1:/u001/app/appldevl/appltop/common/out>find /common/out -type f -size 0c -exec ls -l {} \;
find: cannot stat /common/out
We are running 11.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 09:44 AM
11-24-2002 09:44 AM
Re: How to delete massive amount of zero byte files
Is /common/out an NFS mount?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 11:21 AM
11-24-2002 11:21 AM
Re: How to delete massive amount of zero byte files
find: cannot stat /common/out is the return whether I'm @ / as root, or @ /u001/app/appldevl/appltop/common/out as root
I want to say that /common/out is FxVS but what can I check to be certain? I'm looking through SAM/Disks & File Systems for /u001 where our /common/out files reside and only see NFS type for /cdrom.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 11:39 AM
11-24-2002 11:39 AM
Re: How to delete massive amount of zero byte files
cd u001/app/appldevl/appltop/common/out
and then do a
bdf .
or
bdf /u001/app/appldevl/appltop/common/out
What is the logical volume?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 11:49 AM
11-24-2002 11:49 AM
Re: How to delete massive amount of zero byte files
Filesystem kbytes used avail %used Mounted on /dev/vgora2/lvol1 18432000 17545604 872584 95% /u001
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 12:06 PM
11-24-2002 12:06 PM
Re: How to delete massive amount of zero byte files
find /common/out -type f -size 0c -exec rm -f {} \;
right? If so, then try this:
cd /u001/app/appldevl/appltop/common/out
find . -type f -size 0c -exec rm -f {} \;
or
find /u001/app/appldevl/appltop/common/out -type f -size 0c -exec rm -f {} \;
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 12:08 PM
11-24-2002 12:08 PM
Solutiongrep u001 /etc/fstab
and the result will tell you the "type" of filesystem. Also for more info on the "filesystem"/"Logical Volume" do this:
lvdisplay -v /dev/vgora2/lvol1 | more
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 12:37 PM
11-24-2002 12:37 PM
Re: How to delete massive amount of zero byte files
Thank you! Now I feel confident that using the rm -f will ONLY remove those files and no others.
Thank you so very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2002 12:42 PM
11-24-2002 12:42 PM
Re: How to delete massive amount of zero byte files
Happy hunting :-)
live free or die
harry