File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ training@SAST:~$ which echo
142
142
- ` /home ` 这个文件夹下是各个用户的家目录。
143
143
- ` /mnt ` 是数据卷的挂载点;通过 USB 等接口连接的外部媒体也可能出现在 ` /media ` 文件夹中。
144
144
- ` /srv ` 存放这个服务器提供的服务所需的文件(如网站资源)。
145
+ - ` /proc ` :虚拟文件系统,用于存储内核和进程的运行时信息,例如 ` /proc/cpuinfo ` 查看 CPU 信息,` /proc/meminfo ` 查看内存信息。
146
+ - ` /sys ` :虚拟文件系统,提供设备和驱动相关的系统信息。
147
+ - ` /dev ` :设备文件目录,例如 ` /dev/null ` (空设备文件)和 ` /dev/sda ` (磁盘设备文件)。
145
148
146
149
### Permissions
147
150
@@ -325,12 +328,39 @@ Ctrl+B 方向键 # Switch between panes
325
328
326
329
附:https://tmuxcheatsheet.com/
327
330
331
+ # ## Network
332
+
333
+ - ` ifconfig` 或 ` ip addr` :查看和配置网络接口。
334
+ - ` ping` :测试网络连通性。
335
+ - ` curl` 和 ` wget` :发送 HTTP 请求。
336
+ - ` netstat` 或 ` ss` :查看网络连接状态。
337
+ - ` scp` :远程拷贝文件。
338
+
339
+ ` ` ` bash
340
+ ping www.baidu.com # 经常被拿来测试网络是否连通
341
+ curl https://net9.org/home/
342
+ ` ` `
343
+
344
+ # ## Process Management
345
+
346
+ - ` ps` :查看当前进程。
347
+ - ` top` 和 ` htop` :实时监控系统资源。
348
+ - ` kill` 和 ` killall` :终止进程。
349
+
350
+ ` ` ` bash
351
+ ps aux | grep nginx
352
+ kill -9 <PID>
353
+ ` ` `
354
+
355
+
356
+
328
357
# # 后续拓展
329
358
330
359
想要学习更多 Linux 内容?
331
360
332
361
+ TryHackMe " Linux Fundamentals" Series https://www.tryhackme.com
333
362
+ Missing Semester https://missing.csail.mit.edu/
363
+ + Linux Journey https://linuxjourney.com
334
364
335
365
# # 参考资料
336
366
You can’t perform that action at this time.
0 commit comments