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!
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!
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'
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"
ls -a ~
,ls ~/.config/vlc/
or ls ~/.config/vlc.old
? The use of rm -rf ~/ .config/vlc.old
may mean this more of a data recovery issue...
– Wilf
Jul 04 '15 at 09:51
rm -rf.....
one), and doesls -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 linuxext*
systems). – Wilf Jul 04 '15 at 09:11ls <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 usingman CMD
(e.g.man rm
), orCMD --help
(e.g.mv --help
). – Wilf Jul 04 '15 at 09:19history
result – Maythux Jul 04 '15 at 09:20history | 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