![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 51
来去黑暗中
这个作者很懒,什么都没留下…
展开
-
Linux架构和目录-基础篇
1.Linux目录结构2. /boot/存放系统内核文件,如vmlinuz,initrd,System.map等。其中,a. vmlinuz是可引导的、压缩的内核,“vm”即“Virtual Memory”;b. initrd 的英文含义是 boot loader initialized RAM disk,就是由 boot loader 初始化的内存盘。在linux内核启动前,原创 2010-01-01 19:59:00 · 4597 阅读 · 2 评论 -
LINUX命令基础FAQ
1. 什么是PID号?PPID?当后台有进程运行时,有什么作用?相关操作? PID(Process ID)即当前运行的进程编号,是进程的唯一标训,PPID为其父进程号。原创 2010-01-09 20:30:00 · 886 阅读 · 0 评论 -
[linux]cpu加压工具
/*看系统用几个核就跑几个可以实现一个逻辑核CPU 100%*/#include "stdio.h"#include "math.h"int main (int argc,char *argv[]){ float f=0; printf("hello! CPU stress start for one core!\n");原创 2015-07-23 16:57:42 · 4288 阅读 · 1 评论 -
[linux][shell]控制进程不定时重启
#!/bin/bashPORT=6380i=0seconds=200runtime=$(($RANDOM%600+600))while [ 1 -gt 0 ]do echo "==========the "$i"th kill redis-server===============" pid=$(ps -ef | grep redis-ser原创 2015-07-23 19:08:46 · 726 阅读 · 0 评论