qq.rpm qqqq.rpm mv命令还有一个命令,就相当于重命名
[root@bys home]# ls
bys linuxqq-i386.rpm linuxqq.rpm qqqq.rpm
[root@bys home]# cd
[root@bys ~]# rpm -ivh /home/linuxqq.rpm 安装linuxqq.rpm -ivh 参数安装并用#显示安装进程 -i是安装
Preparing...
########################################### [100%] (LINUX下命令多并且命令的参数超多,只记常用的吧)
1:linuxqq
########################################### [100%]
[root@bys ~]# rpm -q linuxqq -q参数是查看是否安装linuxqq这个软件
linuxqq-v1.0.2-beta1
[root@bys ~]# rpm -q linux 提示下要确定软件名称,不是安装文件的名称,要不是会提示查询的软件未安装
package linux is not installed
[root@bys ~]# rpm -q qq
package qq is not installed
[root@bys ~]# rpm -qi linuxqq -qi参数获得安装包的信息(有长输出的方便阅读把查询出来的部分信息删了)
Name : linuxqq Relocations: (not relocatable)
Summary : QQ for Linux v1.0.2 Beta1
Description :
QQ - The most popular free instant messaging program in China.
* Chat with more than 590,000,000 people all over the world.
* Free to download or distribute absolutely.
[root@bys ~]# rpm -ql linuxqq -ql参数是查看安装有哪些文件(输出有删除)
/usr
/usr/bin
[root@bys ~]# rpm -e linuxqq 卸载 使用的是-e参数
[root@bys ~]# rpm -q linuxqq 再查看是否安装,显示未安装
package linuxqq is not installed
[root@bys ~]# ps 显示进程
PID TTY TIME CMD
5931 pts/0 00:00:00 bash
6080 pts/0 00:00:00 ps
[root@bys ~]# ps -f 长格式显示进程
UID PID PPID C STIME TTY TIME CMD
root 5931 5928 0 22:23 pts/0 00:00:00 -bash
root 6082 5931 0 23:00 pts/0 00:00:00 ps -f
[root@bys ~]# top 动态显示进程
top - 23:00:29 up 5:51, 2 users, load average: 0.00, 0.00, 0.00
Tasks: 83 total, 1 running, 82 sleeping, 0 stopped, 0 zombi
Cpu(s): 0.4%us, 2.7%sy, 0.1%ni, 96.7%id, 0.0%wa, 0.0%hi, 0.1%
Mem: 1035108k total, 845704k used, 189404k free, 82680k bu
Swap: 2097144k total, 0k used, 2097144k free, 651488k ca
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME
6083 root 15 0 2200 896 708 R 1.9 0.1 0:00.03
1 root 15 0 2072 592 512 S 0.0 0.1 0:01.07
2 root RT -5 0 0 0 S 0.0 0.0 0:00.00
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.09
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.01
7 root 10 -5 0 0 0 S 0.0 0.0 0:00.00
10 root 10 -5 0 0 0 S 0.0 0.0 0:00.96
11 root 20 -5 0 0 0 S 0.0 0.0 0:00.00
72 root 20 -5 0 0 0 S 0.0 0.0 0:00.00
75 root 10 -5 0 0 0 S 0.0 0.0 0:00.00
77 root 10 |