LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 10: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-06-2002, 11:45 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 09:34 AM   #3
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
use

chown user.group file

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


Reply



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

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

All times are GMT -5. The time now is 01:15 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
Open Source Consulting | Domain Registration