When I do a ls
in a folder, I sometimes get entries like:
a.txt*
b.txt
b.txt~
I believe:
~
means that it's a swap copy, however what does the * mean?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityYour ls
seems to have an alias to ls -F
. It shows the filetype:
* for executable
/ for directory
@ for symlink
| for fifo
= for socket
~
is not listed here. It is a part of the file name, not just an indicator of type.
It means that the file has execute permission.
See the "-F, --classify" option in the ls(1) man page. Depending on the shell configuration this info may be printed by "default" (say, if you have an alias ls="ls -F").
alias ls
and send the output?type ls
(just in case it was a function and not an alias).