• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/35

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

35 Cards in this Set

  • Front
  • Back

Terminal (shell)

program that reads user input from the command line and executes actions based on that input




Functions:


-1)communicate directly w/ the computer


-2)Navigate through the directories

command line

to execute a command

directory

folder

Path Name

Is a path and a name that lists the directories that it takes to get to a specific destination

-includes base name



Absolute Path

Path that begins at root




-always unique

Relative Path

Path that begins at the cwd




-no root, not unique

Argument

a modifier to a command

Script

Text based file with instructions for the computer to do something, written in a particular coding language.


-scripts are programs but long enough to be considered one


-evaluated top to bottom

Program

Text based file with instructions for the computer to do something, written in a particular coding language.


-long scripts.

Bash

Language of the terminal

Python


Mel


Renderman Shading Language

coding languages we'll use in our industry

bin

Folder that holds commands and executables

Math in the Terminal

•With the let command


-You have to set up variables


-ex: let VarA=VarB-Varc




•With $(())


-ex: echo $((1+))




-Symbols: /,*,+,-

$PATH

Lists directories where executables exist in linux




-there are specific folders in looks into


-to run this: echo $PATH


-enivronmental variable

Variable

A container for a given value

Variable Assignment

Giving contents to a variable (can be reassigned)

No "$" is necessary when assigning the value




-ex: VARIABLE=value or VARIABLE="value"


Variable Expansion

Accessing contents of a variable


"$" is necessary to expand variable




-ex: echo "$VARIABLE"

Variable Declaration
to specify a variable's data type



-by default bash assumes the data type is string


Notes w/ Variables

•These are inputs and their outputs


·Assuming NAME=Bob




-echo "$NAME" Bob


--the quotes expand the variable




-echo '$NAME' $NAME


--variable not expanded




-echo "\$NAME" $NAME




-echo "\\$NAME" \$NAME

Environmental Variable

Global, known in all terminals, access from anywhere, not unique to linux




-inputing "env" will show you all environmental variables




-$PATH




-"$NETHOME" is the variable for your stuhome (use cd $NETHOME to get to your stuhome)

Data type

Kind of information, a type of data


-Bash only has threes types: string, array, integer

String

Data type


Characters typed in or text. Needs quotations

Integer

Data Type


A whole number, no decimal places (otherwise, its a float)


-Allows you to do math

Array

A sequence of items




-can be used with the "for" command


-Are ordered and the items are indexed starting at "0"


-Can assign and access individual members

Float

Number with decimal places


-not technically able to exist in bash though there is a way around it.

Increment

to increase by a fixed amount, repectively

Pseudo Code

Mix of coding language and regular language to create a blue print for a script

Techniques for workflow/debugging

-version up


-divide and conquer


-start small, get it to work before writing a ton


-test it constantly

Branching

-Done with "if" statements


-condition is needed

Conditional

Evaluates to true or false and controls the flow of the script

"IF" statements

The conditions go in brackets and the command is ended with "fi". Can be used for flow control.




The four types:


-if




-if/else (typed: else)




-if/else if... (elif), can evaluate two or more conditions




-if/else if.../else

Flow Chart

Diagram, no code, showing what can happen on a script

Iterate

to say or do again and again



Expletive

curse word

Anathema

Something/one that is detested or loathed