LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2012, 06:03 AM   #1
aish11
LQ Newbie
 
Registered: Jan 2012
Posts: 14

Rep: Reputation: Disabled
having df command related question


Hi All,

When i have run the below command its showing 90% which is critical for production. for this i need the answer of some below question please help me for that.

1) i want to delete some unwanted files. how can i know the unwanted files ?Is it there any way of knowing this??

2)and also want to know from below output ,used and availble space are available in which format is it in KB,MB,GB.

3)How can i get the files whoes size is greater than 1000 mb



Code:
 
user01@rk02 var]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                        380807    149651    211496  42% /
/dev/sda1               101086     13235     82632  14% /boot
none                   1947736         0   1947736   0% /dev/shm
/dev/mapper/VolGroup00-LogVol05
                       8256952   3922220   3999188  50% /home
/dev/mapper/VolGroup00-LogVol01
                       2064208     35904   1923448   2% /tmp
/dev/mapper/VolGroup00-LogVol02
                      18062108   4231312  13096796  25% /usr
/dev/mapper/VolGroup00-LogVol03
                       1032088    877028    102632  90% /var
[
Thanks
 
Old 02-07-2012, 06:13 AM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
for the mb and gb you can do `df -h`

to know what is unwanted, you will have to go into various diretories, that you use to download files and do `du -h *`, then you will see what is taking up alot of space.Then from there make the decision whether its needed or not.
 
Old 02-07-2012, 07:25 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by aish11 View Post
1) i want to delete some unwanted files. how can i know the unwanted files ?Is it there any way of knowing this??

2)and also want to know from below output ,used and availble space are available in which format is it in KB,MB,GB.

3)How can i get the files whoes size is greater than 1000 mb
  1. Experience and local knowledge.
  2. The units are in the df output: "1K-blocks".
  3. The find command. But the /var file system is ~1000 MB (not mb which means one thousandth of a bit).
From the df output, /var is ~1 GB. That is not very big; you may be better off increasing its size than looking for unwanted files, if possible.

/var/log has log files, including old ones but they are usually managed by logrotate and are likely to grow back to the current total size again.
 
  


Reply



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
Question related to export command ggray Linux - Newbie 2 04-05-2011 08:58 AM
[SOLVED] I am requesting help related to the grep command srajeshkumar Linux - Newbie 5 12-13-2010 03:28 AM
[SOLVED] 3 related questions on bash command usage. lupusarcanus Linux - Newbie 23 01-06-2010 08:55 AM
information related to echo command mohit_parihar Linux - General 2 12-01-2009 07:06 AM
is there a command to check what files are related to a program? Blitzkrieg Linux - Software 3 11-12-2002 07:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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