New answers tagged


suggestion: zfs send > file scp file server-at-site2: ssh server-at-site2 zfs receive < file ssh server-at-site2 cat file | ssh second-server-at-site2 zfs receive That requires two transfers, but presumably the second will be faster (because local network, etc)


Your shell code has two issues: The echo should not be there. The variable $i is mistyped as $1 in the destination file name. To make a copy of a file in the same directory as the file itself, use cp thefile thecopy If you insert anything else in there, e.g. cp thefile theotherthing thecopy then it is assumed that you'd like to copy thefile and ...


Short and precise < test.ogg tee test{1..100}.ogg or even better do tee test{1..100}.ogg < test.ogg >/dev/null see tee command usage for more help. Update as suggested by @Gilles, using tee has the defect of not preserving any file metadata. To overcome that issue, you might have to run below command after that: cp --attributes-only --...


for i in {1..100}; do cp test.ogg "test_$i.ogg" ; done


When you right click the file or folder in Nemo, there will be a + sign at the top. Clicking that will expand the menu and give you the options you want. For what it's worth, I found this functionality at this link:


That's a job for pax. pax is a standard POSIX command; some Linux distributions omit it from the default installation, so you may need to install the package explicitly. You don't get the full power of Perl, just basic sed regex replacement, but that's good enough for your use case. pax -rw -pe -s'|/pars/|/|' -s'|/fts/|/|' -s'|innobase/include|include|' … ...


OK, so I managed to get away with plain old sed like this. ls -1 \ storage/{innobase,xtradb}/pars/{,pars0grm.y,pars0lex.l,} \ storage/{innobase,xtradb}/fts/{,fts0blex.l,,fts0pars.y,,fts0tlex.l} \ storage/innobase/include/fts0[bt]lex.h \ | sed -re 'h; s|/pars/|/|; s|/fts/|/|; s|innobase/...


Unix philosophy: one tool does one thing (very well), then combine tools. I suggest that you use the tools you know. The tools that have all the features and options you need and know/master already. So, use cp, rsync, scp or whatever, then use your favorite rename command.


You could partition your new disk drive to make enough room for files for each source partition you have. Then boot into single user mode and copy files with tar from original partitions to their 'mirrors' one by one: cd /source/mount/point; tar --one-file-system cf -|tar -C /mirror/mount/point xf - add --acls, --selinux and/or --xattrs options to the '...

Top 50 recent answers are included