hostnamectl status
sudo journalctl
systemd-analyze blame
q
systemd --version
systemd-analyze plot > filename.svg
Commands:
time Print time spent in the kernel
blame Print list of running units ordered by time to init
critical-chain Print a tree of the time critical chain of units
plot Output SVG graphic showing service initialization
dot Output dependency graph in dot(1) format
set-log-level LEVEL Set logging threshold for systemd
dump Output state serialization of service manager
verify FILE... Check unit files for correctness
systemctl --state=failed
journalctl -b -0 shows messages from the current boot,
journalctl -b -1 from the previous boot
------------------------
systemctl start name.service
systemctl stop name.service
systemctl restart name.service
systemctl reload name.service
systemctl status name.service
------------------------------------
all available:
systemctl list-unit-files
To list all running units:
systemctl list-units
To list all failed units:
systemctl –failed
----------------------------------------------
drivers
sudo ubuntu-drivers list
sudo ubuntu-drivers autoinstall
sudo ubuntu-drivers devices
00000000000000000000000000000000000000000000000000000
what DM > dpkg -l | awk '$2 ~ /dm$/'
driver in use >> lspci -nnk | grep -i vga -A3 | grep 'in use'
------------------------------------------------------
remove old kernels
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
tip for quickly identifying a PCI Wifi device: "lspci -nn -d ::280" (it matches on the device class - 0x0280)
-------------------------------------------------------------------------------------------------------------------
wifi
rfkill list all
blacklist acer_wmi
Bluetooth
uname -a; lspci -nnk | grep -iA2 net; lsusb; dmesg | grep -i bluetooth; dmesg | grep -i firmware; lsmod | grep bluetooth; rfkill list all
--------------------------------------------
check trim enabled
tail -n1 /etc/cron.weekly/fstrim
--------------------------------------------------
format ext hdd / sdcard
sudo usermod -G disk --append <USER>