change permitions in user home
Smoot Carl-Mitchell
smoot at tic.com
Mon Aug 11 18:41:14 UTC 2008
On Mon, 2008-08-11 at 13:38 -0400, Doug Pollard wrote:
> OK, I am trying to change the permissions of maybe 30 out of a hundred
> files. How do I designate which files to change. I don't want to
> change them all. If I put in 755 will it change all the files that
> don't meet that criteria or standard. Is that the way it works?
You need to list the files individually or use wildcard matching. If
the file you want to change start with the letter 'a', you could match
all files starting with 'a' with something like:
a*
TO change the permissions on these files do:
chmod 644 a*
You can see what your wildcard matches by using the echo command like
this:
echo a*
You will get a list of all the files matching your wildcard. To get a
description of wildcard matching look at the man page for globbing which
is what the pattern matching was called in the old days of Unix.
man 7 glob
--
Smoot Carl-Mitchell
System/Network Architect
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005
More information about the ubuntu-users
mailing list