All Flashcards

1
Q

shutdown, restart

A

sodu shutdown -r now, sodu shutdown -h +60 (in 60min), sodu reboot

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

open application, open file with specific application

A

open -a iTunes (without knowing path!), open [file/path] -a TextEdit

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

keyboard shortcuts: switch between browser tabs, open new tab

A

ctrl + tab, ctrl + shift +tab, command + [numbers], command+t

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

keyboard shortcuts: switch between applications

A

command + tab

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

check/change/display content directory

A

pwd, cd [folder], cd ~/ (go back to home directory) ls

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

add a new directory to you PATH

A

sudo nano /etc/paths , add new directory at the bottom, , run echo $PATH

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

change directory to you home folder

A

cd ~/

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

show the manual for a command, exit again

A

man [command], e.g. man ls , press shift+q to exit

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

create new empty file

A

touch [file name]

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

open file in nano

A

nano [file name]

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

check the version of something

A

[something] –version

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

delete files

A

rm [file name]

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

keyboard shortcuts: Close tab

A

Command+W

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

view path where smth is installed

A

which python3

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

make directory / create a folder

A

mkdir [directory path]

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

add directory to your PATH

A

cd ~/ , nano .profile , export PATH=”/usr/local/opt/python/libexec/bin:$PATH”