Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox Bookmark and Share

7z command

From RZWiki

Image:linux-logo-large.png

A CLI program available on Linux platforms; used to test the integrity of and display and extract the contents of existing 7-Zip archives.

Contents

Image:Vm-power-on-medium.png Usage Syntax

7z [font color=deepskyblueoptions/font] [[font color=darkorangedir//font]font color=darkorangearchive-name.7z/font]

Common options include;

  • font color=deepskybluee/font - extract files from archive without preserving path (i.e. in current directory)
  • font color=deepskybluex/font - extract files from archive preserving path
  • font color=deepskybluel/font - list files in archive
  • font color=deepskybluet/font - test integrity of archive

Image:Vm-power-on-medium.png Usage Examples

7z font color=deepskybluee/font font color=darkorange/etc/test.7z/font - extract files from archive /etc/test.7z to the current working directory

7z font color=deepskybluex/font font color=darkorangetest.7z/font - extract files from archive test.7z to the path specified in the archive

Image:accessories-text-editor-v2-medium.png Linux Usage Notes

With most Linux or Unix commands;

  • Non root users may need to prefix commands with the sudo command, for example: sudo chmod 644 *
  • Brief help can be displayed using the -h or --help parameter, for example: chmod --help
  • A full command manual can be displayed using the man command followed by the command name, for example: man chmod
  • Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
  • Version information can normally be display using the -v, -V or --version parameter, for example: chmod --version. However, this paramater is also frequently used to display verbose output.

noinclude/noinclude

Image:emblem-package-medium.png Installation

7-Zip can be installed or upgraded as follows, depending on your platform;

  • Ubuntu: apt-get install p7zip or apt-get install p7zip-full
  • Fedora Core: yum install p7zip
  • FreeBSD: pkg_add -v -r p7zip

Image:Folder-medium.png Related Files

The 7z executable is normally found here: /usr/bin/7z

Image:icemon-medium.png Related Commands

See the unrar command, tar command, zip command and unzip command articles for information on other file compression utilities available under Linux.

Image:icemon-medium.png Related Articles

Information on other Linux commands Image:Tux-small.png

Information on F5 BigIP commands Image:F5-logo-small.png

Information on Cisco commands Image:Cisco-logo-small.png

Information on Vyatta commands Image:Vyatta-logo-small.png

Information on Extreme commands Image:Extreme-logo-small.png

Information on Nortel commands Image:Nortel-logo-small.png

Information on Zebra commands

Information on Windows commands Image:Preferences-system-windows-small.png

Information on Secure Platform commands

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to sjiveson#routerzone.eu
(replacing the # with an @)


Site Toolbox:

Personal tools
This page was last modified on 7 June 2010, at 15:36. - This page has been accessed 35 times. - Disclaimers - About RZWiki
Powered by MediaWiki