LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

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
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

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

Quote:
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 ....

Quote:
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.

Quote:
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.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 04:04 PM.

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