Announcement Announcement Module
Collapse
No announcement yet.
File Remove Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • File Remove

    Hi,

    I am getting an error message while trying to remove emails from an account using rm command, the account size is 1.2GB. How can I remove these emails using rm command.

    Error :- /bin/rm: Argument list too long.

    Please help.

  • #2
    Are you trying to delete emails inside the mail folder, say /home/user/mail/domain-name/mailbox-name/cur ?
    I think 'find' can help you in deleting more files exists in a folder.

    Can you try either of the following fixes:

    find . -type f -exec rm -fv {} ;
    OR
    find . -name "*.log" -print | xargs rm

    Comment

    Working...
    X