Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Yesterday I noticed the following when I started removing several apps I was not going to use. The file in the rc folders (/etc/rc0.d , /etc/rc1.d.... /etc/rc6.d) associated with the deleted app were still there.

For example, after removing gammut, the file /etc/rc0.d/K20gammu-smsd was still there.

Same for the following I found:

Motion - /etc/rc0.d/K60motion
WiCD - /etc/rc0.d/K20wicd
HDDTemp - /etc/rc0.d/K20hddtemp

And so on. This also applies to other RC levels corresponding to the single user, multi user and shutdown levels.

What do I need to do (Avoiding having to do it manually for each) to remove any trace of the app.

share|improve this question
I thought the purge option in apt-get deals with this(?) –  Rinzwind Apr 5 '13 at 19:32
Since these are startup scripts, and the filename start K instead of S, they should have no effect, and shouldn't even slow down the start-up process. (Or am I missing something?) Are you sure you need to remove them at all? –  Eliah Kagan Apr 5 '13 at 19:51
@LuisAlvarado Replacing S with K in the name of an rcN.d-style startup script is just the standard way of disabling the service. It's not actually killing anything. Still, your question stands--no files for these services existed in your rc... directories before the packages were installed, so there should be some automated way to get back to that state. –  Eliah Kagan Apr 5 '13 at 20:28
@LuisAlvarado Yep, 1 millibyte per app. :) –  Eliah Kagan Apr 5 '13 at 20:35
@Jai S starts a service, K kills it. –  Luis Alvarado Apr 15 '13 at 16:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.