The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
remove a 350 files in one shot ali560045 Shell Programming and Scripting 2 09-17-2008 09:18 AM
My first shot at variables arcnsparc Shell Programming and Scripting 7 09-07-2008 04:41 PM
change multiple ownership invinzin21 Shell Programming and Scripting 1 01-17-2008 10:51 AM
I am the owner,yet not allowed the change the ownership MSHETTY UNIX for Dummies Questions & Answers 8 09-26-2007 12:08 AM
How do I change ownership of a directory and all of it's files. mborin UNIX for Dummies Questions & Answers 1 02-25-2001 06:24 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-21-2009
Aditya.Gurgaon Aditya.Gurgaon is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 29
To change the ownership at one shot

i have a directory in which i have Multiple files:
Following are they====

-rw-r--r-- 1 root root 886 Jan 21 16:38 trunkn.xsd
-rw-r--r-- 1 root root 244 Jan 21 16:38 trunknameCache.xml
-rw-r--r-- 1 root root 1240 Jan 21 16:38 subscribercache.xsd
-rw-r--r-- 1 root root 406 Jan 21 16:38 subscriberhe.xml
-rw-r--r-- 1 root root 8442 Jan 21 16:38 regi.ini
-rw-r--r-- 1 root root 6346 Jan 21 16:38 protocol.xml
-rw-r--r-- 1 root root 453 Jan 21 16:38 protocol.txt
-rw-r--r-- 1 root root 10638 Jan 21 16:38 log4cxx.xml_template
====================================================
I want to change the owner ship at once.if chown agnity:agnity trunkn.xsd will change only one file ownership...i Want to change ownership at one shot.......

Can any one please Help me on this?
  #2 (permalink)  
Old 01-21-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,876
Either chown agnity:agnity file1 file2 file3 file4 .... or, if there are no other files, chown agnity:agnity *
Take a look at the man page for more info
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0