From 5575e4a0e99cf7e9b0bea843ee84cf3ce170e448 Mon Sep 17 00:00:00 2001 From: zleyyij Date: Thu, 30 May 2024 12:02:43 -0600 Subject: [PATCH] vault backup: 2024-05-30 12:02:43 --- IT/Scripting.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IT/Scripting.md b/IT/Scripting.md index 34e8b18..5598dfa 100644 --- a/IT/Scripting.md +++ b/IT/Scripting.md @@ -1,7 +1,8 @@ ## 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 +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 file you want to mark as executable. To unmark a file as executable, use `chmod -x` -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: +## The shebang +There are various shells with their own language syntax (`sh`, `bash`, `fish`, etc). 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!"