woensdag 12 september 2018

Copying the same file to two locations

Copying the same file to two locations by using the cp command twice still seems logical but let us suppose we have to copy the file to three, five, or even more locations. Here is how a single command can achieve this purpose.

Syntax:

$ echo [destination1] [desctination2] [destiantion3]..... | xargs -n 1 cp [/location/sourcefile]

https://vitux.com/copying-one-file-simultaneously-to-multiple-locations-through-ubuntu-command-line/

Enlarging Libreoffice window completely with command

 You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.