Search
I have a TLS certificate, let's say codidact.pem (downloaded as in https://linux.codidact.com/posts/292251/292257#answer-292257). But when I view it the file it appears to be base64 encoded: $ cat...
How does the init process play a role in the booting of Linux?
On Arch Linux, I installed albert (from AUR) and picom as the compositor. I am using i3 as the window manager. When I bring up the albert window, it is surrounded by the ghost of a window in the b...
If I have an email in EML format, how can I determine its spam status from the terminal? My mail provider appears to insert a X-Acme-Spam-Status header. It looks like X-Acme-Spam-Status: v=1; e=b...
You can try to search your shell's history for brew install. Every shell has its own history command, but for example on fish I can do history | rg brew install. (rg is https://github.com/BurntSush...
How to lookup user-id with the user's name? E.g. What's the UID of user linus?
With the id command: $ id --user linus
When I run Kmail on i3, and then close it, it appears to continue running some stuff in the background. For example, I periodically get notifications about new mail from dunst, even though I have c...
You don't. sudo is for there for security purposes. If you alias it as sudo pacman than you can mess up without knowing. You can login as root su - to execute consecutive commands.
How to ignore server certificate when using ldapsearch command-line tool? Of course this isn't something you should be doing regularly, but it would be a handy asset for troubleshooting.
BTRFS is capable of spanning over multiple drives. How to add one more to an existing filesystem?
Add a new drive with the device command: # btrfs device add /dev/new-device /path/to/the/filesystem/youre/adding/to Then you probably want to balance the filesystem so that some data will actua...
I upgraded to WSL 2 because I discovered several instances online where people had run into issues with WSL and Solr together. This fixed the problem of Solr not starting. However, it triggered a n...
How to get the (index) digest of a remote container image with skopeo? So this would be your normal container image in a container registry. E.g. in docker.io
With the inspect subcommand, and you probably want to set a format to filter out all the other clutter: $ skopeo inspect --format='{{ .Digest }}' docker://docker.io/snipe/snipe-it:v6.3.4 sha256:...
How can I get notifications to dunst when systemd units fail?
How to show a list of files belonging to a package with pacman?
$ pacman --query --list package-name Or the short version: $ pacman -Ql package-name Source: pacman manpage
I'll add a specific, simple way that worked for me: Create some kind of Linux Live USB Boot into Live OS Use lsblk and blkid to figure out which drive exactly is the old and new one. Stay in t...
Disclaimer: I'm not a Mint (or Ubuntu) user. Using your distro's live image: Do your partition stuff Mount the new root to the live system at /mnt[1] Mount your other partitions to the new ro...
Will the overall unit status be failed if either ExecStop or ExecStopPost fail? I would expect it to be so, but the documentation isn't very explicit about it.
Yes, the unit will enter the failed state if either one of those failed. You verify this with a test unit like this: [Unit] Description=ExecStop failure test [Service] ExecStart=echo I might...
authorized_keys You can make restrictions, but it's clunky and not well-standardized. A command stanza on an authorized key works like the ForceCommand on SSHD Config. It runs the one specified co...
I’ve had some tools drop the last incomplete line on some OSes. For example: $ printf 'foo\nbar\nbaz' | sed 's/x/y/' foo bar $ _ I don’t recall which systems exactly these were, but I know ...
How to calculate the SHA1 digest of a file in a shell?