LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-06-2002, 11:12 PM   #1
nero64
LQ Newbie
 
Registered: Nov 2002
Location: My bedroom
Distribution: RH 7.1
Posts: 29

Rep: Reputation: 15
Linux commands....


Can you rename and move at the same time using the mv command?

Also

My Linux+ book says that the chown command can be used to change user and group ownership. I can do the former but not the latter. I guess it is wrong.
 
Old 12-07-2002, 12:45 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
mv ~/xxx /tmp/yyy for instance?
Yes.

Sure you can change both at a time with chown.
Of course not to a user/group that you're not/no
member of ...

like:
johnDoe@localhost> chown janeDoe:bin .bashrc
won't work ...

If you're root 'tis a whole different story.... :)

Cheers,
Tink
 
Old 12-07-2002, 10:34 AM   #3
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
use

chown user.group file

obviously you must have permissions to alter the ownership in this way
 
  


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
linux commands zexter Linux - Newbie 5 11-04-2004 03:37 PM
linux commands help kyborg Linux - Newbie 4 09-28-2004 02:31 AM
Linux commands Delmarc Linux - Newbie 9 10-22-2003 11:39 PM
Linux commands Shikha Linux - General 3 11-27-2002 10:40 AM
Linux Commands AMDPwred Linux - General 23 01-11-2002 01:23 PM


All times are GMT -5. The time now is 12:28 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