L19 - T19D - S1 – Shell Scripts

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

9 Terms

1
New cards

The 3 general types of coding language

  • Shell Scripting Language

  • General Purpose Scripting Language

  • Programming Language

2
New cards

Shell scripting language

Type of coding language

  • Uses commands that are specific to an operating system.

3
New cards

General-purpose scripting language

Type of coding language

  • Uses statements and modules that are independent of the operating system

  • This type of script is executed by an interpreter

    • The interpreter implements the language for a particular OS

4
New cards

Programming Language

Type of coding language

  • Used to compile an executable file that can be installed to an OS and run as an app

5
New cards

Glue Language

  • Used to automate and orchestrate functions of multiple different OS and app software

    • Rather than implement an independent bit of software (as a programming language would)

  • The various types of scripting are often described as [_____]s

6
New cards

Script

Series of simple or complex commands, parameters, variables, and other components stored in a text file and processed by a shell interpreter – (A+)

  • For complex [____] and programming languages, an IDE would be of great use as it provides

    • Autocomplete features to help you write and edit code

    • Debugging tools to help identify whether the script or program is executing correctly

  • Can be developed in any text editor

    • An editor with [____] support can parse the syntax of the [____] and highlight elements of it

7
New cards

.SH Extension

  • Extension for a Linux shell script file format

  • The shebang in the first line of the script identifies the shell type (Bash, for instance) – (A+)

    • Every shell script starts with a “shebang” line that designates which interpreter to use e.g. Bash or Ksh

8
New cards
  • Permission

  • Run

  • In Linux, the script file must have the “execute” ___1___ set to ___2___

    • “Execute” can be set as a ___1___ for the user, group, or world (everyone)

9
New cards
  • PATH

  • Working

  • If a ____ variable to the script has not been configured, execute it from the _____ directory by

    • Preceding the filename with ./ e.g. ./hello.sh or

    •  Use the full path

<ul><li><p>If a ____ variable to the script has not been configured, execute it from the _____ directory by </p><ul><li><p>Preceding the filename with <code>./</code> e.g. <code>./hello.sh</code> or </p></li><li><p> Use the full path</p></li></ul></li></ul><p></p>