Notes for Unix-like, such as Linux (WSL), macOS, bash.
2025-09-09 | #Words: 2512
Recently, I wanted to adjust the frequency of my NVIDIA GPU on Linux because I noticed some software (like FaceFusion) doesn't utilize the GPU at its maximum frequency (e.g., a maximum of 2000 MHz, but only 1850 MHz in practice). So I decided to figure out how to tweak settings like frequency. This article will use `nvtop` and `nvidia-smi` for monitoring.
2025-07-21 | #Words: 312
The issue is that the owner and group of files like `/etc/sudo.conf` (and related directories) are no longer `root`. I searched online for solutions and tried many, but none worked—for good reason: I was stuck in a dead loop. Changing permissions with `chown` requires root privileges, which I couldn’t obtain. Worse, I hadn’t set a password for the `root` user.
2025-06-30 | #Words: 959
For some unknown reason, APT suddenly stopped working: only a few default repositories were accessible, while others showed `ign` (meaning they couldn’t be connected to). I tried several mirrors, but the issue persisted. At this point, Wi-Fi was connected, so I suspected a GPG key problem. However, as I tried to fix it, the network stopped working entirely
2025-06-21 | #Words: 892
`lstopo` is an excellent tool for generating intuitive, concise system topology diagrams. This article documents small issues I encountered while using it—it is not a comprehensive manual. For detailed options, refer to the official documentation. Many Linux distributions come with `hwloc` preinstalled. If your system lacks it (e.g., Ubuntu), install it with
2025-02-09 | #Words: 269
It's common to need programs/commands to keep running after exiting SSH, but I always forget how to do it. Since I usually set it up as an **alias** for quick use, I tend to lose track of the details over time and have to look it up again. That’s why I’m writing this note to document it.
2025-02-05 | #Words: 172
Recently, my hard drive was almost full, so I decided to add a mechanical hard drive. After installing the drive on Ubuntu, I encountered a frustrating problem: SMB remote access showed permission denied, even though local access worked perfectly.
2023-07-05 | #Words: 546
Before start to introduce, something be emphasized: This method does not guarantee to view all hard disks. Some hard disks will display Resource busy due to some reasons, such as Time Machine and built-in hard disks.
2023-07-05 | #Words: 1284
Recently, when I used macOS to mount an external hard drive, I couldn’t mount it using mount. Many articles didn’t explain the various situations in detail, so I wrote a blog to record it.
2022-09-16 | #Words: 452
Due to my C drive is almost full, and not empty much after try to clean it, so I plan to move WSL to a new drive.
2022-07-27 | #Words: 576
In Linux and macOS, we often need to use `man xxx` to view the introduction and usage of a program, system call, etc. This interface is called `manual page`, but sometimes it is simply called `manpage`.
2022-05-12 | #Words: 69
First enter WSL, then enter the root directory `/`, and use `ls` to see a directory named `mnt` (mnt is the abbreviation of mount).