sudo apt-get install <pkg name>install packagesudo apt-get remove <pkg name>remove packageapt list | grep <txt to search>search currently installed packagesxkillkill an unresponsive window w. mousetouchto create file,mkdirto create dirrmto delete file,rmdirto delete dirrm -rf <path>recursively deletes dir and suppresses warning (can be dangerious.rm -rf /would delete everything. use with caution)
ls(list),ll(list w. details)man <cmd name>show manual pagesubl <path>open in sublimeirbinteractive ruby shell; typeexitto exit (Ctrl + C does nothing)<many commands>followed by-hor--helpor-?show version of that command/programgit commit -a -m "<commit message>"add all to staging and then commitsudo rebootrestart computerpwdprint working directory, i.e. path of current dir in file systemcat <file path> | xclipcopy contents of trg to clipboardnautilus <path>open in graphical file explorerwget -qO- <url> | lessprint HTTP response to terminal (paginated withless)subl ~/.aliasesedit list of aliasesalias pag="less -RS#3NM~g +Gg"alias ip-public="curl ipinfo.io/ip"
alias | lessprint all aliasesexport VARNAME=valueset environment variableunset VARNAMEdelete environment variableprintenv | lessprint all environment variablescurl <url> > <new file path>create new file from response to HTTP request to given URLgit reset HEAD^revert last commit and put changes back into staginggit reset --hard HEAD^revert last commit and discard changes
systemctl suspendsuspend/sleep computerhistoryshow history of other commands entered into terminalhistory -<num>only show lastnumcommands
- Ctrl + Shift + + increase font size
- Ctrl + - decrease font size
- Ctrl + C stop execution
- Ctrl + Shift + C or Ctrl + Ins copy
- Ctrl + Shift + V or Shift + Ins paste
- Ctrl + Shift + T new tab
- Ctrl + Shift + W close tab
- Ctrl + PgUp and Ctrl + PgDn move between tabs
- Ctrl + Shift + Up and Ctrl + Shift + Down move up/down
- Shift + PgUp and Shift + PgDn page up/down
sudo apt-get install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-coreinstall CJK fonts- Create a swap file
gsettings set org.gnome.desktop.peripherals.touchpad click-method areasEnable right click (disabled by default in ubuntu 18.04)xmodmap -pke > ~/keymaptable, thensudo subl /usr/share/X11/xkb/symbols/pcChange key bindings