Tips, Tricks & Shortcuts to Supercharge Your Workflow — From Beginners to Power Users


1. Master the Terminal

The terminal is the beating heart of Ubuntu. Learning a handful of keyboard shortcuts and commands can save you hours every week.

Essential Keyboard Shortcuts

ShortcutAction
Ctrl+Alt+TOpen terminal
Ctrl+Shift+CCopy in terminal
Ctrl+Shift+VPaste in terminal
Ctrl+LClear screen
Ctrl+RReverse search history
TabAuto-complete commands

Command History Tricks

Use the history command combined with grep to quickly find past commands. You can also use !! to repeat your last command, or !$ to reuse the last argument.

bash

history | grep "apt install"
sudo !!
cd !$

Aliases for Everyday Commands

Create aliases in your .bashrc or .zshrc to shorten repetitive commands:

bash

alias update='sudo apt update && sudo apt upgrade -y'
alias cls='clear'
alias ll='ls -alFh --color=auto'
alias ..='cd ..'
alias ...='cd ../..'
alias ports='ss -tulnp'

After editing, run source ~/.bashrc to apply changes instantly.


2. System Performance Boosters

Reduce Swap Usage

Ubuntu uses swap aggressively by default. Lowering the swappiness value keeps more data in RAM and speeds up your system noticeably, especially on machines with 8 GB or more.

bash

# Check current swappiness
cat /proc/sys/vm/swappiness

# Set to 10 (persistent)
sudo sysctl vm.swappiness=10
echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf

Clean Up Disk Space

Over time, old packages, kernels, and caches pile up. A few commands will reclaim gigabytes:

bash

sudo apt autoremove -y
sudo apt clean
sudo journalctl --vacuum-time=7d
snap list --all | awk '/disabled/{print $1, $3}' | \
  while read pkg rev; do sudo snap remove "$pkg" --revision="$rev"; done

Preload Frequently Used Apps

The preload daemon monitors which applications you use most and caches them in RAM for faster launch times.

bash

sudo apt install preload

It works silently in the background with zero configuration needed.


3. Productivity Power Moves

Workspaces & Window Tiling

Ubuntu supports virtual workspaces out of the box. Use Super+Arrow keys to snap windows to halves of the screen. For more advanced tiling, install a GNOME extension:

bash

sudo apt install gnome-shell-extension-manager

Search for Tiling Assistant in the Extension Manager for an i3-like tiling experience on GNOME.

Clipboard Manager

By default, Ubuntu loses clipboard contents when you close an app. A clipboard manager solves this and keeps a history of everything you copy.

bash

sudo apt install copyq
# Launch with Ctrl+Shift+V (configurable)

Quick File Search with fzf

fzf is a blazing-fast fuzzy finder that transforms how you search for files and navigate history.

bash

sudo apt install fzf

# Fuzzy search files
find . | fzf

# Fuzzy history search (Ctrl+R on steroids)
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse'

Take Screenshots Like a Pro

ShortcutAction
PrtScFull screen screenshot
Shift+PrtScSelect area
Alt+PrtScCurrent window only
Ctrl+PrtScCopy to clipboard

4. Networking & Security

Quick DNS Flush

If websites are not loading properly after a DNS change, flush your local resolver cache:

bash

sudo systemd-resolve --flush-caches
# Verify
resolvectl statistics

Firewall in 30 Seconds

UFW (Uncomplicated Firewall) is installed by default but not enabled. Activate it with sensible defaults:

bash

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw enable
sudo ufw status verbose

SSH Key Authentication

Ditch passwords for SSH. Key-based auth is both more secure and more convenient:

bash

ssh-keygen -t ed25519 -C "your_email@example.com"
ssh-copy-id user@remote-server
# Now login without a password
ssh user@remote-server

5. Customization & Eye Candy

Install a Better Terminal

Replace the default terminal with something feature-rich. Kitty and Alacritty are GPU-accelerated and highly configurable:

bash

# Kitty
sudo apt install kitty

# Or Alacritty (via PPA)
sudo add-apt-repository ppa:aslatter/ppa
sudo apt install alacritty

GNOME Tweaks & Extensions

Unlock hidden GNOME settings with Tweaks and supercharge your desktop with extensions:

bash

sudo apt install gnome-tweaks

Popular extensions to try: Dash to Dock, Blur My Shell, Caffeine, Vitals (system monitor), and AppIndicator Support.

Custom Fonts

Install fonts system-wide or per-user to freshen up your desktop and coding environment:

bash

# Per-user fonts
mkdir -p ~/.local/share/fonts
cp *.ttf ~/.local/share/fonts/
fc-cache -fv

Nerd Fonts are highly recommended for terminal use — they include programming ligatures and icons.


6. Automation & Scripting

Cron Jobs for Scheduled Tasks

Automate backups, cleanups, and reports with cron:

bash

crontab -e

# Example: backup home folder every Sunday at 2am
0 2 * * 0 tar -czf /backup/home_$(date +\%F).tar.gz ~/

Systemd Timers (Modern Cron)

For more control and logging, use systemd timers instead of cron. They integrate with journalctl for easy debugging.

bash

# List active timers
systemctl list-timers --all

Watch Command for Live Monitoring

The watch command repeatedly runs any command and displays the output — perfect for monitoring:

bash

# Monitor disk usage every 2 seconds
watch -n 2 df -h

# Watch network connections
watch -n 1 'ss -s'

7. Package Management Pro Tips

Search Before You Install

Find exactly the right package without guessing names:

bash

apt search keyword
apt show package-name    # full details
apt list --installed     # what's already installed

Pin Package Versions

Prevent a critical package from being upgraded accidentally:

bash

sudo apt-mark hold package-name
# Undo
sudo apt-mark unhold package-name

AppImage, Flatpak & Snap

Not everything lives in the apt repos. Modern app formats give you the latest versions:

FormatDescription
APTSystem packages, tested, stable
SnapSandboxed, auto-updates, Ubuntu default
FlatpakSandboxed, Flathub store, wide support
AppImageSingle file, no install, portable

Happy Hacking! These tips barely scratch the surface. The beauty of Linux is that there is always something new to learn and optimize. Keep experimenting, keep breaking things, and keep rebuilding them better.

One thought on “Linux Ubuntu Life Hacks

Leave a Reply

Your email address will not be published. Required fields are marked *