cheatsheetCommand reference
Arch · Kitty · Neovim · and more

Master your command line

Every command and keyboard shortcut you reach for — searchable, copy-ready, and organized by program. Built for Arch users, by Arch users.

45Commands
18Categories
3Programs
/
Arch / CachyOSPackages
sudo pacman -Syu

Sync repos and upgrade every installed package.

#update#upgrade
Arch / CachyOSPackages
sudo pacman -S <pkg>

Install one or more packages from the official repos.

#install
Arch / CachyOSPackages
sudo pacman -Rns <pkg>

Remove a package with its dependencies and config.

#remove#clean
Arch / CachyOSPackages
pacman -Qe

List packages you explicitly installed (not deps).

#list#audit
Arch / CachyOSSearch
pacman -Ss <term>

Search the sync databases for a package.

#search
Arch / CachyOSAUR
paru -S <pkg>

Build and install a package from the AUR.

#aur#install
Arch / CachyOSAUR
paru -Sua

Upgrade only your installed AUR packages.

#aur#update
Arch / CachyOSSystem
sudo cachyos-rate-mirrors

Rank and write the fastest CachyOS mirrors.

#mirror#speed
Arch / CachyOSSystem
cachyos-kernel-manager

Install or switch between optimized CachyOS kernels.

#kernel
Arch / CachyOSSystem
sudo pacman -Sc

Clean cached package versions you no longer need.

#cache#clean
Arch / CachyOSServices
systemctl status <svc>

Show whether a service is running, plus recent logs.

#status
Arch / CachyOSServices
sudo systemctl enable --now <svc>

Start a service now and on every boot.

#enable#boot
Arch / CachyOSLogs
journalctl -xe

Show the most recent logs with explanatory context.

#logs#debug
Arch / CachyOSLogs
journalctl -u <svc> -f

Follow a single service’s logs live.

#logs#follow
Arch / CachyOSSnapshots
sudo btrfs subvolume list /

List every Btrfs subvolume and snapshot.

#btrfs#snapshot
KittyWindows
ctrl+shift+enter

Open a new window in the current tab.

#window#new
KittyWindows
ctrl+shift+w

Close the window that has focus.

#window#close
KittyWindows
ctrl+shift+]

Move focus to the next window.

#window#focus
KittyTabs
ctrl+shift+t

Open a new tab.

#tab#new
KittyTabs
ctrl+shift+q

Close the current tab and all its windows.

#tab#close
KittyTabs
ctrl+shift+right

Switch to the next tab.

#tab#switch
KittyLayout
ctrl+shift+l

Cycle to the next window layout.

#layout
KittyScrollback
ctrl+shift+f

Open the scrollback buffer in your pager.

#scrollback#pager
KittyFont
ctrl+shift+=

Increase the terminal font size.

#font#zoom
KittyConfig
ctrl+shift+f5

Reload kitty.conf without restarting.

#config#reload
KittyConfig
kitty +kitten themes

Browse and apply a Kitty color theme.

#theme#config
KittyScrollback
kitten icat <img>

Render an image inline in the terminal.

#image#preview
KittySessions
kitten ssh user@host

SSH with Kitty’s terminfo shipped along.

#ssh#session
KittySessions
kitty --session <file>

Launch a predefined window and tab layout.

#session#startup
KittyTabs
ctrl+shift+.

Move the current tab one position forward.

#tab#move
Vim / NeovimFiles
:w !sudo tee %

Save the current file as root.

#save#sudo
Vim / NeovimEditing
gg=G

Re-indent the entire file.

#format#indent
Vim / NeovimSearch
:%s/old/new/g

Find and replace every match in the file.

#replace
Vim / NeovimEditing
ciw

Change the word under the cursor.

#change#word
Vim / NeovimEditing
dd

Delete (cut) the current line.

#delete#line
Vim / NeovimSearch
:noh

Clear the active search highlight.

#highlight
Vim / NeovimWindows
:vsp

Open a vertical split window.

#split
Vim / NeovimWindows
ctrl-w l

Move to the split on the right.

#split#focus
Vim / NeovimNavigation
gd

Jump to the definition under the cursor (LSP).

#lsp#goto
Vim / NeovimFiles
:Telescope find_files

Fuzzy-find files across the project.

#fuzzy#find
Vim / NeovimPlugins
:Lazy sync

Install, update and clean plugins.

#plugins#update
Vim / NeovimNavigation
:bnext

Switch to the next open buffer.

#buffer
Vim / NeovimNavigation
zz

Center the cursor line on screen.

#scroll#center
Vim / NeovimEditing
"+y

Yank the selection to the system clipboard.

#clipboard#yank
Vim / NeovimFiles
:e!

Reload the file, discarding changes.

#reload