Page 1 of 1

implicit paths?

Posted: Thu Oct 10, 2013 2:47 pm
by abishur
I was talking to someone yesterday about chown/chgrp/chmod and was telling them to change all the files in a directory to your ownership enter

Code: Select all

sudo chown <your_username> ./*
someone else chimed in with the question couldn't you just write

Code: Select all

sudo chown <your_username> *
And honestly I don't know. Can you do that? I know at the end of the day I personally dislike going that far with implicit path declarations (I'm looking at you ~/ !) and would much rather use ./* to specifically state "in the folder I am in right now do X", but I'd like to know if the * by itself would work properly.

Re: implicit paths?

Posted: Thu Oct 10, 2013 2:48 pm
by Joe Schmoe
They mean exactly the same thing.

Re: implicit paths?

Posted: Thu Oct 10, 2013 2:55 pm
by abishur
Thanks Joe!