LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   linux bat file? (https://www.linuxquestions.org/questions/linux-general-1/linux-bat-file-346790/)

Shalk 07-25-2005 11:45 PM

linux bat file?
 
Is there such a thing as a linux version of the windows bat file where you could double click the file and it would execute a terminal command line?

nadroj 07-25-2005 11:55 PM

the closest thing to .bat files would be shell scripts
writing shell scripts

kencaz 07-25-2005 11:59 PM

Well, Linux eq of a .bat file would be a script... It's kindof the same thing...

I wrote many .bat windows files in the day and scripts in Linux basically do the same thing.. They, upon execution tell the computer to do things in a certain order.. one after the other...

I believe linux sripts are much more powerful then MS .bat files but for the avg user they basically have the same purpose...

do some google searches on linux CLI scripts...

KC

Kdr Kane 07-26-2005 10:07 AM

Windows/DOS interprets the .bat suffix on files as being executable. The file suffix or "extension" determines the file type.

In Linux, a file is marked as executable by the file permissions. The suffix has nothing to do with it. And a suffix isn't even necessary unlike Windows/DOS. The file type is determined by the operating system (lookup ELF).

Different concepts, different implementations.


All times are GMT -5. The time now is 06:44 AM.