HI FOLKS, MY NAME IS

THOMAS

IT VENDOR LEAD, SAP/ LINUX EXPERT
& MOTORCYCLE ENTHUSIAST

RC service alias


A handy way to get an alias for the services installed on your UNIX box is the following script:

#! /bin/sh

for service in `cd /etc/init.d/; ls -1`; do
  alias "service-${service}"="/etc/init.d/${service}";
done

You can now access the service scripts with an alias which also work with command completion. So restart the network i.e. will be “service-network restart”.


IT VENDOR LEAD, SAP/ LINUX EXPERT & MOTORCYCLE ENTHUSIAST

© 2019 by Thomas Bendler,
all Rights Reserved