特殊:Badtitle/NS100:FileCompression:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第11行: | 第11行: | ||
Many archives ( [[tar .tar]],[[targz .tar.gz]],[[zip .zip]] ) Can easily be opened simply by using Archive Manager. | Many archives ( [[tar .tar]],[[targz .tar.gz]],[[zip .zip]] ) Can easily be opened simply by using Archive Manager. | ||
To open these formats, click on them with the right mouse button, and choose "Extract here". like this: <br> | To open these formats, click on them with the right mouse button, and choose "Extract here". like this: <br> | ||
https://help.ubuntu.com/community/FileCompression?action=AttachFile&do=get&target=extracthere.jpg | |||
Doublhttps://help.ubuntu.com/community/FileCompression?action=AttachFile&do=get&target=archivemanager.jpgthe Archive Manager for other tasks.<br> | |||
attachment:archivemanager.jpg | attachment:archivemanager.jpg | ||
第38行: | 第38行: | ||
Install the package <code><nowiki>p7zip</nowiki></code> from the Universe repository (AddingRepositoriesHowto). | Install the package <code><nowiki>p7zip</nowiki></code> from the Universe repository (AddingRepositoriesHowto). | ||
To open these files in [[basic Archive Manager]] You need to tell Ubuntu how to deal with these files. Right-click on them and choose | To open these files in [[basic Archive Manager]] You need to tell Ubuntu how to deal with these files. Right-click on them and choose Propertihttps://help.ubuntu.com/community/FileCompression?action=AttachFile&do=get&target=openwith.jpg With. Click on it and choose the Add button. Select the program <code><nowiki>Archive Manager</nowiki></code>. <br> | ||
attachment:openwith.jpg | attachment:openwith.jpg | ||
2007年5月13日 (日) 23:47的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/FileCompression }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/af | • {{#if: php5|Afrikaans| [[::FileCompression/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/ar | • {{#if: php5|العربية| [[::FileCompression/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/az | • {{#if: php5|azərbaycanca| [[::FileCompression/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::FileCompression/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/bg | • {{#if: php5|български| [[::FileCompression/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/br | • {{#if: php5|brezhoneg| [[::FileCompression/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/ca | • {{#if: php5|català| [[::FileCompression/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/cs | • {{#if: php5|čeština| [[::FileCompression/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/de | • {{#if: php5|Deutsch| [[::FileCompression/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/el | • {{#if: php5|Ελληνικά| [[::FileCompression/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/es | • {{#if: php5|español| [[::FileCompression/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/fa | • {{#if: php5|فارسی| [[::FileCompression/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/fi | • {{#if: php5|suomi| [[::FileCompression/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/fr | • {{#if: php5|français| [[::FileCompression/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/gu | • {{#if: php5|ગુજરાતી| [[::FileCompression/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/he | • {{#if: php5|עברית| [[::FileCompression/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/hu | • {{#if: php5|magyar| [[::FileCompression/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/id | • {{#if: php5|Bahasa Indonesia| [[::FileCompression/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/it | • {{#if: php5|italiano| [[::FileCompression/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/ja | • {{#if: php5|日本語| [[::FileCompression/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/ko | • {{#if: php5|한국어| [[::FileCompression/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/ksh | • {{#if: php5|Ripoarisch| [[::FileCompression/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/mr | • {{#if: php5|मराठी| [[::FileCompression/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/ms | • {{#if: php5|Bahasa Melayu| [[::FileCompression/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/nl | • {{#if: php5|Nederlands| [[::FileCompression/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/no | • {{#if: php5|norsk| [[::FileCompression/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/oc | • {{#if: php5|occitan| [[::FileCompression/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/pl | • {{#if: php5|polski| [[::FileCompression/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/pt | • {{#if: php5|português| [[::FileCompression/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/ro | • {{#if: php5|română| [[::FileCompression/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/ru | • {{#if: php5|русский| [[::FileCompression/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/si | • {{#if: php5|සිංහල| [[::FileCompression/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/sq | • {{#if: php5|shqip| [[::FileCompression/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/sr | • {{#if: php5|српски / srpski| [[::FileCompression/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/sv | • {{#if: php5|svenska| [[::FileCompression/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/th | • {{#if: php5|ไทย| [[::FileCompression/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/tr | • {{#if: php5|Türkçe| [[::FileCompression/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/vi | • {{#if: php5|Tiếng Việt| [[::FileCompression/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/yue | • {{#if: php5|粵語| [[::FileCompression/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/zh | • {{#if: php5|中文| [[::FileCompression/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/zh-hans | • {{#if: php5|中文(简体)| [[::FileCompression/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}FileCompression}}/zh-hant | • {{#if: php5|中文(繁體)| [[::FileCompression/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|:FileCompression|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :FileCompression/zh | | {{#ifexist: FileCompression/zh | | {{#ifeq: {{#titleparts:FileCompression|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:FileCompression|1|-1|}} | zh | | }}
Parent: AccessoriesApplications
Files can be compressed in a variety of formats. Some of these can be opened by Ubuntu automatically. Others can be handled if you install extra packages.
Basic Archives
Many archives ( tar .tar,targz .tar.gz,zip .zip ) Can easily be opened simply by using Archive Manager.
To open these formats, click on them with the right mouse button, and choose "Extract here". like this:
Doublhttps://help.ubuntu.com/community/FileCompression?action=AttachFile&do=get&target=archivemanager.jpgthe Archive Manager for other tasks.
attachment:archivemanager.jpg
Non-archive formats
These formats are not technically archives, but can be opened by Archive Manager:
Deb installer packages (.deb)
These are actually programs that need to be installed. If you are using Ubuntu 6.06 Dapper Drake or higher you can double-click .deb files to install them. If not, open a terminal, go to the directory the .deb file is in by typingcd "DIRECTORYNAME"
, and typesudo dpkg -i DEBNAME.deb
. Warning: Installing programs from .debs can seriously damage your system.
CD Images (.iso)
These are images to be burned on to a cd. See UbuntuHelp:BurningIsoHowto
Java Archives (.jar)
These are java programs. See UbuntuHelp:Java
Firefox extensions (.xpi)
These are actually extensions for Mozilla Firefox. To install them, launch Firefox and choose Open File from the File menu. Choose the .xpi file and click ok. Firefox will then install the extension. Warning: Installing certain extensions may damage your Firefox profile
Archive formats
7zip (.7z)
7zip is a new type of free archive format.
Install the package p7zip
from the Universe repository (AddingRepositoriesHowto).
To open these files in basic Archive Manager You need to tell Ubuntu how to deal with these files. Right-click on them and choose Propertihttps://help.ubuntu.com/community/FileCompression?action=AttachFile&do=get&target=openwith.jpg With. Click on it and choose the Add button. Select the program Archive Manager
.
attachment:openwith.jpg
After this, you can use these files normally from basic Archive manager
Ace (.ace)
ACE archives are relatively uncommon and are extraced using the 'unace' utility
To add support for it, install unace
from the universe repository (AddingRepositoriesHowto).
This cannot be used from basic Archive Manager so must be used on the command line. To extract .ace files, run the following command:
unace x file.ace
If you encounter problems (like file compressed with unknown method), the file you are trying to decompress is too new for version of unace in repositories. Go to their Download center and grab their Unace for linux. Inside the archive you will find newer version of unace (no compiling needed) which can be safely used instead the version from repositories. To install this file run the command:
sudo mv /location/of/downloaded/unace /usr/local/bin/unace
Rar (.rar)
Rar is a non-free archive format created by Rarsoft. There are several versions of rar and the newest version, 3.0, is not supported by any free tools.
To add support for it, install the package from the multiverse repository (AddingRepositoriesHowto).
Ubuntu 6.06 (Dapper Drake)
sudo apt-get install unrar
To extract a .rar file, open the terminal and type unrar x RARFILENAME.rar
Password protected .rar files
These Cannot be opened in the Archive Manager. You have to use the unrar
command from the terminal.
GNU Tar (.tar)
The tar archive is an old archive format made for tapes which consist of files added to a single file, one after the other.
These files can be extracted using the basic Archive Manager
GNU Tar GZ (.tar.gz .tgz)
This archive is a tar tar archive, which has then been zipped using 'gzip' which is an open source zip utility.
These files can be extracted using basic Archive Manager Anchor(tarbz2)
GNU Tar bzip2 (.tar.bz2)
This archive is a tar tar archive, which has then been zipped using 'bzip2' which is an open source zip utility which results in smaller file sizes than targz gzip however uses more processing power.
These files can be extracted using the basic Archive Manager Anchor(zip)
Zip (.zip)
This is an older archive (and compression) format that originates with PKZip developed by Phil Katz in 1989. It has been in use with DOS and windows for many years.
These files can be extracted using the basic Archive Manager
Command Line Usage
Many of these utilities can be used on the command line, sometimes this is quicker or easier than using the basic Archive Manager
for example to extract a tar bz2 file
Example: file.tar.bz2
tar jxvf file.tar.bz2
This will show you what it extracts, and in most cases will be in a sub directory of file
You can also make these files on the command line like so:
tar jcvf file.tar.bz2 dir1 dir2 ...
file.tar.bz2 is the name of the tar file we wish to create and dir1 dir2 are the names of the directories and/or files we wish to include in the tar.bz2 archive.
to use gzip, simply put zxvf
or zxvf
in place of the jxvf
or jcvf
in the command line
to zip and unzip, simply run
unzip file.zip
and
zip file.zip dir1 dir1 ...