A small collection of practical command references for common Linux maintenance tasks.
- Application Menu Refresh.sh — refreshes the local desktop-entry database after removing an application.
- Change Ownership or Mode.sh — examples of using
chownandchmodto change file ownership and permissions. - Reflector.sh — updates Arch Linux Pacman mirrors with
reflectorto help improve download speeds. - Unboot Pendrive.sh — steps for removing boot data, repartitioning, and formatting a USB drive.
Review a file before running any command, then copy the relevant command into a terminal. Some commands require sudo and should be used only when you understand their effect.
Warning:
Unboot Pendrive.shcontains commands that permanently erase a USB drive. Confirm the correct device withlsblkand replace/dev/sdawith the actual USB device before continuing. Do not format your system drive.
Handy Linux maintenance commands for mirrors, desktop entries, permissions, and USB drives.