You are not logged in.

#1 2015-03-18 17:45:16

mirko28
Member
Registered: 2015-03-18
Posts: 11

[SOLVED] How to recreate home folder subdirectories

I have accidentally removed home folder stuff (shame on me), and i have recovered data,
but now I don't have sub-directories like Downloads, Music ...
How to recreate those? I can't find anything on this topic for arch.
I can make them using mkdir but that won't for example in future place Chromium downlaods in it (at least i think so).
Thanks!

EDIT: This is file list of /etc/skel
.bash_logout  .bash_profile  .bashrc  .config  .xscreensaver

Last edited by mirko28 (2015-03-18 20:03:23)

Offline

#2 2015-03-18 18:00:35

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [SOLVED] How to recreate home folder subdirectories

You can just create them with mkdir...you can also choose where to download files in Chromium...

But, you should look into this as well: https://www.archlinux.org/packages/extr … user-dirs/

Last edited by nullified (2015-03-18 18:00:56)


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#3 2015-03-18 18:01:03

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 388

Re: [SOLVED] How to recreate home folder subdirectories

Offline

#4 2015-03-18 18:11:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to recreate home folder subdirectories

mirko28 wrote:

I can make them using mkdir but that won't for example in future place Chromium downlaods in it (at least i think so).

Why not? I think you can define where do the downloads go anyway.

What command exactly did you run to remove all this?

Offline

#5 2015-03-18 18:22:24

mirko28
Member
Registered: 2015-03-18
Posts: 11

Re: [SOLVED] How to recreate home folder subdirectories

@nullified and @Radioactiveman

Thanks a lot! I needed to create them manually and change ~/.config/user-dirs.dirs variables to those folders.

@karol

I used sass --watch to compile my .scss files, and sass created ~ folder in my project (I have no idea why). After that i was trying to delete that damned folder using rm -r ~ and that deleted my real ~ folder. I was in project folder i don't know why it deleted home.

Thanks guys you saved me, I was about to reinstall arch wink!

Last edited by mirko28 (2015-03-18 20:06:01)

Offline

#6 2015-03-18 18:26:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to recreate home folder subdirectories

Use

alias rm-"rm -i"

will prompt you for each item with 'are you sure you want to remove foobar'. 'rm -rf' will just nuke w/o prompting.

Offline

#7 2015-03-18 18:39:09

mirko28
Member
Registered: 2015-03-18
Posts: 11

Re: [SOLVED] How to recreate home folder subdirectories

karol wrote:

Use

alias rm-"rm -i"

will prompt you for each item with 'are you sure you want to remove foobar'. 'rm -rf' will just nuke w/o prompting.

Useful tip, thanks! smile I will make backups in future, i needed adventure like this to take something serious.

Offline

#8 2015-03-18 18:55:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to recreate home folder subdirectories

If it's all fixed now, please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB