Teen Programmers Unite  
 

 

Return to forum top

how to check for free space on disk and...

Posted by yogirs [send private reply] at August 03, 2001, 08:56:39 AM

hi!
i am new to linux and i am reading linux programming guide. i have a question
1. how to check for free space in linux and
2. how to configure the resolution ( like 640x480, 800x600, etc in windows)?

let me know if you know
Please
YOGI

Posted by gian [send private reply] at August 03, 2001, 03:38:32 PM

It kinda depends on your Distro for the resolution... but the Disk space I can help you with.

"df" (without the quotes) will do the trick.

Posted by CHollman82 [send private reply] at October 01, 2001, 09:19:56 PM

Posted by gian [send private reply] at August 03, 2001, 10:35:33 PM

fine... system("df");

:-)

Posted by grandsnafu [send private reply] at August 04, 2001, 02:13:59 AM

For resolution, log in as root and type Xconfigurator (I think that's it). You can reconfigure everything about X, including setting up more supported resolutions. From within X, I think you can switch with [ctrl]-[alt]-+ I'm not sure though...and it all might depend on the distro.

Posted by nt543 [send private reply] at August 17, 2001, 12:54:36 PM

One way to change the resolution is to mess with the XF86Config file (look for man pages/books/other documentation on "XF86Config")

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.