t

folder sizes

To list the size of the mailbox users (mail) is available;

du-h / home / users | awk '$ 1 ~ / M / {sub (/ M /, "Mb"); print $ 0}' | awk '$ 2 ~ /. Maildir $ / {print $ 0}' | sort-n

To list files larger than 20Mb

find /-type f-size +20000 k-exec ls-lh {} \; | awk '{print $ 9 ":" $ 5}'

To correct folder in the file name spaces, and uppercase letters;

# / Bin / bash
for f in *; do
file = $ (echo $ f | tr AZ az | tr '' _)
[! -F $ file] && mv "$ f" $ file
done

2009 Jun 13 2009

Published by at 12:09 pm Filed under Linux

Tags

awk axis bash bat batch files, big with the Open db2 delete autorun disk with the disk rotor dreambox du edg-nemesis find hidden mp3 ibm LMS WCL ibm ibm wcs Learning Management System lmsapi LMSRosterAPI maildir maildir you mp3 mysql nabilo open with passwd password remove all remove space in file rename reset reset password reset root root Skybox ssh ssh push vi vim vimproved workplace learning collaborative workplace

One response so far

One Response to "folder size"

  1. KattyBlackyard on 15 Jun 2009 at 9:16 am

    Hi, gr8 post thanks for posting. Information is useful!

Trackback URI | Comments RSS

Leave a Reply

Search