GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   linux server command question.... (https://gfy.com/showthread.php?t=351836)

acctman 09-04-2004 02:21 PM

linux server command question....
 
is there a command that will show the directory on a server that is using the most HD space. there is about 30-40gigs used up somewhere on my server that is not apart of my websites.

Brujah 09-04-2004 02:23 PM

man find
http://www.geocities.com/tipsforlinux/articles/21.html

man du
http://www.geocities.com/tipsforlinux/articles/22.html

DatingGold 09-04-2004 02:25 PM

du

will take a bit to run

Linguist 09-04-2004 02:27 PM

du | sort -nr | head

off top of my head.. there's probably a better way to do it

acctman 09-04-2004 02:49 PM

thanks i ended up using the du command

cd /
du -sh *

i found out mysql has like 43gb of nmx-bin.001-146 files. i'm thinking its a backup of all the databases on the server everyday dating back to feb.

AndrewKanuck 09-04-2004 04:03 PM

du -ks `ls`

vending_machine 09-04-2004 04:44 PM

Quote:

Originally posted by acctman
thanks i ended up using the du command

cd /
du -sh *

i found out mysql has like 43gb of nmx-bin.001-146 files. i'm thinking its a backup of all the databases on the server everyday dating back to feb.

Those are logs, either just general logs or replication logs. You can purge them:

http://dev.mysql.com/doc/mysql/en/PU...STER_LOGS.html


All times are GMT -7. The time now is 04:46 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123