Linux 常用命令,写给初学者。
Tofloor
poster avatar
原名無用
deepin
2015-01-26 02:01
Author
1.更新软件源数据
  1. sudo apt-get update
Copy the Code

2.更新已安装软件
  1. sudo apt-get upgrade
Copy the Code

3.更新已安装的软件和依赖关系
  1. sudo apt-get dist-upgrade
Copy the Code
                               
4.通过安装包或卸载包来修复依赖错误
  1. sudo apt-get install -f
Copy the Code

5.卸载软件(假设卸载QQ),如果不清楚软件名全称可以使用
  1. sudo dpkg -l | grep qq
Copy the Code

可以看到全称为 deepinwine-qq
然后执行
  1. sudo apt-get remove deepinwine-qq
Copy the Code
Reply Favorite View the author
All Replies
136******54
deepin
2015-01-26 02:10
#1
我也凑个热闹,Ubuntu命令技巧
http://wiki.ubuntu.org.cn/Ubuntu%E6%8A%80%E5%B7%A7
Reply View the author
Lotuso
deepin
2015-01-26 07:18
#2
sudo apt-get dist-upgrade   系统更新
sudo apt-get install -f  已安装软件依赖修复

sudo 申请特权(管理员的操作能力) dpkg 包管理器 cp   复制 mv  裁剪/移动

新人在使用linux的时候要多百度一下相关命令的作用。
Reply View the author
Tonys
deepin
2015-01-26 18:17
#3
很实用的命令,谢谢楼主分享。
Reply View the author
136******54
deepin
2015-01-26 21:06
#4
[quote]1.更新软件源数据
  1. sudo apt-get update
Copy the Code

2.更新已安装软件
  1. sudo apt-get upgrade
Copy the Code

3.更新已安装的软件和依赖关系
  1. sudo apt-get dist-upgrade
Copy the Code
                               
4.通过安装包或卸载包来修复依赖错误
  1. sudo apt-get install -f
Copy the Code

5.卸载软件(假设卸载QQ),如果不清楚软件名全称可以使用
  1. sudo dpkg -l | grep qq
Copy the Code

可以看到全称为 deepinwine-qq
然后执行
  1. sudo apt-get remove deepinwine-qq
Copy the Code
Deepin若能出個手冊或是教程就更好了。[/quote]
文档文件夹下有“用户手册”
再者,这些命令是ubuntu系通用的,一搜一大堆
Reply View the author
skyline
deepin
2015-01-31 05:10
#5
dpkg是软件包的命令集,-l是列出软件包,-r才是删除软件,-s可以查看软件带来了哪些文件,grep是过滤有某内容的文件
Reply View the author
httpe
deepin
2015-01-31 08:29
#6
然后如果你看到这里还是觉得一头雾水……
恩,那就对了……因为楼上的许多命令都木有给出具体用法,于是请参照手册,用如下命令可以看到:
man <你想查询用法的命令>
如查询命令ls的用法:
man ls
Reply View the author
kingskill
deepin
2015-01-31 19:55
#7
马克一下作为查询~
Reply View the author
tyrion
deepin
2015-02-28 05:24
#8
Mark
Reply View the author
Deepinwzl
deepin
2015-03-01 03:11
#9
cd ls pwd mv cp sudo su apt-get 这些也挺常用的吧
Reply View the author