linux入命令基础

查看系统版本:

cat /proc/version
lsb_release -a
uname -a

查看进程:

ps
 ps aux |grep #查询字符串

杀掉进程:

 kill #标号

强制杀掉:

 kill -s 9 #标号(进程说明见附件)

命令补全

 history|grep xxx 

 命令反向查找:

ctrl+R 输入历史命令的部分内容

附:

附录:各种信号及其用途

Signal     Description     Signal number on Linux x86[1]
SIGABRT     Process aborted     6
SIGALRM     Signal raised by alarm     14
SIGBUS     Bus error: "access to undefined portion of memory object"     7
SIGCHLD     Child process terminated, stopped (or continued*)     17
SIGCONT     Continue if stopped     18
SIGFPE     Floating point exception: "erroneous arithmetic operation"     8
SIGHUP     Hangup     1
SIGILL     Illegal instruction     4
SIGINT     Interrupt     2
SIGKILL     Kill (terminate immediately)     9
SIGPIPE     Write to pipe with no one reading     13
SIGQUIT     Quit and dump core     3
SIGSEGV     Segmentation violation     11
SIGSTOP     Stop executing temporarily     19
SIGTERM     Termination (request to terminate)     15
SIGTSTP     Terminal stop signal     20
SIGTTIN     Background process attempting to read from tty ("in")     21
SIGTTOU     Background process attempting to write to tty ("out")     22
SIGUSR1     User-defined 1     10
SIGUSR2     User-defined 2     12
SIGPOLL     Pollable event     29
SIGPROF     Profiling timer expired     27
SIGSYS     Bad syscall     31
SIGTRAP     Trace/breakpoint trap     5
SIGURG     Urgent data available on socket     23
SIGVTALRM     Signal raised by timer counting virtual time: "virtual timer expired"     26
SIGXCPU     CPU time limit exceeded     24
SIGXFSZ     File size limit exceeded     25

 

转载于:https://www.cnblogs.com/thaughtZhao/p/5211029.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值