Friday 14 November 2014

Want to Copy Single file to Mulitple Location in Linux?


If you are looking for shorter way to copy a file from one location to another location, follow below:

To perform above operation you have to user xargs command in Linux.

Suppose you want to copy a file demo.txtt to three different directory.


echo directory1 directory2 directory3 | xargs -n 1 cp -i demo.txt

The -i option of cp command means that you will be asked whether to overwrite a file in the current directory with the demo.txt.


The -n Use at most max-args arguments per command line.

Enable 'HTML Manager'- Apache Tomcat

 Enable 'HTML Manager'- Apache Tomcat Go to Apache-tomcat's home directory and edit the tomcat-users.xml ${apache_home}/conf/tom...