
Linux
文章平均质量分 81
记录Linux基础,形成知识体系
阿正的梦工坊
岁月不饶人,我亦未曾饶过岁月
展开
-
Linux 命令:按内存使用大小排序查看 PID 的完全指南
在 Linux 系统中,监控进程的内存使用情况是日常运维和调试的重要任务。无论是排查内存泄漏,还是优化系统性能,我们经常需要找到占用内存最多的进程,并获取它们的 PID(进程 ID)。本文将详细介绍如何使用 Linux 命令实现这一需求,从基础用法到高级技巧,带你全面掌握这一技能。原创 2025-03-18 22:12:43 · 1077 阅读 · 0 评论 -
Linux top 命令详解:从入门到高级用法
在 Linux 系统中,top是一个强大的实时监控工具,用于查看系统资源使用情况和进程状态。原创 2025-03-18 22:02:13 · 1434 阅读 · 0 评论 -
深入剖析Linux sudo的实现原理
sudo的权限升级原理建立在Linux的权限模型和setuid机制之上,通过配置文件管理权限,并结合安全验证和进程切换实现命令的执行。原创 2025-03-01 12:10:37 · 707 阅读 · 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 · 5728 阅读 · 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 · 2699 阅读 · 0 评论 -
深入解析 Linux 文件系统:EXT4、NTFS、NFS、CIFS 等的特点与应用(中英双语)
Deep Dive into Linux File Systems: EXT4, NTFS, NFS, CIFS, and More原创 2025-02-22 20:03:30 · 2143 阅读 · 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 · 1444 阅读 · 0 评论 -
Ubuntu服务器 /data 盘需要手动挂载的解决方案
下面是解决方案,确保 /data 盘可以手动挂载,然后配置自动挂载。原创 2025-02-22 19:21:16 · 1403 阅读 · 0 评论 -
Git遇到error: Your local changes to the following files would be overwritten by merge解决方法
git使用原创 2025-02-19 13:00:01 · 494 阅读 · 0 评论 -
Git Stash 使用与应用场景介绍(中英双语)
它允许我们将当前的修改暂存起来,从而恢复到一个干净的工作状态。原创 2025-02-19 12:56:31 · 1009 阅读 · 0 评论 -
Linux du 命令详解:查看磁盘使用情况与高级用法 (中英双语)查看某个用户磁盘占用
The du (disk usage) command is used to estimate file space usage原创 2025-02-05 16:35:29 · 1428 阅读 · 0 评论 -
用C语言实现一个Shell:Tutorial - Write a Shell in C
手撕Shell,理解shell的原理原创 2025-02-04 15:01:31 · 630 阅读 · 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 · 1072 阅读 · 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 · 1696 阅读 · 0 评论 -
深入解析 clone():高效的进程与线程创建方法(中英双语)
Modern Linux systems, including Docker, LXC, high-performance servers, and web browsers, all rely on clone()原创 2025-02-03 22:29:45 · 1486 阅读 · 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 · 1349 阅读 · 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 · 1002 阅读 · 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 · 1231 阅读 · 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 · 1361 阅读 · 0 评论 -
tmux 中鼠标滚动异常:^[[A和^[[B是什么以及如何解决
编辑~/.tmux.conf文件,添加启用鼠标支持的内容如下:set -g mouse on原创 2025-01-14 20:02:05 · 1716 阅读 · 0 评论 -
Ubuntu 20.04 安装Cuda 12.2版本踩坑记录
不要使用deb安装,而是使用runfile安装原创 2025-01-10 15:26:55 · 3655 阅读 · 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 · 1759 阅读 · 0 评论 -
Bash 中的 2>&1 | tee 命令详解
2>&1 | tee 是 Bash 中强大的命令组合,适合需要实时监控和记录日志的任务。无论是调试脚本、分析程序输出,还是记录运行时间和错误信息,这种组合都提供了灵活性和可靠性。原创 2024-12-31 13:09:41 · 1605 阅读 · 0 评论 -
bash脚本保存运行时间到log文件中:使用time和tee命令
time命令的输出默认是通过 标准错误流 (stderr)输出原创 2024-12-31 13:05:47 · 1132 阅读 · 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 · 1461 阅读 · 0 评论 -
深入了解 Linux tree 命令及其常用选项:Linux如何显示目录结构和文件大小
tree -h选项:以人类可读的格式显示大小原创 2024-12-30 15:32:13 · 660 阅读 · 0 评论 -
Bash脚本奇技淫巧:提高效率的实用技巧
并行任务、动态参数处理,到日志记录和超时控制原创 2024-12-30 13:09:31 · 567 阅读 · 0 评论 -
Coursera上Learning Linux for LFCA Certification专项课程04:Linux Cloud and DevOps 学习笔记 (完结)
Course 4。这个专项完结。原创 2024-04-14 17:39:13 · 974 阅读 · 0 评论 -
Coursera上Learning Linux for LFCA Certification专项课程03:Securing Linux Systems 学习笔记
Course 3原创 2024-04-13 20:11:37 · 1231 阅读 · 0 评论 -
Coursera上Learning Linux for LFCA Certification专项课程02:Managing Linux Systems 学习笔记
Linux第二门课完成原创 2024-04-12 15:46:41 · 572 阅读 · 0 评论 -
Coursera上Learning Linux for LFCA Certification专项课程01:Linux Fundamentals 学习笔记
LearnQuest开发的Linux课程01原创 2024-04-04 18:05:28 · 930 阅读 · 0 评论 -
WSL中遇到CondaHTTPError: HTTP 000 CONNECTION FAILED for url解决方法
关闭wsl后重启原创 2024-01-25 14:38:51 · 1139 阅读 · 0 评论 -
《Unix环境高级编程》第三版源代码编译报错汇总(WSL)
源代码make编译原创 2024-01-18 15:46:53 · 1499 阅读 · 1 评论 -
WSL中/usr/bin/ld: Error: unable to disambiguate: -dylib (did you mean --dylib ?)解决方案
dylib是Mac OS的动态链接库原创 2024-01-18 15:00:10 · 1238 阅读 · 0 评论 -
《程序员的自我修养:链接、装载与库》读书笔记:静态链接、动态链接
静态链接、动态链接,目标文件的内容原创 2023-12-21 13:34:00 · 1182 阅读 · 0 评论 -
Linux遇到bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory解决方法
:set ff=unix原创 2023-10-06 19:10:33 · 1112 阅读 · 2 评论 -
Linux系统下xxx is not in the sudoers file解决方法
编辑/etc/sudoers文件原创 2023-10-05 15:44:37 · 821 阅读 · 0 评论 -
WSL (8) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2解决方法
解决WSL2安装的问题原创 2023-07-04 10:22:20 · 7337 阅读 · 5 评论 -
ModuleNotFoundError: No module named ‘pip._internal‘ 和 No module named ‘setuptools_rust‘ 解决方法
wsl下python pip遇到的问题原创 2022-05-15 10:17:57 · 910 阅读 · 0 评论 -
ubuntu下dpkg: Error processing package或Sub-process /usr/bin/dpkg returned an error code (1)解决方法
需要/var/lib/dpkg/目录下info文件夹进行处理原创 2022-05-04 15:55:16 · 4905 阅读 · 1 评论