Begining Bash Flashcards

1
Q

pwd

A

Print working directory

pwd -L displays logical path

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

What is the prompt?

A

Indicates who’s logged in, and where you are where your commands go

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

How do you enlarge text

A

cmd + +

To reduce text cmd + -

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

How do you clear scroll back

A

cmd + K

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

What does echo do

A

Writes to terminal

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

How can we use up and down arrows

A

Access previous commands

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

Go to start of command

A

ctrl + a

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

Go to end of command

A

ctrl + e

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

Move to specific character in command (terminal only)

A

Opt + click

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

Autocomplete

A

tab

if you tab tab shows possible matches

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

If you multiple windows open how you do cycle through windows

A

cmd + `

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

What do we mean by command structure

A

Its the syntax for writing commands

Command then option then arguments

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

Option for new line return

A

-n

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

With options how do you write these

A

there’s two ways

  • v
  • -version (the double dashes generally followed by keyword)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How can you write out multiple options

A

long form
ls -l -a -h Desktop

shortform
ls -lah Desktop

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

How do you access the unix manual

A

man

Press q to quit out of manual pages

17
Q

ls

A

list directory contents