Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-18-2005, 11:13 PM   #1
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, 02:02 AM   #2
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...


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 02:18 PM
commands tslinux Linux - Newbie 1 12-15-2004 07:54 AM
commands merchtemeagle Linux - Newbie 6 10-12-2004 11:38 AM
Help with commands! snowbaby Linux - Software 1 12-02-2001 03:15 PM
Commands Susan Linux - General 5 10-11-2001 03:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:12 PM.

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