Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    If the last file listed by /* were not a directory, nothing would have happened. Commented Jun 18, 2013 at 19:03
  • 1
    ... so if I had performed a touch zzz before any of this, I would have been fine? That's hilarious, rofl. Commented Jun 18, 2013 at 19:27
  • 8
    @ML Yes, or if you hadn't been doing that as root. That's the real lesson to take home. Commented Jun 18, 2013 at 19:38
  • 1
    @lgeorget /var, not /var/www. Do echo /* or ls -d /* to see the list. You probably did ls without the -d, which causes ls to list the contents of each directory given as an argument. Commented Jun 18, 2013 at 19:40
  • 1
    roots and wildcards are scary things, lesson duly noted @derobert :) Commented Jun 18, 2013 at 19:45