Results 1 to 5 of 5
  1. #1

    File - Folder Size in linux

    If you want to know file/folder size every time then use below menthod:

    root:~# du -h --max-depth=1
    You could create an alias in .bashrc file and use it.
    alias fs='du -h --max-depth=0 $1' #fs=foldersize -requires ONE input
    root:~#fs log
    4.1G log
    Strat with Linux || Optimize, Secure and increase performance of Apache || Already Started
    The visionary conceives the impossible, The missionary makes it possible. ...Gita.

  2. #2
    Senior Member
    Join Date
    May 2009
    Posts
    179
    hmm… linux whatever also in command line, it really make me uncomfortable, i even need to issue a command to check a directory size.....

  3. #3
    Senior Member
    Join Date
    Sep 2008
    Location
    Montesano, Wa
    Posts
    285
    Actually linux commands are pretty nice, powerful to so yeah you have to be very careful.

  4. #4
    Senior Member
    Join Date
    Apr 2008
    Location
    USA
    Posts
    535
    Use following command to see disk usage of directory in MB. (Megabytes)

    Code:
    root:~# du -sh directoryname

  5. #5
    Registered User
    Join Date
    Aug 2009
    Posts
    1
    Thanks so much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.