print file size command.

Hints HOWTOs UNIX

Earlier today I was asked for the command to show a file size in UNIX and so I thought I would share. There are, of course, a few ways to do this. One great little command to keep handy is:du -h. The du (display utility) will print out the size of a file or directory. The -h will make it “human readable” (put the sizes in Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte). So, next time you need file or directory sizes, use du -h and be done with it!

Leave a Reply

Your email address will not be published.
*
*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Life

Walgreens Online Photo Center

Since I purchased a digital camera a few years ago, I never had the need to print photos out. Any photo that I really liked ended up on my web site or as a desktop picture. Now that I have a baby – and multiple people who would like printed photos, I decided to it […]

TV

Hello Sony Grand Wega!

This has been a very exciting month for me. Multiple people asked me what I wanted for my birthday and Christmas and since my primary focus was on my son Evan’s birth and the end of Amy’s pregnancy, I kept telling everyone if they wanted to get me something, just get my a AmEx gift […]