Systemd Cheatsheet

systemd vs sysVinit cheatsheet Service Commands systemctl stop service-name systemd stop running service systemctl start service-name systemctl start service systemctl restart service-name systemd restart running service systemctl reload service-name reloads all config files for service systemctl status service-name systemctl show…

Yum commands

yum list [available|installed|extras|updates|obsoletes|all|recent] [pkgspec] This command lets you list packages in any repository enabled on your system or installed. It also lets you list specific types of packages as well as refine your list with a package specification of any…

VNC on a RaspberryPi

Taken from https://www.raspberrypi.org/documentation/remote-access/vnc/ tutorial on howto setup VNC on any raspberrypi On your Pi (using a monitor or via SSH), install the TightVNC package: sudo apt-get install tightvncserver Next, run TightVNC Server which will prompt you to enter a password and…

Wget Examples

1. Download a single file from the Internet wget http://domain.com/file.iso 2. Download a file but save it locally under a different name wget ‐‐output-document=filename.html domain.com 3. Download a file and save it in a specific folder wget ‐‐directory-prefix=folder/subfolder domain.com 4.…

Sed 1-liners

A more refined post than http://devnull.mine.nu/2015/05/30/sed-example-tutorials/  with numerous 1-liners for sed, orginally taken from here http://www.pement.org/sed/sed1line.txt  many thanks! 😀 FILE SPACING: # double space a file sed G # double space a file which already has blank lines in it. Output file…