Re: what's the meaning of plain text file's executable attribute



DaVinci wrote:

Q1:
a plain text file name aa.txt
/home/apple/study/note $ ls -l aa.txt
-rwxrwxrwx 1 apple apple 42 Feb 28 20:02 aa.txt
My question is what's the meaningof a plain 's executable attribute
,it is "x" bit.

as I know,a plain text file can't be executed. only the executable
file ,such as /usr/bin/xpdf should have the attribute of 'x'. so there
is no meaning for the plain text file to have the 'x' attribute,is it
right?

Plain text files /can/ be executed. Many programming/scripting languages
run from plain text files. It's only what's in a file that determines
whether the x attribute is meaningful or not, not whether it's a binary
or a text file.

.



Relevant Pages