
Linux
文章平均质量分 81
记录Linux基础,形成知识体系
阿正的梦工坊
岁月不饶人,我亦未曾饶过岁月
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
如何使用 Git Submodule 管理 GitHub 项目:Github带箭头的文件夹是什么?
Git Submodule 是 Git 提供的一种功能,允许你在一个 Git 仓库中嵌入另一个 Git 仓库。子模块在你的项目中表现为一个带有“箭头”标志的文件夹(在 Git 客户端或 GitHub 界面中可见),它指向外部仓库的特定提交。原创 2025-07-24 01:20:37 · 965 阅读 · 0 评论 -
htop 使用详解:排查高 CPU 占用、分析内存使用
无论是排查高 CPU 占用、分析内存使用,还是终止进程,htop都能提供高效的支持。原创 2025-07-23 16:55:36 · 1139 阅读 · 0 评论 -
SWP(交换空间)84.8%占用解析:原理、用途与高占用场景分析
交换空间(Swap Space)是操作系统中用于扩展内存的一种机制。它通常是硬盘或固态硬盘(SSD)上的一块预留区域,用作虚拟内存的补充。当系统的物理内存(RAM)不足以容纳所有运行中的进程和数据时,操作系统会将部分暂时不活跃的数据从RAM移动到交换空间,从而释放RAM以供其他进程使用。原创 2025-07-11 23:17:38 · 634 阅读 · 0 评论 -
wandb offline 模式下训练日志在哪?如何上传到网页端?
训练指标都在 run-*.wandb 这个二进制文件里。原创 2025-06-06 18:30:19 · 1381 阅读 · 0 评论 -
Linux 命令:按内存使用大小排序查看 PID 的完全指南
在 Linux 系统中,监控进程的内存使用情况是日常运维和调试的重要任务。无论是排查内存泄漏,还是优化系统性能,我们经常需要找到占用内存最多的进程,并获取它们的 PID(进程 ID)。本文将详细介绍如何使用 Linux 命令实现这一需求,从基础用法到高级技巧,带你全面掌握这一技能。原创 2025-03-18 22:12:43 · 1322 阅读 · 0 评论 -
Linux top 命令详解:从入门到高级用法
在 Linux 系统中,top是一个强大的实时监控工具,用于查看系统资源使用情况和进程状态。原创 2025-03-18 22:02:13 · 1652 阅读 · 0 评论 -
深入剖析Linux sudo的实现原理
sudo的权限升级原理建立在Linux的权限模型和setuid机制之上,通过配置文件管理权限,并结合安全验证和进程切换实现命令的执行。原创 2025-03-01 12:10:37 · 840 阅读 · 0 评论 -
Linux /etc/fstab文件详解:自动挂载配置指南(中英双语)
/etc/fstab is the core file for managing file system mounts in Linux, allowing users to define automatic mounting rules for local disks, network storage, swap partitions, and ISO images.原创 2025-02-22 21:37:55 · 11875 阅读 · 0 评论 -
Linux lsblk 命令详解:查看磁盘和分区信息 (中英双语)
The lsblk command is a powerful tool that lists information about block devices, including hard drives, SSDs, USB drives, and other storage media.原创 2025-02-22 20:16:39 · 5134 阅读 · 0 评论 -
深入解析 Linux 文件系统:EXT4、NTFS、NFS、CIFS 等的特点与应用(中英双语)
Deep Dive into Linux File Systems: EXT4, NTFS, NFS, CIFS, and More原创 2025-02-22 20:03:30 · 3146 阅读 · 0 评论 -
Linux 命令 mount 完全指南(中英双语)
It is used for mounting local partitions, ISO images, remote file systems (NFS, Samba), and even special virtual file systems.原创 2025-02-22 19:57:57 · 2027 阅读 · 0 评论 -
Ubuntu服务器 /data 盘需要手动挂载的解决方案
下面是解决方案,确保 /data 盘可以手动挂载,然后配置自动挂载。原创 2025-02-22 19:21:16 · 1678 阅读 · 0 评论 -
Git遇到error: Your local changes to the following files would be overwritten by merge解决方法
git使用原创 2025-02-19 13:00:01 · 558 阅读 · 0 评论 -
Git Stash 使用与应用场景介绍(中英双语)
它允许我们将当前的修改暂存起来,从而恢复到一个干净的工作状态。原创 2025-02-19 12:56:31 · 1143 阅读 · 0 评论 -
Linux du 命令详解:查看磁盘使用情况与高级用法 (中英双语)查看某个用户磁盘占用
The du (disk usage) command is used to estimate file space usage原创 2025-02-05 16:35:29 · 1819 阅读 · 0 评论 -
用C语言实现一个Shell:Tutorial - Write a Shell in C
手撕Shell,理解shell的原理原创 2025-02-04 15:01:31 · 684 阅读 · 0 评论 -
Shell 中的 Globbing:原理、使用方法与实现解析(中英双语)
Globbing is a key feature of Shell parsing, allowing users to efficiently match filenames using wildcards原创 2025-02-04 14:48:17 · 1208 阅读 · 0 评论 -
深入解析 Chrome 浏览器的多进程架构:标签页是进程还是线程?(中英双语)
Chrome uses a "multi-process + multi-thread" architecture, where each tab is usually a separate renderer process.原创 2025-02-03 22:37:21 · 2159 阅读 · 0 评论 -
深入解析 clone():高效的进程与线程创建方法(中英双语)
Modern Linux systems, including Docker, LXC, high-performance servers, and web browsers, all rely on clone()原创 2025-02-03 22:29:45 · 1575 阅读 · 0 评论 -
深入解析 posix_spawn():高效的进程创建方式(中英双语)
While fork() remains the standard, modern applications benefit from posix_spawn() in embedded systems, web servers, and daemon processes.原创 2025-02-03 22:20:00 · 1791 阅读 · 0 评论 -
Unix 进程的启动方式及经典和现代做法(中英双语)
The traditional approach in Unix and Linux is based on the fork() and exec() system calls. However, modern systems have introduced more efficient methods like posix_spawn() and clone()原创 2025-02-03 22:07:02 · 1059 阅读 · 0 评论 -
深入理解 Unix Shell 管道 Pipes:基础和高级用法 xargs tee awk sed等(中英双语)
It allows the output of one command to be used as the input of another, enabling streamlined data processing.原创 2025-02-03 20:45:24 · 1368 阅读 · 0 评论 -
什么是 Shell?常见的 Unix Shell有哪些?(中英双语)
A Shell is a command-line interpreter that acts as an interface between the user and the operating system’s kernel.原创 2025-02-03 20:06:59 · 1501 阅读 · 0 评论 -
tmux 中鼠标滚动异常:^[[A和^[[B是什么以及如何解决
编辑~/.tmux.conf文件,添加启用鼠标支持的内容如下:set -g mouse on原创 2025-01-14 20:02:05 · 2063 阅读 · 0 评论 -
Ubuntu 20.04 安装Cuda 12.2版本踩坑记录
不要使用deb安装,而是使用runfile安装原创 2025-01-10 15:26:55 · 4430 阅读 · 2 评论 -
Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0解决方法:基于Ubuntu 20.04
这里的kernel指的是Linux内核原创 2025-01-08 19:17:39 · 2269 阅读 · 0 评论 -
Bash 中的 2>&1 | tee 命令详解
2>&1 | tee 是 Bash 中强大的命令组合,适合需要实时监控和记录日志的任务。无论是调试脚本、分析程序输出,还是记录运行时间和错误信息,这种组合都提供了灵活性和可靠性。原创 2024-12-31 13:09:41 · 1867 阅读 · 0 评论 -
bash脚本保存运行时间到log文件中:使用time和tee命令
time命令的输出默认是通过 标准错误流 (stderr)输出原创 2024-12-31 13:05:47 · 1235 阅读 · 0 评论 -
使用 Bash 脚本中的time命令来统计命令执行时间:中英双语
The time command is an invaluable tool for measuring the execution time of commands in Bash scripts.原创 2024-12-30 17:18:22 · 1723 阅读 · 0 评论 -
深入了解 Linux tree 命令及其常用选项:Linux如何显示目录结构和文件大小
tree -h选项:以人类可读的格式显示大小原创 2024-12-30 15:32:13 · 901 阅读 · 0 评论 -
Bash脚本奇技淫巧:提高效率的实用技巧
并行任务、动态参数处理,到日志记录和超时控制原创 2024-12-30 13:09:31 · 685 阅读 · 0 评论 -
Coursera上Learning Linux for LFCA Certification专项课程04:Linux Cloud and DevOps 学习笔记 (完结)
Course 4。这个专项完结。原创 2024-04-14 17:39:13 · 1064 阅读 · 0 评论 -
Coursera上Learning Linux for LFCA Certification专项课程03:Securing Linux Systems 学习笔记
Course 3原创 2024-04-13 20:11:37 · 1276 阅读 · 0 评论 -
Coursera上Learning Linux for LFCA Certification专项课程02:Managing Linux Systems 学习笔记
Linux第二门课完成原创 2024-04-12 15:46:41 · 581 阅读 · 0 评论 -
Coursera上Learning Linux for LFCA Certification专项课程01:Linux Fundamentals 学习笔记
LearnQuest开发的Linux课程01原创 2024-04-04 18:05:28 · 973 阅读 · 0 评论 -
WSL中遇到CondaHTTPError: HTTP 000 CONNECTION FAILED for url解决方法
关闭wsl后重启原创 2024-01-25 14:38:51 · 1189 阅读 · 0 评论 -
《Unix环境高级编程》第三版源代码编译报错汇总(WSL)
源代码make编译原创 2024-01-18 15:46:53 · 1569 阅读 · 1 评论 -
WSL中/usr/bin/ld: Error: unable to disambiguate: -dylib (did you mean --dylib ?)解决方案
dylib是Mac OS的动态链接库原创 2024-01-18 15:00:10 · 1291 阅读 · 0 评论 -
《程序员的自我修养:链接、装载与库》读书笔记:静态链接、动态链接
静态链接、动态链接,目标文件的内容原创 2023-12-21 13:34:00 · 1195 阅读 · 0 评论 -
Linux遇到bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory解决方法
:set ff=unix原创 2023-10-06 19:10:33 · 1141 阅读 · 2 评论