随笔分类 - linux
摘要:仅当前目录文件 find . -maxdepth 1 -type f | wc -l 准确,排除子目录和文件夹所有层级文件 find /目录路径 -type f | wc -l 递归统计,最常用仅统计文件夹数 find /目录路径 -type d | wc -l 将 -type f 改为 -type
阅读全文
摘要:cat a.log | grep -E 'abc|def' 其实 cat 在这里是多余的,grep 可以直接读取文件,这样性能更好且命令更简洁:grep -E 'abc|def' a.log不区分大小写,可以加上 -i 参数:grep -iE 'abc|def' a.log
阅读全文
摘要:在Ubuntu/Debian系统中,若需要彻底卸载MySQL并清除所有配置与数据,可按以下步骤操作,确保系统干净无残留。 1. 停止MySQL服务 在卸载前先停止运行中的MySQL服务: sudo service mysql stop 2. 卸载MySQL软件包及配置文件 使用purge而非remo
阅读全文
摘要:Linux 性能调优之虚拟化调优 https://mp.weixin.qq.com/s/ypAr1qvAYBFD2BKyjx3HBg 写在前面 考试整理相关笔记 博文内容涉及Linux VM 常见管理操作以及部分调优配置 理解不足小伙伴帮忙指正 不必太纠结于当下,也不必太忧虑未来,当你经历过一些事情
阅读全文
摘要:linux 用户 限定 tcp端口 你有普通用户使用特权端口 (1024 以下) 的需求吗,或许这篇文章能帮你彻底解决!-腾讯云开发者社区-腾讯云 https://cloud.tencent.com/developer/article/1526429 众所周知,在 Linux 系统下,只允许 Roo
阅读全文
摘要:redefinition of `struct in6_addr' 的解决办法 # make[ 0%] Built target GENHDR[ 0%] Building C object lib/CMakeFiles/websockets.dir/plat/unix/unix-sockets.c.
阅读全文
摘要:### Unix / Linux / macOS $ ./Configure $ make $ make test 1、make Can‘t locate IPC/Cmd.pm in @INC [ Downloads ] - /source/index.html https://www.openss
阅读全文
摘要:chattr(1) - Linux manual page https://www.man7.org/linux/man-pages/man1/chattr.1.html NAME top chattr - change file attributes on a Linux file system
阅读全文
摘要:启动流程 | Android 开源项目 | Android Open Source Project https://source.android.google.cn/docs/security/features/verifiedboot/boot-flow?hl=zh-cn 启动时验证 启动时验证会
阅读全文
摘要:实践: 1、 写入管道时保证为原子的最大字节数 11 #define PIPE_BUF 4096 /* # bytes in atomic write to a pipe */ 1、普通文件( 数据文件 ) 标识:- ,普通文件是用于存放数据、程序等信息的文件,一般都长期地存放在外存储器(磁盘)中。
阅读全文
摘要:Linux 性能全方位调优经验总结 https://mp.weixin.qq.com/s/zl-gqL6wrVyM_BzxoKKhsQ Linux 性能全方位调优经验总结 Linux云计算网络 2023-11-10 08:13 发表于广东 Part1Linux性能优化 1性能优化 性能指标 高并发和
阅读全文
摘要:深入理解 Linux 中的 kworker 进程-腾讯云开发者社区-腾讯云 https://cloud.tencent.com/developer/article/2311554 在你使用 Linux 系统时,你可能在系统的进程列表中注意到了名为 "kworker" 的进程。你可能会想知道这个进程是
阅读全文
摘要:yum-config-manager --disable download.docker.com_linux_centos_docker-ce.reposudo 4. Disable the repository permanently, so yum won't use it by default
阅读全文
摘要:如何基于eBPF实现跨语言、无侵入的流量录制? https://mp.weixin.qq.com/s/6vD0cckviqLQidFb6Yo71Q 翻译 搜索 复制
阅读全文
摘要:https://stackoverflow.com/questions/51405065/shell-script-to-enter-docker-container-and-execute-command-and-eventually-exit 翻译 搜索 复制
阅读全文
摘要:进程切换:自愿(voluntary)与强制(involuntary) | Linux Performance http://linuxperf.com/?p=209 抢占(preemption)是如何发生的 | Linux Performance http://linuxperf.com/?p=21
阅读全文
摘要:使用 xclip 在 Linux 命令行中复制粘贴 - 知乎 https://zhuanlan.zhihu.com/p/73286091 翻译 搜索 复制
阅读全文
摘要:实践 1、 Linux ping:unknown host问题排查 1)检查域名服务器 # cat /etc/resolv.conf nameserver 8.8.8.8 2)重启网络 使用 ifdown 关闭所有网口,再使用 ifup 重新启用网口。 通常推荐的做法是将这两个命令一起使用。 sud
阅读全文
摘要:cat /proc/versionLinux version 4.4.0-131-generic (buildd@lgw01-amd64-015) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10) ) #157-Ubuntu S
阅读全文
摘要:sudo apt-get install libpcap-dev
阅读全文

浙公网安备 33010602011771号