Linux Flashcards

1
Q

how to update and upgrade packages to the latest versions of everything

A

sudo apt-get update
and then:
sudo apt-get upgrade

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

how to get to windows desktop

A

cd /mnt/c/users/mike/desktop

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

how to create an alias to windows home directory?

A

$cd (get back to linux)

$ nano ~/.bashrc (~ means ‘home directory’)

add under esac:
alias winhome = ‘cd /mnt/c/users/mike/desktop’

$ source ~/.bashrc (sources file for changes to take effect)

now you can just use $winhome to get to where you wanna be…

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

how to access linux/bash from cmd?

A

in cmd:
bash

to exit:
exit

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