Begining Bash Flashcards
pwd
Print working directory
pwd -L displays logical path
What is the prompt?
Indicates who’s logged in, and where you are where your commands go
How do you enlarge text
cmd + +
To reduce text cmd + -
How do you clear scroll back
cmd + K
What does echo do
Writes to terminal
How can we use up and down arrows
Access previous commands
Go to start of command
ctrl + a
Go to end of command
ctrl + e
Move to specific character in command (terminal only)
Opt + click
Autocomplete
tab
if you tab tab shows possible matches
If you multiple windows open how you do cycle through windows
cmd + `
What do we mean by command structure
Its the syntax for writing commands
Command then option then arguments
Option for new line return
-n
With options how do you write these
there’s two ways
- v
- -version (the double dashes generally followed by keyword)
How can you write out multiple options
long form
ls -l -a -h Desktop
shortform
ls -lah Desktop