I'm new to Linux, so sorry for my simple question. I'm on Ubuntu.
I have this directory:
$ ls -al
total 16
drwxr-xr-x 2 alberto alberto 4096 2011-04-03 16:02 .
drwxr-xr-x 4 alberto alberto 4096 2011-04-03 16:01 ..
-rw-r--r-- 1 alberto alberto 7 2011-04-03 16:02 .hidden
-rw-r--r-- 1 alberto alberto 4 2011-04-03 15:51 testfile
When I run du, I'm expecting this:
$ du
4 testfile
4 .hidden
But I'm getting this:
$ du
12 .
$ du *
4 testfile
$ du .*
12 .
20 ../snippet
12 ../test
52 ..
4 .hidden
Why is this happening?
du *turns intodu testfileanddu .*turns intodu . .. .hidden. This is why * always works and always works in the same way. – XTL Jun 8 '12 at 7:25