It's not uncommon for system administrators to zip files and directories, especially if they are frequently sending data over email. Personally, I prefer it over the UNIX compress command. By the way, the UNIX zip command is compatible with the PC pkzip command. Here's the syntax.
Files and directories added to myzipfile
# zip -r myzipfile esofthub softhub.tar archive_dir mypic.gif mydir restrict_dir
# ls -l myzipfile.zip
Don't try to compress these file extensions
# zip -rn .zip: .jpg: .png: .gif myzipfile esofthub softhub.tar archive_dir mypic.gif mydir restrict_dir
Files only
#zip zipfile myfile1 myfile2 myfile3 myfile4 ...
#ls -l zipfile.zip
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
0 comments:
Post a Comment