Search exams, classes and guides
Search...
English
Sign in
Sign in
Home
Practice
Discover
Performance
More
CompTIA Linux+ XK0-006
Automation, Orchestration, and Scripting
Card 39 of 113
39 / 113
A script that begins with the line #!/bin/bash and is run through its file name is interpreted by the kernel loading /b…
Front
A script that begins with the line #!/bin/bash and is run through its file name is interpreted by the kernel loading /bin/bash, and the shebang line must be placed after a blank line at the top of the file for it to take effect.
Back
The shebang must be the very first two bytes of the file, with no blank line or whitespace before it. If anything precedes #!, the kernel does not treat it as an interpreter directive, and the line is read as a plain comment by the shell.
Show the back
Press the card to see the back
Study this deck