What does the star after a file name mean?

cnttbachkhoa , 2010/08/02 16:28 , Tutorial , Comments (2) , Reads (6488) , Via Original Large | Medium | Small
I'll give this a shot.  I have yet to encounter a file in UNIX ending  with '*'.  Usually * is a wildcard that can represent 1 or more  characters in a regular expression.

e.g  cp /* /home/*

would copy all files in that directory to the /home directory.  An easy  way to tell if a file is executable is to give the 'ls -l' command for a  long listing.  You may want to issue 'ls -l | more' if it's a large  directory.  Or alternatively 'ls -l | grep "filename".

In the first column you'll see something like this

-rwxr-xr-x  the 'x' is what determines who can execute the file.  The  first 3 spaces belong to 'owner' the 2nd 3 spaces belong to the 'group'  and the third 3 spaces belong to 'others'

the rwx represents the permissions for owner (rwx), group (r-x) and  others (r-x).  If you have permissions you can use the 'chmod' comand to  make the file executable, but the extension won't change.  (In UNIX any  file can be made executable)

Issue './"filename"' to execute the file.



Tags:
copy watches Homepage
2012/05/19 15:43
Some of the collections by Bulova Watches are 14K and 18K Gold Watches, Box Set Watches, Floral Aperture Watches, Marine Star Watches, Hand Wind Watches, Millenia Watches, Expansion Watches and plenty of other collections.
last minute
2011/04/11 19:54
jj
Pages: 1/1 First page 1 Final page
Add a comment

Nickname

Website (Optional)

Email (Optional)

You can also login with your OpenID:
Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]