linux 常用命令

查看tomcat相关线程

ps -aux|grep tomcat


查看所有安装的内核

dpkg --get-selections|grep linux


apt-get --purge remove <package_name>

If apg-get --purge fails to remove the package try:

Check the deinstalled packages to make sure you really want to remove them


dpkg --get-selections | grep deinstall | cut -f1


Execute dpkg --purge

dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1`



查看哪个服务在用8080端口

grep 8080 /etc/services


查看8080端口的服务连接现在有哪些

netstat -pan|grep 8080


how to remove ruby?

$ which ruby
/usr/bin/ruby

Use this to find out what it actually is:

$ readlink -f /usr/bin/ruby
/usr/bin/ruby1.8

Use this to find out what package it belongs to:

$ dpkg -S /usr/bin/ruby1.8
ruby1.8: /usr/bin/ruby1.8

Use this to uninstall that:

$ apt-get purge ruby1.8


#远程复制

scp root@172.26.100.145:/data/cmms_convert.sql ./


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值