![]() You may also want to read about the progress command which helps to monitor the progress of ( cp, mv, dd, tar, etc.) commands that are presently running in Linux. That’s all, you can send us questions in relation to the topic or any feedback through the comment form below. Try to read through the man pages of cp, echo and xargs commands to find useful and advanced usage information: $ man cp ![]() -v – enables verbose mode to show details of the copy operation.-n 1 – tells xargs to use at most one argument per command line and send to the cp command. ![]() In the form above, the paths to the directories (dir1,dir2,dir3….dirN) are echoed and piped as input to the xargs command where: ![]() To do away with this problem, you can employ the echo command, a pipe, xargs command together with the cp command in the form below: # echo /home/aaronkilik/test/ /home/aaronkilik/tmp | xargs -n 1 cp -v /home/aaronkilik/bin/sys_info.sh Step 3: You have now selected all files at once and can copy and move them. Step 2: Press the Shift key and click on the last file. Step 2: Hold down Ctrl and click on all the files that you want to select additionally. # cp -v /home/aaronkilik/bin/sys_info.sh /home/aaronkilik/tmpĪssuming that you want to copy a particular file into up to five or more directories, this means you would have to type five or more cp commands? Step 1: Click on the first file to be selected. Consider the commands below, normally, you would type two different commands to copy the same file into two separate directories as follows: # cp -v /home/aaronkilik/bin/sys_info.sh /home/aaronkilik/test ![]()
0 Comments
Leave a Reply. |