User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

implicit paths?

Thu Oct 10, 2013 2:47 pm

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.
Dear forum: Play nice ;-)

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: implicit paths?

Thu Oct 10, 2013 2:48 pm

They mean exactly the same thing.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: implicit paths?

Thu Oct 10, 2013 2:55 pm

Thanks Joe!
Dear forum: Play nice ;-)

Return to “General discussion”