Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    865

    Thumbs up Moving contents of a directory

    Quote Originally Posted by zontrakulla View Post
    Check
    Code:
    du -sh /home/*
    good, but how do i get top 10 users or how do sort from high user to lower

  2. #2
    Member ModServ's Avatar
    Join Date
    Oct 2006
    Location
    Egypt
    Posts
    228
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Drive Space Warning [ /dev/root (/var/named/chroot/var/run/dbus) ]

    You can do something like that

    Code:
    du -shc * | sort -n

    ModServ for Hosting & Web Services Solutions
    URL: http://www.modserv.com.eg

  3. #3
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Re: Drive Space Warning [ /dev/root (/var/named/chroot/var/run/dbus) ]

    no, its not sorting well, i want that GB should come first then MB & then KB

    below is the output for du -shc * | sort -n


    1.2M razor-agents-2.84
    2.0M rep.txt
    2.8M installalation_joomla
    4.0K cpmove
    4.0K csfbackup.sh
    4.0K dead.letter
    4.0K domainkeys_report.2011-01-08.log
    4.0K list.txt
    4.0K maildirsize.bkp
    4.0K public_ftp
    4.0K suphp.sh
    8.0K anaconda-ks.cfg
    8.0K install.log.syslog
    8.0K public_html
    8.0M installd
    8.2M pecl_http-1.6.1
    12K cpanel3-skel
    12K securenobody.rpm
    12K updatekernel-dn.sh
    15M tmp
    16K package.xml
    20K install.log
    24K package2.xml
    28K script
    32K thank-you?ext=tgz
    40M total
    176K pecl_http-1.6.1.tgz
    340K resultnew
    384K razor-agents-2.84.tar
    452K IP_aapnuamd
    584K wget-1.10.2-3.2.1.i386.rpm
    860K csfconffiles

  4. #4
    Member
    Join Date
    Jan 2011
    Posts
    505
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Drive Space Warning [ /dev/root (/var/named/chroot/var/run/dbus) ]

    Hey !

    You can simply execute du -sch * | grep G. This will display the dir's or files in Gb's.

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Moving contents of a directory

    I've moved these posts to a new thread with an applicable title that describes the issue. Please avoid posting to older threads unless the discussion pertains to the actual thread content. Opening a new thread will be more beneficial to ask a question in most all instances.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Re: Moving contents of a directory

    not finding yet, i want to sort directories/ files usage wise
    e.g 12 GB should come on top, then MB & KB
    Last edited by crazyaboutlinux; 04-20-2011 at 02:15 AM.

Similar Threads & Tags
Similar threads

  1. Moving a Domain/Site to sub directory domain?
    By devGOD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-20-2009, 01:02 AM
  2. Moving cpanel to another directory?
    By cYbErDaRk in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-10-2007, 11:31 AM
  3. Need contents of exim.pl
    By hariskhan in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-07-2007, 10:15 PM
  4. How to see emails contents
    By Stanleytiew in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-23-2006, 06:05 AM
  5. Any problems with moving a sites directory and linking to it?
    By PWSowner in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-04-2004, 12:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube