ubuntu14.04 安装tar.gz文件

UBUNTU14.04 中tar.gz安装方法

# 是root用的,如果想一直用就要先root设置密码sudo passwd root
$ 一般用户
root@big-System-Product-Name:/home# tar -xzvf install_flash_player_11_linux.x86_64.tar.gz
tar (child): install_flash_player_11_linux.x86_64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

   提示了一个错误,那么用

cd命令: cd /home/big/flash
用cd命令进入安装包(install_flash_player_11_linux.x86_64.tar.gz)所在目录
tar -xzvf install_flash_player_11_linux.x86_64.tar.gz -C /home/big/flash

后面加上-C /home/big/flash的意识是: 解压指定的文件到指定的文件



删除文件夹:
1、进入到该文件夹所在目录
2、执行sudo rm -rf 文件夹名

CD..命令:退出一层目录
big@big-System-Product-Name:~$ su root
Password: 
root@big-System-Product-Name:/home/big# cd
root@big-System-Product-Name:~# cd /home/big/flash
root@big-System-Product-Name:/home/big/flash# cd ..
root@big-System-Product-Name:/home/big# cd ..
root@big-System-Product-Name:/home# cd ..


原文地址:https://www.cnblogs.com/lijy/p/4177121.html