Linux Cheatsheet
With everything going on with logicoma, I will be frequently updating this page so I can just jump back into whatever system tasks at hand. I should add this I'm going to keep this focused on ubuntu/debian.
- http://www.yolinux.com/TUTORIALS/LinuxTutorialAdditionalHardDrive.html
- http://www.cyberciti.biz/faq/linux-viewing-drive-partitions-with-fdisk-parted/
- X11 Forwarding using Putty on Windows - YouTube
- Storage
- http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/checking-storage-space.html
- https://www.cyberciti.biz/faq/linux-check-memory-usage
- https://unix.stackexchange.com/questions/106561/finding-the-pid-of-the-process-using-a-specific-port
Commands
fdisk -l
mkdir ← a directoy of where to mount the disk
mount ← mount a disk using /dev/[disk]
ln ← creates a link file from another name ← use 'a' to get all the information on the server |
rm /path/to/directory/*
- https://askubuntu.com/questions/402589/the-following-packages-were-automatically-installed-and-are-no-longer-required
- https://serverfault.com/questions/413397/how-to-set-environment-variable-in-systemd-service
- http://nginx.org/en/docs/beginners_guide.html
- http://stackoverflow.com/questions/14075581/git-undo-all-uncommitted-changes
- https://askubuntu.com/questions/86849/how-to-unzip-a-zip-file-from-the-terminal
- https://sqlite.org/cli.html
- https://stackoverflow.com/questions/4528869/how-do-you-attach-a-new-pull-request-to-an-existing-issue-on-github
- https://askubuntu.com/questions/29359/how-to-add-user-without-home
- https://www.cyberciti.biz/faq/unix-linux-check-if-port-is-in-use-command/
- https://stackoverflow.com/questions/6200215/how-to-log-in-to-mysql-and-query-the-database-from-linux-terminal
- https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request
- https://docs.gitlab.com/ee/administration/restart_gitlab.html
- https://webmasters.stackexchange.com/questions/9864/how-can-my-organization-become-a-root-ca
- https://stackoverflow.com/questions/37453841/download-a-file-from-google-drive-using-wget
- https://www.linux.com/blog/linux-101-check-disk-space-command
- http://linuxcommand.org/lc3_adv_termmux.php
- https://stackoverflow.com/questions/11693074/git-credential-cache-is-not-a-git-command
- https://askubuntu.com/questions/596097/how-do-i-undo-a-folder-move
- http://www.rapidtables.com/code/linux/mv.htm
- https://productforums.google.com/forum/#!topic/chrome/Ok8jGiAXU00
- https://askubuntu.com/questions/9402/what-file-permissions-should-i-set-on-web-root
- https://www.cyberciti.biz/faq/
- https://superuser.com/questions/19318/how-can-i-give-write-access-of-a-folder-to-all-users-in-linux
- https://stackoverflow.com/questions/3740152/how-do-i-set-chmod-for-a-folder-and-all-of-its-subfolders-and-files-in-linux-ubu
- https://serverfault.com/questions/213185/how-to-restart-nginx
- http://git.logicoma.com/logicoma/system/issues/12
- https://askubuntu.com/questions/538732/no-motd-on-ubuntu-14-04
- https://unix.stackexchange.com/questions/225401/how-to-see-full-log-from-systemctl-status-service
- https://stackoverflow.com/questions/10274146/vim-line-numbers-how-to-have-them-on-by-default
- https://stackoverflow.com/questions/2039444/why-are-drivers-and-firmwares-almost-always-written-in-c-or-asm-and-not-c