Zip and Unzip Command in Linux Rumi, May 28, 2011 Zipping a Directory zip is a compression and file packaging utility for Unix, Linux, VMS, MSDOS, OS/2, Windows NT, Minix, Atari and Macintosh, Amiga and Acorn RISC OS etc. This utility is installed by default on most Linux computers. he program is useful for packaging a set of files for distribution; for archiving files; and for saving disk space by temporarily compressing unused files or directories. To zip directory called pics in your home directory (/home/you/pics), type the following command: $ zip -r myvacationpics.zip /home/you/pics/ It recurse into directories (all files and directories inside pics) to produced zip file called myvacationpics.zip. Unzipping a Directory unzip command will list, test, or extract files from a ZIP archive, commonly found on MS-DOS systems. The default behavior (with no options) is to extract into the current directory (and subdirectories below it) all files from the specified ZIP archive. By default, all files and subdirectories are recreated in the current directory; the -d option allows extraction in an arbitrary directory (always assuming one has permission to write to the directory). This option need not appear at the end of the command line; it is also accepted before the zipfile specification (with the normal options), immediately after the zipfile specification, or between the file(s) and the -x option. The option and directory may be concatenated without any white space between them, but note that this may cause normal shell behavior to be suppressed. Syntax: unzip {.zip-file-name}-d {/path/to/extract} For example extract package.zip into /opt, enter: # unzip package.zip -d /opt # cd /opt # ls If you want to rename package directory use mv command: # mv package newname Related Administrations Configurations (Linux)
Setting up PHPMyAdmin to Usermin Module June 12, 2008 Webmin and Usermin are simply great- but it lacks the most widely used PhpMyadmin support! However, after googling for a while I got a solution for this. First need to download and setup the usermin module- here’s the URL for wbm package- http://awstats.sourceforge.net/files/phpmyadmin-1.0.wbm How to install PHPMyAdmin Module ? Go… Read More
Softether Linux Client using Bridged with Softether VPN Server August 2, 2021 It’s assumed that you already have a vpn server deployed in your network, created user, password and enabled bridged network during vpn server configuration. A sample snippet of VPN Server Bridge enabled is below- So here’re the setup value- On Softether Server IP- 103.146.221.30/24 and Gateway- 103.146.221.1 Client Server IP-… Read More
Configuring SpamAssassin for Postfix on CentOS May 23, 2020 In the process of receiving email, spamassassin will stand between the outside world and the email services running on your server itself. If it finds, according to its definition rules and configuration, that an incoming message is spam, it will rewrite the subject line to clearly identify it as such…. Read More