Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 735 Bytes

linux指令.md

File metadata and controls

28 lines (19 loc) · 735 Bytes

which

which命令的作用是,在PATH变量指定的路径中,搜索某个系统命令的位置,并且返回第一个搜索结果。也就是说,使用which命令,就可以看到某个系统命令是否存在,以及执行的到底是哪一个位置的命令。 which命令的使用实例:   $ which grep

生成sshkey

ssh-keygen -t rsa rerere1234

修改openssh配置

修改/etc/ssh/sshd_config: ChallengeResponseAuthentication no #关闭挑战应答方式 UsePAM no #不使用PAM认证

bash的目录

查看映射到指定端口的进程 netstat

netstat –apn

ipdatable,防火墙

挂起运行某项任务

nohup command > ~/logs/ & eg: nohup java -jar jenkins.war > ~/logs/ &