Activity for Karl Knechtel
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Question | — |
Moving the filesystem root to a different partition and booting from it My primary drive is partitioned basically like so (only roughly to scale): ``` / /home junk v v v |xx############################################xxx ^ ^ ... (more) |
— | about 1 month ago |
Question | — |
Why/how can distro support lifetimes exceed the lifetime of their dependencies (such as Python)? Motivating example: my Mint 20.3 distribution offers long-term support until April 2025, which matches the "standard support" offered for the upstream Ubuntu (20.04 "Jammy Jellyfish"). However, the system-provided Python version is 3.8, which reaches the end of security support this October, half a y... (more) |
— | about 2 months ago |
Answer | — |
A: What is cat abuse/useless use of cat? Overview A "useless use" or "abuse" of `cat` occurs when a Unix pipeline (sequence of commands that feed into each other, using the shell `|` or "pipe" operator) includes a call to `cat` that is unnecessary for solving the problem. Such pipelines are naturally less efficient (since the OS has t... (more) |
— | about 2 months ago |
Question | — |
Group and users seem to disagree about whether the users are in the group On my current setup (running Linux Mint 20.3 Cinnamon), I have an administrative user and several ordinary users. I intend for all of these users to be in the same group, which happens to have the same name as the admin user name. (After doing the basic guided setup and looking up some tutorials, I u... (more) |
— | about 2 months ago |
Answer | — |
A: Is there a way to automatically normalize paths when extracting RARs? If all else fails, you could create a wrapper shell function to check the output of `unrar l` (probably by piping to `wc -l`) and proceed accordingly. (more) |
— | 2 months ago |
Question | — |
Can rsync handle moves and renames? Suppose I have a directory structure like ``` ├── src │ ├── foldera │ │ ├── filew │ │ └── filex │ ├── folderb │ │ ├── filey │ │ └── filez ``` and I back it up using `rsync`: ``` $ rsync -r /path/to/src/ /path/to/dst/ ``` Later, I reorganize the contents of `src`, f... (more) |
— | 4 months ago |
Question | — |
How does the root user locate executables? A little while ago I was helping someone with running Python in a virtual environment, as root, for some specific purpose. I determined easily enough that this requires explicitly specifying the path to the virtual environment's Python executable (which to some extent defeats the purpose of the "virt... (more) |
— | 8 months ago |
Question | — |
Higher-order functions in Bash? Say I have some Bash function `my-func`, that expects a filename and does some processing on the corresponding file. For demonstration purposes, ``` my-func() { cat "$1"; } ``` If I want to apply that function to all the text files in the current directory, I eventually figured out that I can d... (more) |
— | 8 months ago |
Question | — |
How can I get a Flatpak dependency graph? `flatpak uninstall --unused` currently tells me that there is `Nothing unused to uninstall`. This seems wrong to me, based on the list of packages I see vs. the "root" packages I explicitly installed plus what I think their dependencies should be. Is there any way I can get Flatpak to show me a gr... (more) |
— | 8 months ago |
Answer | — |
A: Suggestion: Basic Linux skills compendium I've been persistently advocating for an analogous effort in the Software community, and generally think that any Codidact community could likely benefit from doing something similar. As a practical matter, everything that can meaningfully be "mastered" has far more beginner practitioners than expert... (more) |
— | 8 months ago |
Question | — |
What are the concrete security risks of forcibly terminating a process? I'm using the Gnome System Monitor in Linux Mint. Whenever I attempt to "End" or "Kill" a process, I am given this warning via a modal dialog (emphasis mine): > Killing a process may destroy data, break the session or introduce a security risk. Only unresponsive processes should be killed. (Sim... (more) |
— | 8 months ago |
Question | — |
How can I show hidden files and folders (with leading dot in name) on the desktop (actual desktop, not a window)? I am using Linux Mint 20.3, with Cinnamon as a window manager. I have a folder named `.pytestcache` on my Desktop: ``` $ ls -1A | grep '^\.' .pytestcache ``` I know that if I open a Nemo window, navigate to the Desktop, and choose to "Show Hidden Files" (Ctrl-H), I can make the folder app... (more) |
— | 10 months ago |