我在安装tar zxf eclipse-cpp-helios-linux-gtk.tar.gz
eclipse
中的Ubuntu
个文件。请告诉我如何解压缩此文件。
要解压缩,我使用了以下命令
1. $ gunzip file.gz
2. $ gunzip < file.tar.gz | tar xvf -
3. $ gunzip < file.tgz | tar xvf -
答案 0 :(得分:1)
tar -xzf tar-file-name.tar.gz / path / to / location
或使用7Zip工具。右键单击并提取。
答案 1 :(得分:0)
尝试以下
#!/bin/sh
ECLIPSE=/usr/lib/eclipse/eclipse
inject_update_site(){
if [ ! -e "$1" ] ; then
echo "W: Cannot find $1" 2>&1
return 1
fi
cat - >>"$1" <<eof>
repositories/http\:__download.eclipse.org_releases_indigo/enabled=true
repositories/http\:__download.eclipse.org_releases_indigo/isSystem=false
repositories/http\:__download.eclipse.org_releases_indigo/nickname=Indigo Update Site
repositories/http\:__download.eclipse.org_releases_indigo/uri=http\://download.eclipse.org/releases/indigo/
EOF
}
if [ ! -d ~/.eclipse/ ] ; then
$ECLIPSE -clean -initialize || exit $?
artifact=$(find ~/.eclipse \
-regex .*/profileRegistry/.*/org.eclipse.equinox.p2.artifact.repository.prefs)
metadata=$(find ~/.eclipse \
-regex .*/profileRegistry/.*/org.eclipse.equinox.p2.metadata.repository.prefs)
if [ -z "$artifact" ] || [ -z "$metadata" ]; then
echo "W: Cannot inject update-sites, cannot find the correct config." 2>&1
else
( inject_update_site "$artifact" && \
inject_update_site "$metadata" && \
echo "I: Injected update sites" ) || echo "W: Could not inject update sites." 2>&1
fi
fi
exec $ECLIPSE "$@"
参考 How to install the latest version of Eclipse Classic on Ubuntu 12.04 using the terminal?
答案 2 :(得分:0)
tar xzf xxxx.tar.gz
tar xjf xxxx.tar.bz2