LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-19-2003, 07:13 PM   #16
Posty
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 15

Just wondering now... I actually got all my data backed up now... What would be a good size for a / partition? I was thinking maybe like 10GB would do it. I don't know... The 4GB ran out pretty fast... what do you guys think? I always like to have a / and a /home partition. Just so I can keep all my files in /home when I reinstall or something. So I can't just have one big one.
 
Old 12-19-2003, 07:15 PM   #17
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
Try using the 'sort' command with '-n' instead of 'n' and '-nr' instead of 'nr', like so:
Code:
du / | sort -n | tail -n 25 | sort -nr
 
Old 12-19-2003, 07:43 PM   #18
Posty
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 15
It works now.

root@Jenna:/home/krs# du / | sort -n | tail -n 25 | sort -nr
13879702
10370196 /home
10370172 /home/krs
8397392 /home/krs/stf
3909404 /home/krs/stf/msc
2778796 /usr
1375036 /home/krs/stf/msc/jaco
1200724 /home/krs/stf/prn
1171952 /home/krs/dcc
920080 /home/krs/stf/msc/queen
810120 /home/krs/stf/iso
768464 /home/krs/stf/prn/New Folder
723340 /home/krs/win2000Pro
704728 /usr/lib
698568 /usr/share
595200 /home/krs/stf/msc/amrs
569644 /home/krs/stf/gta3
502868 /usr/local
502752 /usr/local/games
502748 /usr/local/games/quake3
494260 /usr/local/games/quake3/baseq3
444484 /home/krs/stf/msc/pinkfloyde
332188 /var
331392 /home/krs/stf/prg
315240 /opt
root@Jenna:/home/krs#
 
Old 12-19-2003, 08:07 PM   #19
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Quote:
Originally posted by thegeekster
Try using the 'sort' command with '-n' instead of 'n' and '-nr' instead of 'nr', like so:
Code:
du / | sort -n | tail -n 25 | sort -nr
Thanks
Works fine that way.

Might I add using -h for a more readable format? (du -h / | etc... will display a more readable format using mb's for filesize rather than bytes)

Last edited by Scruff; 12-19-2003 at 08:56 PM.
 
Old 12-19-2003, 08:12 PM   #20
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
Quote:
Originally posted by Posty
It works now.

root@Jenna:/home/krs# du / | sort -n | tail -n 25 | sort -nr
13879702
10370196 /home
10370172 /home/krs
8397392 /home/krs/stf
3909404 /home/krs/stf/msc
2778796 /usr
1375036 /home/krs/stf/msc/jaco
1200724 /home/krs/stf/prn
1171952 /home/krs/dcc
920080 /home/krs/stf/msc/queen
810120 /home/krs/stf/iso
768464 /home/krs/stf/prn/New Folder
723340 /home/krs/win2000Pro
704728 /usr/lib
698568 /usr/share
595200 /home/krs/stf/msc/amrs
569644 /home/krs/stf/gta3
502868 /usr/local
502752 /usr/local/games
502748 /usr/local/games/quake3
494260 /usr/local/games/quake3/baseq3
444484 /home/krs/stf/msc/pinkfloyde
332188 /var
331392 /home/krs/stf/prg
315240 /opt
root@Jenna:/home/krs#
I notice you have quake installed in /usr/local/games. Try uninstalling it (your preferances are safely stored in your home folder; ~/.quake or similar) and then re-install it into your home directory. Games take up a lot of space so this might help :~]
 
Old 12-19-2003, 11:05 PM   #21
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
Quote:
Originally posted by Scruff
....Might I add using -h for a more readable format? (du -h / | etc... will display a more readable format using mb's for filesize rather than bytes)
Also, if you want to see what you may have in the way of large files, and not just directories, you can use the -a switch along with the -h switch, which can be combined into -ah:
Code:
du -ah / | sort -n | tail -n 25 | sort -nr
This will list files and directories using sizes other than bytes.
 
  


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
Redhat Enterprise 3 - full install is needed. conm Linux - Software 2 07-02-2005 11:06 AM
My hd is full ... boumbo Fedora 3 02-20-2005 06:06 AM
Which distributions do not support --full-time for ls (ls --full-time)? GCS Linux - Distributions 0 07-28-2004 01:25 AM
Conexcant full driver needed :( the_imax Linux - Hardware 2 05-12-2004 09:12 AM
/ = 98.5% full lachlan Linux - Software 1 06-17-2002 04:37 AM


All times are GMT -5. The time now is 05:20 AM.

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