linux 命令,文档

 

which

 

whereis

 

 

Linux常用命令全集

http://linux.chinaitlab.com/special/linuxcom/Index.html

 

 

vi命令一lan表

http://www.21ds.net/article/23/308

 

 

 

pwd

查看当前路径

 

find / -name profile

查找 指定 名的 。。

 

 

 

linux修改启动项

 

查看启动项: chkconfig --list
增加启动项: chkconfig –add mysqld start
Chkconfig –add httpd start
Chkconfig –level 5 httpd on
Chkconfig –level 5 iptables off
Chkconfig –level 5 mysqld off
linux 启动项 2007-10-29 11:36 修改 /etc/rc.local 就可以了
例如:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
 
touch /var/lock/subsys/local
 
echo 250 32000 100 128 > /proc/sys/kernel/sem
echo 2147483648 > /proc/sys/kernel/shmmax
echo 4096 > /proc/sys/kernel/shmmni
echo 2097152 > /proc/sys/kernel/shmall
 
/usr/local/apache/bin/apachectl start
Linux查看端口使用状态、关闭端口方法
1. 可以通过"~$ netstat -anp" 来查看哪些端口被打开。
(注:加参数'-n'会将应用程序转为端口显示,即数字格式的地址,如:nfs->2049, ftp->21,因此可以开启两个终端,一一对应一下程序所对应的端口号)
2)或者关掉对应的应用程序,则端口就自然关闭了,如:
"~$ kill -9 PID" (PID:进程号)
如:    通过"~$ netstat -anp | grep ssh"
有显示:    tcp 0 127.0.0.1:2121 0.0.0.0:* LISTEN 7546/ssh
则:    "~$ kill -9 7546"

(可通过"~$ chkconfig"查看系统服务的开启状态)
ls -la
查看权限
ps -aux |grep jboss
//查看jboss服务
ls -t
//按更改时间顺序查看
less 文件名
//查看 文本类文件 
相当于 window的 type 


日志查看:

last命令   ast root

lastlog

who

w

 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

折腾数据折腾代码

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值