You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cp - copy from www to dev3 (recursive, include hidden files)
$ cp -avr /www/. /dev3
-a : Preserve the specified attributes such as directory an file mode, ownership, timestamps, if possible additional attributes: context, links, xattr, all.
-v : Explain what is being done.
-r : Copy directories recursively.
Split a single directory including all subdirectories into multiple zip packages of 10 MB
$ zip -r -s 10m archive.zip directory/
You use an integer and a multiplier to define the maximum size of each package: The multiplier can
currently be one of k (kilobytes), m (megabytes), g (gigabytes), or t (terabytes).
To unzip the file, the "zip" manpage explains that you should use the "-s 0`" switch:
zip -s 0 split.zip --out unsplit.zip
will convert a split archive to a single-file archive.
So, you first "unsplit" the ZIP file using the "-s 0" switch: