LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-14-2011, 05:18 AM   #1
shogun1234
Member
 
Registered: May 2004
Posts: 226

Rep: Reputation: 15
Clean files


I tested to install lustre file system, but then noticed that the disk space is not large enough to compile source (10G with vbox). Then I remove some lustre related files; however, I notice that the original file system (ext) is still occopied by something.
Code:
/dev/sda1             9.4G  7.1G  1.9G  80% /
However, checking with find command
Code:
find / -type f -size +50M -exec ls -alh  {} \;
shows

Code:
-rw-r--r-- 1 root root 73M Aug 27 20:45 /usr/src/linux-source-3.0.0.tar.bz2
-r-------- 1 root root 1018M Nov 14 19:13 /proc/kcore
find: `/proc/1985/task/1985/fd/5': No such file or directory
find: `/proc/1985/task/1985/fdinfo/5': No such file or directory
find: `/proc/1985/fd/5': No such file or directory
find: `/proc/1985/fdinfo/5': No such file or directory
-rw-r--r-- 1 user user 1.9G Sep 16 15:16 /home/user/important.file
Sum up with the files larger than 50M, still there are around 3-4G missing. How can I make sure what files/ process consume large space? And release them?

Thanks.
 
Old 11-14-2011, 06:12 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Code:
find / -type f -size +50M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
or

Code:
#find / -size +50M -exec du -h {} \;

Last edited by deep27ak; 11-14-2011 at 07:03 AM.
 
1 members found this post helpful.
  


Reply


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 limit the total size of core files and automatically clean old core files? sadasreddy Linux - Embedded & Single-board computer 1 05-27-2011 11:51 AM
LXer: Use the Bash trap Statement to Clean Up Temporary Files LXer Syndicated Linux News 0 05-06-2009 01:00 AM
Do have to clean temp.files, ....? schneemann SUSE / openSUSE 3 01-16-2006 11:05 PM
hwo to clean up files after unsuccessful "./configure" b0nd Linux - Newbie 4 08-09-2005 01:03 PM
General Advice on keeping your files structured and clean. hamster Linux - Software 2 04-10-2003 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration