Operating System - HP-UX
1830894 Members
2345 Online
110017 Solutions
New Discussion

* characters against executable files

 
SOLVED
Go to solution
Shivkumar
Super Advisor

* characters against executable files

Hi,

i noticed * character against some executable file names.
In hpux i didn't notice but on solaris i saw these * characters against the executable file names such as shell scripts etc.

Why solaris shows these but not hpux ? Is it due to bash shell or something else ??

Thanks,
Shiv

5 REPLIES 5
Andrew Merritt_2
Honored Contributor
Solution

Re: * characters against executable files

It's the effect of the '-F' option to 'ls'. I suspect that on the system you see the asterisks that 'ls' is an alias or other way of invoking the base command with the '-F' option enabled.

Andrew
James R. Ferguson
Acclaimed Contributor

Re: * characters against executable files

Hi Shiv:

As Andrew notes, the '-F' option of 'ls' adds a "/" to the dend of directory names; a "*" to the end of executable files; a "|" to the end of files that are pipes; and a "@" to the end of file names that are symbolic links.

Some folks like to alias 'ls' in their profile to enable this by default.

# alias ls='ls -F'

You can easily see this by doing:

# alias

Regards!

...JRF...
spex
Honored Contributor

Re: * characters against executable files

Shiv,

Also be aware that shorthand versions of the 'ls' command with various options specified exist. For instance, 'lsf' is shorthand for 'ls -F'. From ls(1):

ls is known by several shorthand-version names for the various
formats:

l is equivalent to ls -m
ll is equivalent to ls -l (ell)
lsf is equivalent to ls -F
lsr is equivalent to ls -R
lsx is equivalent to ls -x

The shorthand notations are implemented as links to ls. Option arguments to the shorthand versions behave exactly as if the long form above had been used with the additional arguments.

PCS
Raj D.
Honored Contributor

Re: * characters against executable files

Shiv,

You can get somemore details with,

# man lsx
or
# man lsf


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Steven E. Protter
Exalted Contributor

Re: * characters against executable files

Shalom,

This is an environment issue that I've successfully ignored for 10 years with no ill effects.

Its nothing to worry about. I've seen it on hpux as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com