Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
57
rated 0 times [  57] [ 0]  / answers: 1 / hits: 64197  / 2 Years ago, fri, july 29, 2022, 4:03:25

I have noticed that some of my files have an asterisk at end.



Does the asterisk at the end have any particular significance? I think they are mostly executable and displayed in green by the ls command.



You will see that ./bkmp* and ./bkmp0* have an asterisk at the end. They are executable bash scripts.



Here's my output:



drwxr-xr-x 7 username username  4096 Oct  2 18:28 ./
drwxr-xr-x 8 root root 4096 Oct 2 09:25 ../
-rw-r--r-- 1 username username 3724 Sep 22 03:06 .bashrc
-rwxr--r-- 1 username username 319 Sep 22 03:42 .bkmp*
-rwxr--r-- 1 username username 324 Sep 29 23:30 .bkmp0*
drwx------ 2 username username 4096 Sep 17 13:52 .cache/
-rw-r--r-- 1 username username 675 Sep 17 13:37 .profile
drwx------ 2 username username 4096 Sep 22 10:10 .ssh/
drwx------ 2 username username 4096 Sep 24 19:49 .ssh.local/
drwxr-xr-x 2 username username 4096 Sep 22 04:10 archives/
drwxr-xr-x 3 username username 4096 Sep 24 19:51 home/
-rw-r--r-- 1 username username 27511 Sep 24 19:51 username_backup.20120924_1908.tar.gz

More From » filesystem

 Answers
7

If you are just using ls with no arguments, it appears that you are using an alias for ls. To get the same output, I need to use ls -lF. From the ls manpage:



-F, --classify
append indicator (one of */=>@|) to entries

-l use a long listing format


The symbols mean the following:



/: directories
@: symbolic links
|: FIFOs
=: sockets
*: executable files


To test if you are using an alias, use alias ls. Mine (which is the Ubuntu default) says:



$ alias ls
alias ls='ls --color=auto'


More information on using aliases can be found here.


[#35179] Saturday, July 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rialhirt

Total Points: 422
Total Questions: 113
Total Answers: 120

Location: France
Member since Sun, May 15, 2022
2 Years ago
;