LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   *? (https://www.linuxquestions.org/questions/linux-newbie-8/%2A-171672/)

Longinus 04-18-2004 11:39 AM

*?
 
what does it mean when there is a * at the end of a filename?

e.g.

darkstar@Laptop:~/cpp/projects$ ls
project1.cc*

trickykid 04-18-2004 11:46 AM

I believe it means that its executable or has executable permissions set.

druuna 04-18-2004 11:48 AM

This is caused by 1 of the /etc/DIR_COLORS setting and tells you the file is executable.

The part of DIR_COLORS I'm talking about should look something like this:
# Extra command line options for ls go here.
# Basically these ones are:
# -F = show '/' for dirs, '*' for executables, etc.
# -T 0 = don't trust tab spacing when formatting ls output.
OPTIONS -F -T 0

Hope this helps.

Longinus 04-18-2004 11:52 AM

hrm.. that is strange since it is only a source file
oh well thanks anyway guys

druuna 04-18-2004 11:58 AM

If it has execute permissions, the * will show.
It doesn't look inside the file, just at the permissions and sets the flag accordingly.

Personally I don't see the point for setting this flag.


All times are GMT -5. The time now is 11:45 PM.