Github, Git and Terminal Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How do I know where I am in terminal

A

terminal => pwd

also to Double check if moved in correct folder in Terminal

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

Double check if moved in correct folder in Terminal

A

pwd

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

show all folder in the current folder in terminal

A

ls (move through with tab)

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

show all folder in the current folder in terminal (with more detailed information)

A

ll

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

what does cd in terminal do

A

generally: move to another folder

only cd: move back to root directory

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

Go up/back to parent directory in terminal

A

cd..

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

Go up/back to parent directory of parent in terminal

A

cd…

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

new folder (directory) in terminal

A

mkdir name_of_folder

(need to be connected as otherwise 2 folders

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

prime rule in terminal when starting a project

A

make a new folder for each project

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

build a new file in terminal

A

touch

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

notarion for the current directory in ruby

A

.

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

remove file in terminal

A

rm foldername (but it will ask you to confirm)

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

remove file in terminal (shortcut without validation)

A

rm -rf

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

open current file in sublime text

A

stt

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

re-naimg files in terminal

A

mv old_name.rb new-

_name.rb

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

seeing the details of a certain file in terminal

A

cat file_name.rb

17
Q

run ruby file output in terminal

A

Ruby file_name.rb

18
Q

How can you retrieve a command you recently typed in your terminal?

A

Press ↑ up arrow until you retrieve it

19
Q

How do you go from current directory to any folder?

A
cd ../Eschults/lovely-hood     
### relative path from where you are
# or
cd ~/code/Eschults/lovely-hood 
### absolute path from your home directory