随笔分类 -  Linux

摘要:export https_proxy=http://127.0.0.1:7890 export http_proxy=http://127.0.0.1:7890 export all_proxy=socks5://127.0.0.1:7890 阅读全文
posted @ 2024-10-25 17:43 shendawei 阅读(175) 评论(0) 推荐(0)
摘要:RSS: "Resident Set Size"(常驻集大小)表示进程当前在物理内存中实际占用的空间大小, 以KB为单位。 Note:由于Linux使用页面(page)作为内存管理的基本单位,因此RSS的值通常是页面大小(通常为4KB)的倍数。因此,top命令中显示的RSS值可能略微大于实际的内存使 阅读全文
posted @ 2023-05-11 15:10 shendawei 阅读(35) 评论(0) 推荐(0)
摘要:Ubuntu # Add User sudo adduser username sudo usermod -aG sudo username # add to sudo group sudo usermod -aG docker username # add to docker group sudo 阅读全文
posted @ 2023-03-22 19:37 shendawei 阅读(22) 评论(0) 推荐(0)
摘要:find grep grep -R --include="*.py" "content" find + grep 阅读全文
posted @ 2022-12-16 19:33 shendawei 阅读(29) 评论(0) 推荐(0)
摘要:1. OS # 1: Using os-release file available in Linux’s etc directory. cat /etc/os-release # 2. Using version file available in Linux’s proc directory. 阅读全文
posted @ 2022-12-06 11:50 shendawei 阅读(144) 评论(0) 推荐(0)
摘要:一、常用命令: 1、文件操作 2、查看文件 3、文件内容搜索、替换 4、压缩、解压缩 ## 1、压缩: # 添加压缩包demo.tar.gz,压缩a.txt,b.txt.c.txt tar -zc[v]f demo.tar.gz a.txt b.txt c.txt # 2、解压: tar -zx[v 阅读全文
posted @ 2020-07-18 19:41 shendawei 阅读(109) 评论(0) 推荐(0)