上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 66 下一页
摘要: title: linux shell对比两条命令的输出 date: 2022-06-13 12:35:22 tags: diff <(ls old) <(ls new) 原文:https://askubuntu.com/questions/229447/how-do-i-diff-the-outpu 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(1) 评论(0) 推荐(0) 编辑
摘要: title: linux shell递归修改指定文件夹内的文件的后缀名 date: 2020-05-18 18:57:21 tags: 参考:https://blog.csdn.net/longxibendi/article/details/6387732 上文的方法3在存在带有.的子文件夹时会出错 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(3) 评论(0) 推荐(0) 编辑
摘要: title: linux shell判断某命令是否存在 date: 2020-04-10 21:38:02 tags: 参考:https://blog.csdn.net/soindy/article/details/73794548 例如判断apt命令是否存在 if command -v apt > 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(4) 评论(0) 推荐(0) 编辑
摘要: title: less刷新内容 date: 2021-07-01 17:07:34 手动刷新:G即shift+g 自动定时刷新:F即shift+f 参考:https://unix.stackexchange.com/questions/4351/is-there-a-way-to-dynamical 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(2) 评论(0) 推荐(0) 编辑
摘要: title: grep只在文本文件中搜索 date: 2020-09-13 15:57:12 tags: 参考:https://stackoverflow.com/questions/9806944/grep-only-text-files I选项表示不搜索binary文件。 grep -Irn s 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(2) 评论(0) 推荐(0) 编辑
摘要: title: bash隐藏当前工作目录 date: 2021-10-20 15:56:07 详细教程:https://blog.csdn.net/xjwJava/article/details/8687969 查看当前的设置: echo $PS1 我的结果: \[\e]0;\u@\h: \w\a\] 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(0) 评论(0) 推荐(0) 编辑
摘要: title: bash计算浮点数 date: 2021-01-07 23:55:01 echo "2 / 3" | bc -l .66666666666666666666 如果想要前导零 echo "2 / 3" | bc -l | xargs printf "%f" 这里还有一堆解决方案:http 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(0) 评论(0) 推荐(0) 编辑
摘要: title: bash获取exit code date: 2023-06-11 15:47:57 tags: echo $?可以获取上一条命令的exit code。 但是如果bash脚本中设置了set -e,那么如果命令的exit code不为0,当前bash脚本会直接退出。这种情况下如果要获取命令 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(2) 评论(0) 推荐(0) 编辑
摘要: title: linux内核magic number date: 2020-02-24 19:04:48 参考: https://www.kernel.org/doc/html/v4.17/process/magic-number.html https://en.wikipedia.org/wiki 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(2) 评论(0) 推荐(0) 编辑
摘要: title: linux kernel查看某一版本的代码 date: 2020-08-11 16:11:01 tags: 参考: https://stackoverflow.com/questions/28136815/linux-kernel-how-to-obtain-a-particular- 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(1) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 66 下一页