Why does crontab have different flags for its dry-run / linter mode?
If I look at myman 1 crontab, it says that crontab -n file will test the suitability of file as a parseable crontab file.If I look at ...
View ArticleHow can I use natively installed KeePassXC with a flatpak installed browser?
I'm trying to use a natively installed KeePassXC (apt) with flatpak installed Waterfox (because that's the only viable packaging available).I enabled browser integration in KeePassXC fo...
View ArticleOverwrite hard drive with random data
What is the basic sequence of command line steps to use a Linux Live USB drive to overwrite a built in hard drive with random data?Please include instructions for how to figure out whic...
View ArticleHow to resolve Android Studio's “Studio does not have write access” error?
Due to what powerusers.codidact.com/posts/296173 explains, I want to update Android Studio. However, this requires that I ...
View ArticleHow do programs like `less` receive keyboard input as well as from a pipe?
(Inspired by: https://discuss.python.org/t/_/107345)It was brought to my attention that it actually works to do som...
View ArticleHow is the filesystem bootstrapped, given that we start on a different...
Typically, one has /boot or /boot/efi on a separate partition, using some simple filesystem like FAT32 that the bootloader can handle. At startup, Linux needs to be abl...
View ArticleHow to choose between eSCL or WSD SANE backends?
My scanner is connected, driverlessly (presumably, via SANE), via 802.3. [1] How should I decide between eSCL and WSD drivers? ...
View ArticleHow to programmatically determine which zsh startup file to set `ZDOTDIR` and...
I want to configure zsh to read its config from ~/.config/zsh by setting ZDOTDIR=$XDG_CONFIG_HOME/zsh and ensuring XDG_CONFIG_HOME is defined early. Curren...
View ArticleHow can I correct an AVD Emulator's inconsistent display size?
How can I extend the length of an emulator? I ask because, when I invoked android-studio today, my AVD emulator was incorrectly sized, to the extent that input tap even...
View ArticleHow do I compare two tcpdump files?
I have captures two tcpdump files: from local side and from remote side.How do I to compare them, i.e. find missing packets, to get propagation delay of each packet, check ...
View ArticleSafe handling and display of untrusted data in the terminal
Suppose I have a binary file with some "readable" content in it that I want to display and inspect in the terminal. It's not a problem if cat produces a mess of strange symbols, but...
View ArticleWhy ssh ProxyJump and ProxyCommand options seem not working from a system...
However, any time if I try to use from a system account, it fails. If I use it by su-ing into the system account, it works.There is nothing relevant in the log. More clearly, the log st...
View ArticleIs there anything like an interactive version of aplay or speaker-test?
I'd like to be able to send simple commands on the standard input of a running program that plays simple audio (even a sine wave), and have it alter its output in response (e.g. change pitch or ...
View ArticleDefault ports scanned by nmap
The man page of nmap says:The simple command nmap target scans 1,000 TCP ports on the host...
View ArticleRemove last N lines from a text file in Linux
How can I delete a specific number of lines from the end of a text file using Linux command-line tools?
View ArticleReplacing the shebang in a script
In a Bash script and/or at the command line, given that $file is the path to an executable text file with a shebang, and $env is a valid shebang, I want to replace the ...
View ArticleAs root, how do I read another user's environment variables?
I have a script that should be run using sudo, with the goal of "promot...
View ArticleIs there a danger in using the current FreeBSD version?
I read about the Wikipedia article about the backdoor in XZ. It was only in the developer version and not in production.Now...
View ArticleHow do package managers track the installed files?
Suppose for example I install a .deb package that has no dependencies, and the corresponding program includes some self-update feature (or the documentation asks users to do something like
View ArticleHow to convert a markdown file to PDF?
How to convert a markdown file to PDF? The final PDF output should represent the rendered markdown file. Bonus points if the method also preserves colored emojis.Both CLI and GUI soluti...
View Article