Skip to content

Instantly share code, notes, and snippets.

@amiteshore
amiteshore / scp.md
Last active September 6, 2022 13:01
quick `scp` cheatsheet

scp <source> <destination>

example

copy file/directory from local machine to remote server

scp /path/to/file user@host:/path/to/destination

scp -r ~/project/src joe@example.com:~/project

Moving within the screen


H ⇒ Move to the top of the screen

M ⇒ Move to the middle of the screen

L ⇒ Move to the bottom of the screen

Note: appending pci=nomsi in /etc/default/grub fixed the "taking too much time to shutdown or reboot"

Post-installation (after booting or rebooting)

- [ ] Set correct time
    - `sudo timedatectl set-ntp true`
    - `sudo timedatectl set-timezone Asia/Kolkata`
    - Check with `timedatectl status` or `date`
- [ ] Connect to WiFi with `nmtui`
- [ ] Check internet connection `ping google.com`
  • Upgrade pacman -Syu

Ubuntu keyboard shortcuts

Shortcut Description
Super Activities
Super+Tab Switch applications
Super+Left View split on left
Super+Right View split on right
Super+Up Maximize window
Alt+F4 Close window

Terminal keyboard shortcuts

Shortcut Description
Ctrl+Alt+T Launch terminal
Shift+Ctrl+T New tab
Shift+Ctrl+W Close tab
Shift+Ctrl+C Copy
Shift+Ctrl+V Paste
Shift+Ctrl+N New window

Chrome keyboard shortcuts

Shortcut Description
Ctrl+T Open a new tab, and jump to it
Ctrl+W Close the current tab
Ctrl+Tab Jump to the next open tab
Ctrl+Shift+Tab Jump to the previous open tab
Ctrl+L Move cursor to the address bar
Ctrl+D Bookmark current tab

Ubuntu Installation Troubleshooting

STEP 1

sudo service rsyslog stop
sudo systemctl disable rsyslog

STEP 2

Append pci=nomsi in /etc/default/grub on GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" line