4

I am trying to follow instructions here to get emacs going but I am stuck with deleting the .emacs.d folder. What do I do when the command line asks:

rm: descend into directory '.emacs.d'?

a@b:~$ sudo rm -r -i .emacs.d
[sudo] password for a: 
rm: descend into directory `.emacs.d'? 

Is there a simpler way to find and delete files without using the command line? I am unable to locate this file in GUI.

2
  • 2
    Try adding the -f option Commented Nov 5, 2013 at 23:58
  • @DerHochstapler The -f option did not help me. Commented Apr 24, 2021 at 16:30

2 Answers 2

7

You are adding the -i option which means --interactive so it will ask you if it can delete each file and directory. Is the only reason why "descend into directory `.emacs.d'?" appears.

So you either, forget about the -i or keep pressing Y.

BTW, sudo is not necessary:

(Optional) delete the .emacs.d/.git directory. You'll probably want to create your own git repo for .emacs.d

Delete only implies:

rm -r .emacs.d/.git
3
  • 2
    I am in docker container and I do not provide -i option, but it asks me anyway Commented Mar 10, 2020 at 15:45
  • @EugenKonkov do you have alias rm='rm -i' or rm() { rm -i $@ } or something similar in your rc/profile? Try type rm to see, or which -a rm
    – phuclv
    Commented Jun 14, 2023 at 11:51
  • @phuclv: As far as I know: No Commented Jun 14, 2023 at 20:00
3

It appears that .emacs.d is a folder, and the rm command is asking to confirm that you want to delete the files within the folder as well. To confirm this prompt, type y (for yes) and press enter.

Out of interest, why are you using sudo on this command? The files are in your home directory, so you do not need root privlages to delete them (unless the permissions are messed up)

2
  • Thanks, I tried without sudo and it all worked. Previously, it was asking if I was the root, probably that's why I was using sudo.
    – Zeynel
    Commented Nov 6, 2013 at 0:03
  • 1
    @Zeynel exactly what you used? Also, if it worked mark it the answer as accepted.
    – Braiam
    Commented Nov 6, 2013 at 0:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .