Useful commands
Chester Wyke October 19, 2023 Updated: April 15, 2025 #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
Video Cards
Snapcraft
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
MAN
Terminal
sed
Characters
zsh
Links between files
7z encrypted file
Wayland or x11?
Delete Old Files Automatically
Find which package contains a particular file
Consume CPU resources
Check which shells are available
Go back to previous directory
Show largest folder/files
| |
Set environment variables in bash
Check what type of file something probably is
Search for a file/folder
Show command history
Show IP Addresses
Show default gateway and routes
Source: https://www.rootusers.com/how-to-display-routing-table-in-linux/
Kill a running process
Where pid
is the process ID of the process to kill or
or where program
is the name of the program to kill (see more on pidof here)
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.)
Check route that will be used for address
Source: Faster than Lime - Use ip route help
to see more info.
See installed kernels
Consumes RAM (And CPU)
Show network devices
Get 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)
Check which shell is in use
Get SHA1 hash of a file
Get SHA256 hash of a file
Start Discord Minimized
Get file “properties”
Check system to see which sensors are available
See bluetooth logs
Get 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
Get checksum for a string
|
Manage 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.
Move files to trash from command line
Check version of linux in use
See power status for connected devices
Watch the sensor stream