1839031 Members
3440 Online
110132 Solutions
New Discussion

file extensions

 
Vivek_28
Occasional Contributor

file extensions

i did a directory listing and found the files ending with *
ex: spi_db.xml*
spi_migrate.sh*
user_mon.cfg*

Can anyone let me know if these are any special character files.

//Vivek
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: file extensions

Hi Vivek,

c-shell executable files

ingres: echo $SHELL
/bin/csh
ingres: ls -la users.sql
-rwxrwxrwx 1 ingres ingres 4689 Dec 1 09:25 users.sql*

Regards,
Robert-Jan
H.Merijn Brand (procura
Honored Contributor

Re: file extensions

Are you sure you don't use (automatic) ls flags?

â F After each file name, put one of:

· A slash (/) if the file is a directory or a symbolic link
to a directory.
· An asterisk (*) if the file is executable;
· An atâ sign (@) if the file is a symbolic link to a file;
· A vertical bar (|) if the file is a fifo.

Enjoy, Have FUN! H.merijn
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: file extensions

rj, it has nothing to do with the shell. It's a property/feature of the ls command.

Depending on which version of 'ls' is used/called, some options might be defaulted from some shell, but in the end, it is still 'ls' that add's the options/characters.

I see the forum munged my paste, making it hard to read.

-F is the option to (almost all versions of) ls to show the extention character to filenames to indicate (draw extra attention to) the function of the file

* = executable
| = pipe/fifo
/ = directory
@ = symbolic link

GNU versions of ls also support the '=' extention and (a lot of) colouring options.

Enjoy, Have fUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Robert-Jan Goossens
Honored Contributor

Re: file extensions

Correct Merijn! sorry for the confusion Vivek.

ingres: echo $SHELL
/bin/csh
ingres: alias ls
ls -F

Thanks,
Robert-Jan