Useful commands
Chester Wyke October 19, 2023 Updated: January 17, 2026 #DebianMAC Address Change
Set permissions recursively on directory structure
Touch (Set file modified date)
Android Apps on Linux
Blacklist Module
Calender Notifications Popup Disable
CUPS PDF Printer
gping
Hide Mounts
Nautilus
Power
Smartgit
Bash Aliases
Video Cards
Snapcraft
Reset Root Password
Acrobat Reader
Audio
Shortcuts (Important)
DNS
Mounting Drives
Setup Network Shares
Cron
Startup
Users and Groups
Paths to remember
Manually Removing Old Kernels
Set Icon for Application
Strange Problems and Fixes
Redirecting stderr
Extensions
Ubuntu Software
Show Seconds on Clock Display
Create Bootable Flash Drive
Compressed Files
services systemd (unit)
SCP
SSH
Updating
Useful commands
Firewall
View Whitespace
OpenVPN
PPP logs
Scripts
MAN
Terminal
sed
Characters
zsh
Links between files
7z encrypted file
Wayland or x11?
Delete Old Files Automatically
Screen Application
Set IP
Find which package contains a particular file
apt-fileConsume CPU resources
cat /dev/zero > /dev/nullCheck which shells are available
cat /etc/shellsGo back to previous directory
cd -Show largest folder/files
du -a -BM . | sort -n -r | head -n 30Set environment variables in bash
export VAR=abcCheck what type of file something probably is
fileSearch for a file/folder
find -name "PATTERN"Show command history
historyConvert a folder of images into a pdf
Source: https://askubuntu.com/questions/246647/convert-a-directory-of-jpeg-files-to-a-single-pdf-document
img2pdf *.png --output combined.pdfShow IP Addresses
ip -c aShow default gateway and routes
Source: https://www.rootusers.com/how-to-display-routing-table-in-linux/
ip -c rKill a running process
Where pid is the process ID of the process to kill or
kill pid
or where program is the name of the program to kill (see more on pidof here)
kill $(pidof program)Set static route
Where 192.168.0.0/16 is the network and mask you want to set the route for and 192.168.0.1 is the gateway (It auto detected the interface when I tried it.)
sudo ip route add 192.168.0.0/16 via 192.168.0.1Check route that will be used for address
Source: Faster than Lime - Use ip route help to see more info.
ip route get 8.8.8.8See installed kernels
find /boot/vmli*Consumes RAM (And CPU)
memtesterShow network devices
nmcli device statusGet the PID(s) of a process
Where program is the name of the command that started the process (what that shows in the System Monitor)
pidof programCheck which shell is in use
ps -p $$Get SHA1 hash of a file
sha1sumGet SHA256 hash of a file
sha256sumStart Discord Minimized
snap run discord --start-minimizedGet file “properties”
statCheck system to see which sensors are available
sudo sensors-detectSee bluetooth logs
sudo systemctl status bluetoothGet a checksum for a file
Source: https://www.baeldung.com/linux/sha-256-from-command-line
The source also shows how to verify against the checksum file
sha256sum my_file.txtsum my_file.txtGet checksum for a string
echo string | sha256sumManage TexLive Packages
Was already installed on my system not sure from where or when.
However it was a very old version and after I set it up for use using tlmgr init-usertree (required for debian).
I tested it using tlmgr info algorithm and got the following:
tlmgr: Local TeX Live (2021) is older than remote repository (2024).
Cross release updates are only supported with
update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
Given than the new install was going to be over 7GB I abandoned this option.
tlmgrMove files to trash from command line
trashCheck version of linux in use
uname -aSee power status for connected devices
upower --dumpWatch the sensor stream
watch sensors