file system full

Need step by step instructions on how to solve this. I have a 37 gig harddrive and I think it's just full of log files. How do I find the largest files and do I just rm filename? I run freebsd.

bash-2.05# cd /var
bash-2.05# ls -lt | head
total 18
drwxr-xr-x 3 root wheel 2048 May 5 00:00 log
drwxr-xr-x 2 root wheel 512 May 4 03:03 run
drwxr-xr-x 2 root wheel 512 May 4 03:01 account
drwxr-x--- 2 root wheel 512 Apr 19 03:01 backups
drwxrwxr-x 2 root mail 512 Apr 18 07:16 mail
drwxrwxrwt 3 root wheel 512 Apr 18 07:16 tmp
drwxr-xr-x 2 daemon wheel 512 Jan 28 13:56 msgs
drwxrwxr-x 5 root games 512 Jan 28 05:51 games
drwxr-xr-x 3 root wheel 512 Jan 28 05:51 db
bash-2.05# ls
account crash games mail run tmp
at cron heimdal msgs rwho yp
backups db log preserve spool
bash-2.05# cd log
bash-2.05# ls
console.log lastlog messages.12.gz messages.6.gz sendmail.st.6
console.log.0.gz lpd-errs messages.13.gz messages.7.gz sendmail.st.7
console.log.1.gz maillog messages.14.gz messages.8.gz sendmail.st.8
console.log.2.gz maillog.0.gz messages.15.gz messages.9.gz sendmail.st.9
console.log.3.gz maillog.1.gz messages.16.gz mount.today setuid.today
console.log.4.gz maillog.2.gz messages.17.gz ncftpd slip.log
console.log.5.gz maillog.3.gz messages.18.gz ppp.log userlog
cron maillog.4.gz messages.19 security wtmp
cron.0.gz maillog.5.gz messages.2.gz sendmail.st wtmp.0
cron.1.gz maillog.6.gz messages.20.gz sendmail.st.0 wtmp.1
cron.2.gz maillog.7.gz messages.21.gz sendmail.st.1 wtmp.2
cron.3.gz messages messages.22.gz sendmail.st.10 wtmp.3
dmesg.today messages.0.gz messages.23.gz sendmail.st.2 xferlog
dmesg.yesterday messages.1.gz messages.3.gz sendmail.st.3
ipfw.today messages.10.gz messages.4.gz sendmail.st.4
ipfw.yesterday messages.11.gz messages.5.gz sendmail.st.5

bash-2.05# df -k
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/da0s1a 32705558 30544480 -455366 102% /
procfs 4 4 0 100% /proc

 

 

 

 

Top