• Programming 11.07.2008

    The following command reports the number of files in the 2006 directory, including files in all subdirectories:

    find 2006 -type f | wc -l

    The following command deletes all the files in the 2006 directory, including files in all subdirectories:

    find 2006 -type f | xargs rm

    When both commands are in your bash history (left over from when you moved the 2005 directory), you should probably be careful before hastily executing one.

    Posted by Ben @ 8:52 am

  • One Response

    WP_Modern_Notepad
    • just pixels Says:

      The following command knocks some sense into careless users:

      “Tell me again how this happened.”

    Leave a Comment

    Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.