notes/IT/Scripting.md

8 lines
449 B
Markdown
Raw Normal View History

2024-05-30 18:01:43 +00:00
## Marking a script as executable
Sometimes, you may need to mark a script as an executable to run it. On Linux, this can be accomplished by `chmod +x [FILE]`, where `[FILE]` is the f
2024-05-30 18:00:43 +00:00
There are various shells with their own language syntax. Therefore, more complicated scripts will indicate a particular shell by specifying the absolute path to the interpreter as the first line, prefixed by `#!` like this:
```sh
#!/bin/sh
echo "Hello, World!"
```