8. Executable Files and Scripting in Linux Flashcards

1
Q

What is always the first line of a script file?

A

The shebang or bang line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a shebang or bang line?

A

It tells which interepreter should be used for the execution of the file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the representation of a shebang?

A

#!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do I execute a script?

A

By just entering its absolute or relative path.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the command to add a new path to the PATH variable?

A

export PATH=$PATH:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly