LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2004, 06:54 PM   #1
vidyaraj
LQ Newbie
 
Registered: Mar 2003
Posts: 12

Rep: Reputation: 0
knowing the disk space


Dear sir,
What is the command i need to use to know the disk space!!!!!!!
suppose for example if my disk is full what are the possible files I can delete.

is there any commands there !!!!!! if so i would like to know the command.
for example if i browse internet, in windows normally we remove all the files in temporary internet files, in suse 8.1 linux from which directory, where i can remove my files.
can remove the file messages in the path like /var/local/messages which is having the log information
thanks
vidyaraj
 
Old 03-07-2004, 06:59 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
df shows a list of all file systems and there used/avail space (df -h shows in "human readable form")

example
Code:
df -h 
Filesystem            Size  Used Avail Use% Mounted on
/dev/hde3              38G  9.0G   29G  24% /
/dev/hde4              74G   18G   56G  25% /home
/dev/hdg1              38G   26G   13G  68% /extra
Also, du will show the disk usage of a file or directory. I like to use the -hs switch which makes it "human redable" (h) and prints only the summary (s).
Example:
Code:
du -hs /usr/src
281M    /usr/src/
 
Old 03-07-2004, 07:48 PM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Re: knowing the disk space

Quote:
Originally posted by vidyaraj

suppose for example if my disk is full what are the possible files I can delete.

is there any commands there !!!!!! if so i would like to know the command.
for example if i browse internet, in windows normally we remove all the files in temporary internet files, in suse 8.1 linux from which directory, where i can remove my files.
can remove the file messages in the path like /var/local/messages which is having the log information
thanks
vidyaraj
I would delete the rotated logs something.<N>, (the <N> represents a number after the dot) except for the ksyms.<N> files. Your web browser should have an option to empty the cache, it will be somewhere in your /home/<user> directory, usually under some folder that may be hidden (start with a .) but will have cache in the name. An example in my case would be:

/home/fancy/.mozilla/default/mi7n1khj.slt/Cache

Removal commands
Remove directory, all folders and files and don't ask any questions about it, just do it:
rm -rf /path/to/directory
rm -R /path/to/directory
Remove a file:
rm /path/to/file
 
Old 03-07-2004, 07:59 PM   #4
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
or if u use kde there is KDiskFree
and there is a program called Filelight to show u graphically each folder is taking how much disk space

Last edited by heema; 03-07-2004 at 08:02 PM.
 
Old 03-08-2004, 04:54 AM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
There is also a programme called xdf that recursively scans the specified directory and presents you with a nice chart of what subdirs use how much space, sorted in order of size. It doesn't have any options what-so-ever to remove files, etc, etc, because that is the domain of a filemanager (or the command line), but it does do a good job at simply showing you your disk usage on a directory-by-directory basis.
 
Old 03-08-2004, 07:33 AM   #6
sergeantroach
Member
 
Registered: Aug 2003
Distribution: Windows XP Professional SP2/SUSE Linux 10
Posts: 122

Rep: Reputation: 15
Just type KDF in Konsole.
 
  


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
No DISK SPACE NOW! PLEASE HELP king of penguin Linux - Hardware 3 02-17-2005 03:41 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
disk space 0028webstera Linux - Newbie 7 01-13-2003 02:09 PM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 03:41 PM
Not Enough Disk Space mainyeti Linux - Software 2 07-30-2001 08:24 AM


All times are GMT -5. The time now is 08:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration