Linux
文章平均质量分 71
Jacks-os火狐
成功的背后来自于你不懈的努力!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux中everything脚本
#!/bin/bash# lazy find# GNU All-Permissive License# Copying and distribution of this file, with or without modification,# are permitted in any medium without royalty provided the copyright# notice and this notice are preserved. This file is offered原创 2020-07-28 22:00:03 · 747 阅读 · 0 评论 -
Linux个人笔记
1.文本文件添加行序号:set number2.输出文本的3-5行:sed -n '3,5p' xxx.txt3.查找文本中有多少个hello: grep -o hello xxx.txt 4.查找进程:ps -ef | grep javanetstat -anp | grep java5.定时任务:crontab -e 0-59 0-23 1-31 1-12 0-6 command...原创 2020-01-27 16:24:23 · 221 阅读 · 0 评论 -
Linux笔记三
九.内存①内存泄漏: 占用内存的情况导出到对应的dump:jmap -dump:format=b,file=java.dump pid解析此二进制dump文件:jhat java.dump打开对应的链接:127.0.0.1:7000②查看内存信息:cat /proc/meminfo |grep MemTotal③手动释放内存: ①首先,查看/proc/sys/vm/drop_caches...原创 2019-12-28 19:58:13 · 139 阅读 · 0 评论 -
linux笔记二
七.CPU ①确认CPU型号:cat /proc/cpuinfo |grep "model name"|uniq|cut -f2 -d: ②Super PI(计算时间越短越好):time echo "scale=500;4*a(1)"|bc -l -q ③逻辑CPU的个数:cat /proc/cpuinfo |grep 'physical id' |sort |uniq ④单个CPU的内核...原创 2019-12-28 19:48:50 · 128 阅读 · 0 评论 -
Linux笔记一
一.僵尸进程查杀 自动查杀:ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]' | awk '{print $2}' | xargs kill -9 查看僵尸进程pid:ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]' 根据Pid 查看进程属于那个用户:ps -ef |grep pid 查看挂起进程 stoppe...原创 2019-12-28 19:40:06 · 137 阅读 · 0 评论
分享