Systemd targets

Target Description halt Shut down all services and halt the system poweroff Shut down all services and power off the system shutdown Shut down the system normally rescue Single-user (root) mode for maintenance and recovery functions. It mounts all file-system but does not start any networking related service or function. multi-user Multi-user command line mode for regular tasks. It starts all essential and custom services and provides the CLI prompt for login and work. graphical Same as the multi-user.target but also includes GUI. A user can use the graphical desktop environment to login and work or can use regular command line interface. reboot Reboot the system normally. default Default target to boot the system. Usually set either to multi-user.target or graphical.target. emergency Start an emergency shell and mount only root file-system. Other file-system and networking remain disabled. hibernate Save the running state of the system to the hard disk and power off the system. When the system is power on again, the systemd restores the saved state. suspend Same as the hibernate except the system state is saved in the memory and power to the memory is not turned off.

19 December 2024 · 1 min

Useful Linux commands and applications

Commands (May not be preinstalled on your distro) gdu - disk usage in go with multiprocessor (alternative: ncdu) fd - better find wavemon - analyse wifi pv and progress - watch progress of a command hardinfo - hardwareinfo sshfs - mount remote servers Crop multiple fotos for i in *.png; do convert -crop aaaxbbb+ccc+ddd "$i" out/"$i"; done Where: aaa is the x offset from the left bbb is the y offset from the right ccc is the horizontal size of the output image ddd is the vertical size of the output image All in pixels, you can get them by selecting just one image in gimp and looking at the bottom bar for the values ;) ...

19 December 2024 · 3 min