Operating Systems > Linux and UNIX

Will I ever get this message in Linux?

<< < (3/3)

flap:
yes

Stryker:

quote:Originally posted by Dirk Gently:
If you simply enter the name of a file with no command, it assumes you are trying to execute it (as opposed to open/read it, i guess)?
--- End quote ---


it depends on if the file is in $PATH or not. If not, it won't do a thing with it unless u tell it to execute (./myfile) simply typing "myfile" won't do anything. and if u do ./myfile it won't execute unless the execute permissions are set. If you want to open/read a file, you need to use a program to do it. The most basic way, use cat. (cat myfile)

slvadcjelli42:
Oh, ok. I think I've got it now, thanks.  

Navigation

[0] Message Index

[*] Previous page

Go to full version