ubuntu常用命令

来源:互联网 发布:汇智通兼职数据录入 编辑:程序博客网 时间:2024/06/18 05:15

一、.run文件安装

1、cd ~/Download    2、chmod +x name.run    3、sudo ./name.run

或者   sh name.run

二、.deb文件的安装

1、sudo dpkg -i name.deb  或者  sudo gdebi name.deb(或者选择右键用gdebi打开)

三、文件的复制

参考链接:http://www.linuxidc.com/Linux/2008-11/17179.htm

例如:将/home/wally/test中 test.c 的文件复制到/local/arm 中,命令为:
cd /wally/test(进入目录)
ls
sudo cp -i test.c /local/arm(拷贝到另一地址)

四、文件重命名

参考链接:http://www.linuxidc.com/Linux/2015-01/111116.htm

mv fromfile tofile
如把文件a.txt得命名为b.txt,可以是mv a.txt b.txt。

原创粉丝点击