Install bash command


 
Thread Tools Search this Thread
Operating Systems Linux Install bash command
# 1  
Old 11-06-2008
Install bash command

Hello,

I am trying to copy some dirs and files over from one part of my server to the other with groups, owners and permissions so . . .

I am using the command:

install -m <777> -o <owner> -g <group> /<source>/* /<destination>

This works fine for the files but gives me "install: omitting directory" for the directories.

I have tried cp -r /<source>/* <destination>

but this does'nt give me the relevant groups owners etc.

Can anyone help?

Cheers

Dave
# 2  
Old 11-06-2008
You can try the cpio command:

Code:
cd source_dir

find * -print | cpio -pvdmu destination_dir

Regards
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run several bash commands put in bash command line?

How to run several bash commands put in bash command line without needing and requiring a script file. Because I'm actually a windows guy and new here so for illustration is sort of : $ bash "echo ${PATH} & echo have a nice day!" will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies

2. HP-UX

BASH install

Hi im trying to install BASH on my hp-ux i have the depot file on my machine. im runnig the command: swinstall -s "name of the file" and on the very first screen im unable to pass the first phase, please see the screen shots attached. what am i doing wrong? im logged in as "root" (2 Replies)
Discussion started by: guy3145
2 Replies

3. Solaris

How to install bash 3.0?

Solaris has bash 3.2 but i need bash 3.0, How we can do this and link for binaries (1 Reply)
Discussion started by: Deepak416
1 Replies

4. AIX

Need to install the command less

Hello, I need to install the command less I tried to download the RPM packages but ALL the links of the packages are non-downloadable. Any help? Regards Ahmed Amer Cairo,Egypt (8 Replies)
Discussion started by: ahmedamer12
8 Replies

5. Shell Programming and Scripting

Automated Bash Install Script

I'm making an automated bash install script. When you install mysql-server using apt-get, there's a blue dialog screen where it wants you to chose your mysql root password. Is there a way to pre-define the password in the apt-get command, or have it not chose a root password? It's not a... (2 Replies)
Discussion started by: Matezius
2 Replies

6. OS X (Apple)

Where should I install an alias file under UNIX bash ?

I have a file named 'aliases' which contains a list of aliases like: alias loc='locate' alias h='history' alias .='pwd' alias ..='cd ..' alias cd..='cd .. ; pwd' .............................. Where should I put this file (alias) so when Terminal launches .bash and thus a shell at... (1 Reply)
Discussion started by: shub22
1 Replies

7. UNIX for Dummies Questions & Answers

Running set options from the command line and bash command

I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing set you can also use them "on the command line when running a script..." and it lists this in a small table: set -o option Command Line... (5 Replies)
Discussion started by: Straitsfan
5 Replies

8. AIX

Install bash on AIX

Hi, Im trying to install bash on AIX, I have rpm installed but get: rpm --install bash-3.0-19.3.ppc.rpm error: failed dependencies: libc.so.6 is needed by bash-3.0-19.3 libc.so.6(GLIBC_2.0) is needed by bash-3.0-19.3 libc.so.6(GLIBC_2.1) is needed by... (0 Replies)
Discussion started by: chris5126
0 Replies

9. HP-UX

how to install bash

i'm newbie hp-ux . i want to install on my hp-ux B.11.23. actually i installed bash but when i run # bash /usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'. Killed how can i install bash ? any doc or how to ? best regards (3 Replies)
Discussion started by: galkan
3 Replies

10. Solaris

Need Help To Install Bash

Hi, I'm kinda new to doing anything too complicated on unix. I'm trying to install bash 2.05b and have run into trouble. I have got the source code in a directory I have created called bashInstall. I have run the config by doing.... sh ./configure and I get the following => aseries > sh... (5 Replies)
Discussion started by: ThePicklerUK
5 Replies
Login or Register to Ask a Question