0

I tried to install ddd from my schools site and it gave me this command to remove installed version of ddd:

rm -rf ~/.ddd/

It wouldn't execute so i tried with sudo and it worked, but after that i couldn't open nautilus. When i tried to start it from the terminal it displayed this:

Unable to create a required folder. Please create the following folder, or set permissions such that it can be created: /home/sensej/.config/nautilus

Output of ls -ld ~/.config is:

ls: cannot access '~/.config':No such file or directory

Output of sudo ls -ld ~/.config :

ls: cannot access '/home/sensej/.config': No such file or directory

And here is the output of history

 1  sudo apt-get install gcc
    2  sudo apt-get install ddd
    3  ddd
    4  gcc
    5  ddd
    6  sudo apt-get install gcc-multilib
    7  sudo apt-get intall gcc-multilib
    8  sudo apt-get install gcc-multilib
    9  cd Downloads
   10  ls
   11  sudo cp asm.lang /usr/ sudo cp asm.lang /usr/share/gtksourceview-3.0/language-specs/
   12  ls /usr/share/mime/packages/Overrides.xml
   13  udo cp Overrides.xml /usr/share/mime/packages/
   14  sudo cp Overrides.xml /usr/share/mime/packages/
   15  sudo update-mime-database /usr/share/mime
   16  ls
   17  mkdir Asembler
   18  cd Asembler
   19  gedit &
   20  ls
   21  gcc -m32 -g -o zbir_n_brojeva zbir_n_brojeva.S
   22  ./zbir_n_brojeva.S
   23  ddd zbir_n_brojeva &
   24  rm -rf ~/ .ddd/
   25  sudo rm -rf ~/ .ddd/
   26  sudo apt-get install ddd
   27  sudo apt-get purge nautilus
   28  sudo apt-get install nutilus
   29  nautilus --check
   30  sudo apt install nautilu
   31  sudo apt install nautilus
   32  nutilus --check
   33  clear
   34  nautilus --check
   35  sudo apt-get intall --reinstall nautilu-data
   36  sudo apt-get intall --reinstall nautilus-data
   37  sudo apt-get install --reinstall nautilus-data
   38  nautilus
   39  ddd
   40  nautilus
   41  sudo chown sensej:sensej ~/.config
   42  mkdir /home/sensej/.config
   43  sudo mkdir /home/sensej/.config
   44  nautilus
   45  cd .
   46  hitory
   47  history
   48  ls -l ~/.config
   49  ls -l ~/ .config
   50  ls -ld ~./config
   51  history
   52  sudo ls -ld ~/ .config
   53  history
20
  • Please edit your question and add output of ls -ld ~/.config terminal command.
    – Pilot6
    Mar 2, 2019 at 11:38
  • 1
    But I suspect you ran something else with sudo.
    – Pilot6
    Mar 2, 2019 at 11:39
  • @Pilot6 I just typed sudo in front of this command, nothing else was changed. Mar 2, 2019 at 11:42
  • You can run history and see what you really ran.
    – Pilot6
    Mar 2, 2019 at 11:45
  • I suspect something like sudo nautilus, etc.
    – Pilot6
    Mar 2, 2019 at 11:46

1 Answer 1

2

You ran a completely wrong command

rm -rf ~/ .ddd/

It removed your home directory ~/.

The correct command was

rm -r ~/.ddd/

You added a space there. You seem to be a bit careless with adding spaces.

Since your home directory is gone, I suggest re-installing the system.

Beware that you lost all your files. Be careful in the future.

5
  • Thanks for the help man. I will be more careful next time. Mar 2, 2019 at 13:05
  • 5
    I agree with your diagnosis - but reinstalling the system seems like overkill. Couldn't the OP just create a new home directory and restore their personal files from backup for example? Mar 2, 2019 at 13:07
  • @steeldriver All configs are lost. That`s the problem. It will be easier to re-install for a newbie.
    – Pilot6
    Mar 2, 2019 at 13:09
  • @steeldriver How can you see successful creating and restoring with this kind of CLI skills?
    – Pilot6
    Mar 2, 2019 at 13:10
  • 1
    The vast majority of configs will be recreated when the relevant programs are executed for the first time. The rest could be copied from /etc/skel. I agree that reinstalling is needlessly extreme here.
    – terdon
    Mar 2, 2019 at 18:46

You must log in to answer this question.

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