... the dreaded Command Line, [worked like a Champ]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
Timberbeast
Level 3
Level 3
Posts: 113
Joined: Tue Jun 25, 2013 10:07 pm
Location: Roseburg, Oregon

... the dreaded Command Line, [worked like a Champ]

Post by Timberbeast »

When I switched from Olivia-mate to Petra-mate, I used the Backup tool to save a bunch of files. When it came to replace those files in their rightful home, it seems that that big bully, root, stole a bunch of them from me. Now, I have been studying about chown and chmod, but don't quite have my head wrapped around them yet. Here's what I've got.

[img]/home/larry
larry@oldDell ~ $ ls -l
total 52
drwx------ 2 root root 4096 Aug 3 17:19 ArtWork
drwxr-xr-x 85 larry larry 4096 Dec 5 05:52 Calibre Library
drwx------ 33 root root 4096 Dec 2 07:24 Computer_Library
drwxr-xr-x 2 larry larry 4096 Dec 4 12:29 Desktop
drwxr-xr-x 2 larry larry 4096 Dec 3 09:34 Documents
drwxr-xr-x 51 larry larry 4096 Dec 5 09:56 Downloads
drwx------ 101 root root 4096 Nov 29 20:50 Fiction_Library
drwx------ 11 root root 4096 Nov 29 21:24 History_Library
drwxr-xr-x 2 larry larry 4096 Dec 3 09:34 Music
drwxr-xr-x 2 larry larry 4096 Dec 3 09:34 Pictures
drwxr-xr-x 2 larry larry 4096 Dec 3 09:34 Public
drwxr-xr-x 2 larry larry 4096 Dec 3 09:34 Templates
drwxr-xr-x 2 larry larry 4096 Dec 3 09:34 Videos
larry@oldDell ~ $ umask
0022[/img]

As you can see I was looking at those files very diligently, but I could see that I would need a little help to keep trashing these files. As you can also see that there are a bunch of nested files, so I would like to use the -R (recursive) argument to steal those files back with one whack, if I could. Those are the only copies of those files I have. It wouldn't be the end of the world if I lose them, but I would sure love to have them back if I could. Any of you gurus got a minute? I sure would appreciate it.

Thanks :mrgreen:
larry
Last edited by Timberbeast on Thu Dec 05, 2013 11:28 pm, edited 1 time in total.
LM 17.1 Mate. There's no windows in this box. Not any more :D
User avatar
WharfRat
Level 21
Level 21
Posts: 13909
Joined: Thu Apr 07, 2011 8:15 pm

Re: A little help with the dreaded Command Line, please?

Post by WharfRat »

Larry,

I'm guessing that you're trying to reclaim the folders that are now owned by root e.g., Fiction_Library and History_Library :?:

If that's the case then you can chown all of /home/larry which will give the ownership to you.

Code: Select all

sudo chown -R larry:larry /home/larry
Good luck :wink:
ImageImage
User avatar
Timberbeast
Level 3
Level 3
Posts: 113
Joined: Tue Jun 25, 2013 10:07 pm
Location: Roseburg, Oregon

Re: A little help with the dreaded Command Line, please?

Post by Timberbeast »

Thank you Wharf Rat! Yup, that syntax was I was needing. I need to save that the old fashioned way, pen and paper, so I don't lose it. Now I can beat that bully, Root. Look out, Root. Here I come. Yea Hah...........

Thanks again Wharf Rat,
larry
LM 17.1 Mate. There's no windows in this box. Not any more :D
User avatar
ericramos1990
Level 3
Level 3
Posts: 183
Joined: Sun Jul 21, 2013 11:54 am

Re: A little help with the dreaded Command Line, please?

Post by ericramos1990 »

WharfRat wipes problems in seconds. :lol:
Keep on tuxin' =)
User avatar
Timberbeast
Level 3
Level 3
Posts: 113
Joined: Tue Jun 25, 2013 10:07 pm
Location: Roseburg, Oregon

... dreaded Command Line [worked like a Champ]

Post by Timberbeast »

Sweet, got it. Now I can study on those commands some more. Root is still whimpering a little. Take THAT!

Thanks again, Wharf Rat,
larry
LM 17.1 Mate. There's no windows in this box. Not any more :D
User avatar
Timberbeast
Level 3
Level 3
Posts: 113
Joined: Tue Jun 25, 2013 10:07 pm
Location: Roseburg, Oregon

Re: A little help with the dreaded Command Line, please?

Post by Timberbeast »

Don't take him long, does it. :lol:

larry
LM 17.1 Mate. There's no windows in this box. Not any more :D
NuxNubkins
Level 1
Level 1
Posts: 36
Joined: Fri Oct 04, 2013 5:51 pm

Re: ... the dreaded Command Line, [worked like a Champ]

Post by NuxNubkins »

How large are those library directories? You could always use a cloud solution like Dropbox. An ex girlfriend pointed me to it around a year ago and I've used it ever since. It's great for synching up my library of programming references across multiple devices so I don't even have to think about it.
User avatar
Timberbeast
Level 3
Level 3
Posts: 113
Joined: Tue Jun 25, 2013 10:07 pm
Location: Roseburg, Oregon

Re: ... the dreaded Command Line, [worked like a Champ]

Post by Timberbeast »

Those files aren't huge. About 1.2 gig. I'll check Dropbox out. I like the synching feature.

larry
LM 17.1 Mate. There's no windows in this box. Not any more :D
Post Reply

Return to “Newbie Questions”