You are not logged in.

#1 2020-04-30 17:45:13

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Systemctl service written with an space character [Solved]

So, I have this service, which was a old wireless config, which had space in its name.

I would like to know if there is a way I could write

sudo systemctl disable netcl@wlp4s0-Refugio Tridestiloucos.service

I have tried writting "Refugio Tridestiloucos" and 'Refugio Tridestiloucos'.

A real pain that my pc will take 1-2 minutes ate start because of this old config. And, I'm unable to fix it

Last edited by BuddhiArch (2020-05-01 07:34:32)


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#2 2020-04-30 18:28:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Systemctl service written with an space character [Solved]

Tab completion. Or just manually delete the file/symlink.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-04-30 18:59:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: Systemctl service written with an space character [Solved]

Quoting will work, but you need to quote the whole argument, not just a segment of it as you have described.  You can also just use a backslash to escape the space which I tend to prefer:

systemctl disable netcl@wlp4s0-Refugio\ Tridestiloucos.service
# or
systemctl disable "netcl@wlp4s0-Refugio Tridestiloucos.service"

Last edited by Trilby (2020-04-30 19:00:26)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2020-05-01 07:33:57

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Re: Systemctl service written with an space character [Solved]

Ok, it worked. Thank you!


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

Board footer

Powered by FluxBB