Posts

Showing posts from June, 2024

Permanently turn off graphics

 If you are running linux as a server, you do not need graphics wasting RAM. vi /etc/default/grub replace "splash" with "text" update-grub systemctl enable multi-user.target --force systemctl set-default multi-user.target systemctl set-default multi-user systemctl isolate multi-user.target gnome-session-quit systemctl stop gdm systemctl disable gdm apt remove gdm

replace spaces in filenames in bulk

 Dealing with spaces on the commandline in linux is a pain. This commandline will strip spaces and replace with underscores: for f in *\ *; do mv "$f" "${f// /_}"; done 2>/dev/null