4

I tried to reset my vlc configuration by using this commands in the terminal

vlc --reset-config

Then when i try to view the documents, downloads, music, pictures and videos folder all files were gone. Please help!

study-route
  • 89
  • 14
sAizOu
  • 41
  • 1
    Which documents? – Maythux Jul 04 '15 at 08:37
  • Did you run any other commands? – Wilf Jul 04 '15 at 08:48
  • @Maythux i mean all files in the Files folder.. – sAizOu Jul 04 '15 at 08:58
  • You probably do something else – Maythux Jul 04 '15 at 08:59
  • i only followed the commands here "http://askubuntu.com/questions/199710/how-to-revert-vlc-media-player-to-its-original-state".. @Wilf – sAizOu Jul 04 '15 at 09:08
  • Ok - are you sure you typed the commands correctly (particularly the rm -rf..... one), and does ls -a ~/, ls -a ~/Documents,ls -a ~/Desktop show any of you documents? Depending on the filesystem if you have deleted files I think it is best to use the hard disk as little as possible, and either use recovery tools yourself (e.g.) or get professional data recovery (may be difficult for linux ext* systems). – Wilf Jul 04 '15 at 09:11
  • @Wilf yes i double checked it the 'rm -rf . . . .' . I did not tried yet the 'ls' one.. do i have to ? what is this command for ? – sAizOu Jul 04 '15 at 09:13
  • On most linux systems using sh and similar: ls <path>/<to>/<folder> lists files in a directory (where ~ is the home directory), rm /<path>/<to>/<file-or-folder> removes , mv <path>/<to>/<src> <path>/<to>/<dest> moves files, cp <path>/<to>/<src> <path>/<to>/<dest> copies files. You can get help on what most commands do using man CMD (e.g. man rm), or CMD --help (e.g. mv --help). – Wilf Jul 04 '15 at 09:19
  • 1
    @sAizOu Please add the history result – Maythux Jul 04 '15 at 09:20
  • You can also use history | tail -50 to get the last 50 commands run, then please can you [edit] this into your question using formatting :) – Wilf Jul 04 '15 at 09:21
  • 1
    i'm currently using another computer in an internet cafe.. i jst did a screenshot on my laptop and i'll post it.. @Wilf – sAizOu Jul 04 '15 at 09:26
  • Ok thats fine - if you need a image uploader you can use http://imgur.com and post a link – Wilf Jul 04 '15 at 09:30
  • @Wilf i'm currently using another computer in an internet cafe.. maybe i'll just type the history one by one.. here it is: 1 mv ~/ .config/vlc ~/ .config/vlc.old, 2 sudo apt-get remove --purge vlc, 3 sudo apt-get install vlc, 4 ps ax | grep vlc, 5 pkill vlc, 6 killall vlc, 7 killall -9 vlc, 8 rm -rf ~/ .config/vlc.old, 9 vlc --reset-config, 10 sudo shutdown -r now, 11 ls -a ~/, 12 ls -a ~/Documents, 13 ls -a ~/Desktop, 14 ls -a ~/Videos, 15 history | tail -50 – sAizOu Jul 04 '15 at 09:33
  • @Wilf http://imgur.com/1VTMFrQ – sAizOu Jul 04 '15 at 09:35
  • @Maythux http://imgur.com/1VTMFrQ – sAizOu Jul 04 '15 at 09:38

1 Answers1

6

enter image description here

Here your problem command number 8:

rm ~/ .config/vlc.old

What did you do here?

When a space exists between a path the command consider it another option, what i mean in the aboce command you ask system to delete all files under your home ~/ and delete the folder .config/vlc.old.

The correct command have to be like that:

 rm ~/.config/vlc.old

For that it's better always to use quotes ' ' within path such as

 rm '~/.config/vlc.old'

Now how to solve it?

If you need the data was in your home then you should have some data recovery. Take a look on my answer :https://askubuntu.com/a/638497/150504

If you don't need that files and you just want your "well known" user directories like the desktop folder and the music folder, you can restore by loggin out and then login again. If this doesn't work then do this:

gedit ~/.config/user-dirs.dirs

Add those lines then save and logout then login:

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
Maythux
  • 84,289