Re: open SRPMS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ed Wilts wrote:

On Tue, Aug 16, 2005 at 03:05:56PM +0600, lasa wrote:
I am new to this really. Sorry for asking again.
How am I creating thease directory structure. Command Mkdir I know and
why it carries , (comma) mark in between these directors.(line needed
some simple explanation)
------# mkdir -p ~/REDHAT/{RPMS,SRPMS,SPECS,BUILD,SOURCES}-------??

This is equivalent to the following:
# mkdir -p ~/REDHAT
# mkdir -p ~/REDHAT/RPMS
# mkdir -p ~/REDHAT/SRPMS
# mkdir -p ~/REDHAT/SPECS
# mkdir -p ~/REDHAT/BUILD
# mkdir -p ~/REDHAT/SOURCES

Thanks for Stuart for showing me that syntax - I wasn't aware of that!
You can also use it with the ls command:
# ls /etc/{cron.daily,cron.weekly}
or more interestingly:
# ls /etc/cron{.daily,.weekly}

the best use for that syntax is for renaming files:

cp file.conf{,.old}

This is equivelent to:

cp file.conf file.conf.old

--
Jason Huddleston, RHCE, CCSA
Assistant Coordinator Internet Services and Security
Ozarks Technical Community College
huddlesj@xxxxxxx
417-447-7532

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux