|
|
|
|
|
by mixmastamyk
993 days ago
|
|
Unfortunately, I find systemctl hard to type. If you start/stop services somewhat frequently, I recommend this alias: alias sc='sudo systemctl'
This has the nice property in that it mirrors the "service control" (sc) utility in later versions of Windows NT that I grew up on. Should work in bash/fish.I have these others also when doing service development, because many of the subcommands start with 'st*' and also having to change the second parameter each time is annoying. These work in fish, but are easily ported: function sce --description 'systemctl stop # end'
sc stop $argv;
end
function sci --description 'systemctl status # info'
sc status $argv;
end
function scs --description 'systemctl start # start'
sc start $argv;
end
|
|