Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Telling how much space left in linux

Name: Anonymous 2007-06-21 9:30 ID:XiFWnmBZ

On windows, I can easily know how much space is left on disk with DIR. But on this linux, ls doesn't show it. How do I tell?

Name: Anonymous 2007-06-21 9:41 ID:TO0ZsxjZ

sudo dd if=/dev/zero of=/dev/harddrivehere

Name: Anonymous 2007-06-21 9:56 ID:NkKl2ds4

Name: Anonymous 2007-06-21 10:53 ID:XiFWnmBZ

What in the fuck. So I want to know a simple thing like the space left in my fucking drive and I have to read man pages for sudo and lynx and use complicated commands like these? You must be kidding me. This is going worse than I thought, Linux is still years behind Windows in ease of use.

Name: ELITIST BASTARD 2007-06-21 11:50 ID:Heaven

>>4
first, shut up, you fucking noob.  if you actually did what >>2 suggested, a fate you deserve would happen to you and your data. 

second, depending on your desktop environment, there should be a disk free utility, I forget what KDE's is called (KDiskFree or something) but a simple search will tell you.

until you finally pull your head out of your ass and make time to do that, I will tell you linux has a simple command that does what you need, called 'df'.  open a terminal and type 'df -h' and you will get the information you want.  Also, if you can handle being educated, read the man page for 'du', as it is very useful for finding out how much room files and directories take on a disk.

Name: Anonymous 2007-06-21 11:51 ID:sRXSqsFw

df -h

Or use whatever tools your desktop environment offers; I don't know what you use so I can't help you there.

Name: Anonymous 2007-06-21 14:01 ID:a3ON9wXN

Oh Noes!  Don't make me learn something new!  OMG Why isn't linux just like Windows and DOS?  Learning the differences is unpossible!  If they would just create a search engine where I could type what I wanted and it would give answers! I'll call it "Google"  and I would just have to type "linux disk space" and the first result would give me my desired answer!!!!

Name: Anonymous 2007-06-21 14:34 ID:tvd7cTlE

>>6
Thanks. This df is confusing as fuck, but I think I know what number to read, it's the third number of the first column, right?

I have WindowMaker, didn't see its free space anywhere :(

>>7
But seriously, why does it have to be different? Why can't dir just work like Windows?

Name: Anonymous 2007-06-21 15:13 ID:sRXSqsFw

>>8

df doesn't seem confusing to me. It lists all the mounted drives, with clearly labeled columns listing the total size, space used, space available, percentage used, and mount point. Easy as pie.

Your main hard drive, assuming a typical Fedora/Ubuntu-style partitioning scheme (i.e. everything on one partition) is the row with a / in the last column, indicating that the volume is mounted at the root of the filesystem.

Name: Anonymous 2007-06-22 6:28 ID:+cCZx2q5

df -h -x tmpfs
or install xdiskusage

you can optionally tell df what directory you want it to base its  analyzing upon and it'll spit back info re the container fs (eg: df /home/urmom)

-x tmpfs makes df ignore silly things like udev and shm

Name: Anonymous 2007-06-22 8:47 ID:8zmFhoB+

YHBT by >>1,4,8

Name: Anonymous 2007-06-23 13:41 ID:uRl1lCOB

>>1,4,8
gb2windows

































































































































Don't change these.
Name: Email:
Entire Thread Thread List