- See git cheatsheet.
- rsync -a --delete --compress --omit-dir-times --omit-link-times --no-g --no-perms [user@server:]source [user@server:]target
- scp -Crqp [user@server:]source [user@server:]target
- ssh username@server
- tmux (Ctrl+b ":set -g status off" to disable status bar with clock)
- screen
- zip
- unzip
- tar
- top
- htop
- df
- du
- ls
- cd
- cd ~
- pushd
- popd
- shopt -s dotglob
- mkdir
- rmdir
- rm -rf
- mv
- (shopt -s dotglob; mv ~/source/* ~/target)
- find . -iname *.md
- command | grep "text-to-find"
- grep "text-to-find" filename
- grep -Ril "text-to-find-here" directoryPath
- sed
- nano
- vi
- touch
- sudo
- sudo -u username command
- chomod
- chown
- groups username
- usermod -a -G [www-data/or/apache] username
- hostname -I
- whoami
- history
- mysql -u username -p databaseName
- mysql -u username -p databaseName < exportdb.sql
- mysqldump -u username -p databaseName > exportdb.sql