LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2005, 10:13 PM   #1
zeshan_b
LQ Newbie
 
Registered: Sep 2004
Location: Arlington
Distribution: installed mandrake
Posts: 19

Rep: Reputation: 0
commands with -cR


I was changing user groups on linux and looking at the man page there was a way to automaticly change the usergroups for files and folders in a directory. I ran the following command:

chgrp -cR groupname /

WARNING!! This command went through the entire system and changed the group to everything on the system with the groupname. It doesn't matter where you run this from.

This is hear to just remind me and others to be carefull when running recursive commands.

I am sure you have your own stories.
 
Old 03-19-2005, 01:02 AM   #2
tedfordgif
Member
 
Registered: Dec 2003
Posts: 43

Rep: Reputation: 15
It doesn't matter where you run it from, it matters where you send it to. In other words, you're telling it to start at the root of the filesystem (/) and recurse (-R) everywhere.

And thankfully I don't have any -R stories of my own...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Commands Instantly Linux - Newbie 3 01-12-2005 01:18 PM
commands tslinux Linux - Newbie 1 12-15-2004 06:54 AM
commands merchtemeagle Linux - Newbie 6 10-12-2004 10:38 AM
Help with commands! snowbaby Linux - Software 1 12-02-2001 02:15 PM
Commands Susan Linux - General 5 10-11-2001 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration