You are not logged in.

#1 2015-03-12 00:50:49

nevmx
Member
Registered: 2015-03-12
Posts: 2

Cannot remove a file, how to force remove it?

I ran this command:

systemctl disable dhcpcd@enp2s0.service

However, instead of disabling the service, it created 3 files in my ~/ directory:

$ ls
builds systemctl disable dhcpcd@enp2s0.service

When I try to remove it using rm disable, rm -f disable or rm -d disable , it says no such file or directory exists...

I managed to disable the service though. But I can't get rid of these files.

Help appreciated.

Offline

#2 2015-03-12 00:52:04

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

Re: Cannot remove a file, how to force remove it?

Are you sure it isn't one file with spaces in the name?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-03-12 00:57:37

nevmx
Member
Registered: 2015-03-12
Posts: 2

Re: Cannot remove a file, how to force remove it?

It worked, thank you. I feel stupid now...

Offline

#4 2015-03-12 01:11:23

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

Re: Cannot remove a file, how to force remove it?

For future reference, Tab-completion would have helped:

rm system<TAB>

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB