Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-02-2008, 03:33 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 15

Rep: Reputation: 0
deleting file by exact size

I have many files in my computer having same size with decimal like 183.9k. How can i delete from my computer.
Old 04-02-2008, 03:56 AM   #2
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
You may use the following commands:

du -b filename (to know size in bytes )
find /path -type f -size size-in-bytes%c
if you are satisfied with the output then remove the files using ....

find /path -type f -size size-in-bytes%c -exec rm {} \;
I have added the % sign just to let you know it is there....You need to use the command after removing the % sign.

Originally Posted by drpaudel View Post
I have many files in my computer having same size with decimal like 183.9k. How can i delete from my computer.


delete, deleting, file, files, size

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to cut exact words within a file luzner Linux - Newbie 2 07-25-2007 08:15 AM
Exact format of quota-file Marc Thoelen Linux - Server 0 07-23-2007 04:42 AM
Find/locate an exact file stefaandk Linux - General 2 12-27-2005 07:56 AM
how can one know the exact file type using a sys call? mohit_garg Linux - Software 1 11-15-2005 10:01 PM
Can't recognize my exact harddisk size ! ericmacau Linux - Hardware 2 09-23-2003 05:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration