Find the answer to your Linux question:
Results 1 to 2 of 2
Hi to all I created a script where you input a user, it will summarized all the subdir in the Maildir dir. However, I don't have an idea how I ...
  1. #1
    Linux Newbie
    Join Date
    Mar 2006
    Posts
    101

    how to display files in Maildir directory of all user

    Hi to all

    I created a script where you input a user, it will summarized all the subdir in the Maildir dir. However, I don't have an idea how I will display the size of all user's subdir in Maildir dir without inputting any user. Below is my sample script:
    #!/bin/bash
    # Display designated size files

    echo -n "Type user: "
    read input
    du -hc /home/$input/Maildir
    TIA

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,789
    Quote Originally Posted by packets
    Hi to all

    I created a script where you input a user, it will summarized all the subdir in the Maildir dir. However, I don't have an idea how I will display the size of all user's subdir in Maildir dir without inputting any user. Below is my sample script:
    What is the output of the command? Maybe change the -hc for -hs in the du command.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

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