Easy way to see how much disk space takes up - do you know of one?
Anti, pardon my ignorance but that went over my head in light speed. I need some instructions cause I don't have a clue what "du" is or what exactly I do with it.
----------
Get listed on a search engine/directory within 24 hrs. FREE!
http://www.birminghamnet.com/cgi-bin/links/pages/
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
fairhousing posted this at 22:46 — 25th May 1999.
They have: 1,587 posts
Joined: Mar 1999
Is there a script out there or something that will help me see what exactly is taking up so much disk space. Currently, the only method I have for seeing how much each takes up is by looking at each file individually. Is there a way to rank them according to how much space they take up, so the biggest will be listed first. I understand if you think this post is incoherent, it's a bit past my bedtime.
----------
Get listed on a search engine/directory within 24 hrs. FREE!
http://www.birminghamnet.com/cgi-bin/links/pages/
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
Anonymous posted this at 22:53 — 25th May 1999.
They have: 5,633 posts
Joined: Jan 1970
the du-function is supposed to show you the size of each file or directory on your devices on a unix-system.
for example, to show the size of all files in bytes type:
du -b
to create a file and write the results into it (might be very useful since you will probably not be able to read faster than the computer prints )type:
du -b >filename.txt
by the way, you can get help from unix by typing:
man du, this will print the manual for the du-command or use:
du --help to get a short summary
cu
patrick
anti posted this at 23:23 — 25th May 1999.
They have: 453 posts
Joined: Jan 1999
on a unix host i wouldn't even consider using perl.
try:
du
or du -s
or du -s sort -n
I like the last one. It tell's you which are the biggest sub-dirs of the current dir.
In perl I'd use the dir-traversing module and stat every file, but that's very slow. Try using du.
(Even if you use a windows-host - why should you - there is a du.exe somewhere out there.)
ciao
Anti
anti posted this at 23:02 — 26th May 1999.
They have: 453 posts
Joined: Jan 1999
thanx for stepping in pat.
the "-s" option just shows the sum.
there should be a pipe ("") between du -s and sort -n,
this will sort the output of du -s assuming that the first column is numeric.
ciao
anti
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.