From 94a90c1f12916c043adf2941e549f48d61a36666 Mon Sep 17 00:00:00 2001 From: i-Orangeade <2930430673@qq.com> Date: Sat, 5 Apr 2025 15:55:44 +0800 Subject: [PATCH] add some shortcut commands --- command/Linux_command/README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/command/Linux_command/README.md b/command/Linux_command/README.md index dcf768d..1936785 100644 --- a/command/Linux_command/README.md +++ b/command/Linux_command/README.md @@ -87,11 +87,17 @@ grep :在文件中搜索匹配指定模式的行。 ``` grep ``` -du : 查看文件或文件夹大小 + +du : 查看文件或文件夹大小。 ``` du -h --max-depth=0 directory ``` +find : 查找文件。 +``` +find / -name "*.txt" +``` + ## 互传文件 ### 本地向Linux传文件 * scp命令 @@ -128,6 +134,16 @@ top:显示系统中正在运行的进程和资源使用情况。 top ``` +df:显示磁盘使用情况。 +``` +df +``` + +iostat:显示磁盘的相关信息。 +``` +iostat +``` + ps:显示当前用户的进程状态。 ``` ps @@ -138,6 +154,11 @@ kill :终止指定进程。 kill ``` +which :查找命令的位置。 +``` +which +``` + shutdown:关闭系统。 ``` shutdown @@ -206,6 +227,11 @@ firewall-cmd --zone=public --query-port=80/tcp firewall-cmd --zone=public --remove-port=80/tcp --permanent ``` +curl:发送网络请求。 +``` +curl url +``` + ### 终端代理加速proxychains4 ``` sudo apt install proxychains4 -- Gitee