# displays the OS versionlsb_release-a# get information on running Ubuntumore/etc/lsb-release# add myuser in sudo group (sudo permissions)sudousermod-a-Gsudomyuser# see status of firewallsudoufwstatusverbose# list servicessudosystemctllist-units|grepmongosystemctllist-units--typeservice# look at current network ressource allocationnetstat-atun# look at installed packagesdpkg--get-selections# look for files or directories matching a patternsudoupdatedblocatemongod# go back to previous directorycd-# search in command history: Ctrl+R# display network config (ip)ipaddrshow# update packages and distributionsudoaptupdatesudoaptupgradesudoaptdist-upgradesudoreboot# check processor information (Intel, AMD or ARM for instance)lscpu
With Hyper-V Quick Create, select Ubuntu 18.04. DO NOT SET AUTO SIGN IN!
VM setup
# update package managersudoapt-getupdate# install samba for network sharingsudoaptinstallsambasudoaptinstallcifs-utils# install gitsudoaptinstallgit# install web front tools: NodeJS (including NPM)sudoaptinstallnodejsnpmnpm-v# and yarn: see https://yarnpkg.com/lang/en/docs/install/#debian-stablecurl-sShttps://dl.yarnpkg.com/debian/pubkey.gpg|sudoapt-keyadd-echo"deb https://dl.yarnpkg.com/debian/ stable main"|sudotee/etc/apt/sources.list.d/yarn.listsudoapt-getupdate&&sudoapt-getinstallyarnyarn--version# shutdown (to read a new value from hosts file for example)wsl-tubuntu