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
2
Q
how to get to windows desktop
A
cd /mnt/c/users/mike/desktop
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…
4
Q
how to access linux/bash from cmd?
A
in cmd:
bash
to exit:
exit