Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Posts by Iizuki‭

62 posts
66%
+2 −0
Q&A How to convert json to yaml?

With yq: $ yq --output-format yaml . file.json > file.yaml . is a filter which is applied to the data, but since . just stands for the document root, this means that the data is passed throu...

posted 12mo ago by Iizuki‭  ·  edited 11mo ago by Iizuki‭

Answer
62%
+3 −1
Q&A How to find big files and directories?

You've just run df -h and are shocked how little disk space you got left. You'd like to find where all the space has gone. How to find big(est) files and directories on your system? (So that you c...

3 answers  ·  posted 6mo ago by Iizuki‭  ·  edited 6mo ago by Iizuki‭

Question disk-usage maintenance
60%
+1 −0
Q&A How to create ed25519 subkey in GPG?

By using the non-interactive --quick-add-key method. This adds separate signing and encryption subkeys with expiration date one year from now: $ gpg --quick-add-key YOUR-PRIMARY-KEY-ID ed25519 sig...

posted 1y ago by Iizuki‭

Answer
60%
+1 −0
Q&A How to extract .tar.gz archive?

.tar.gz is a pretty common archive format. How to extract its contents, "unzipping" it in the command line?

1 answer  ·  posted 5mo ago by Iizuki‭  ·  edited 5mo ago by Michael‭

Question cli tar gzip
60%
+1 −0
Q&A How to move a BTRFS filesystem to another drive?

A convenient but a little risky method Don't do this unless you have backups on a separate drive, and are prepared to restore from them. Properties Pros Easy Uses native BTRFS tools Can be ...

posted 7mo ago by Iizuki‭

Answer
60%
+1 −0
Q&A How to move a BTRFS filesystem to another drive?

How to migrate a single device BTRFS filesystem to a new drive? I don't want to send individual subvolumes, but instead the entire filesystem with its subvolume layout intact. Changing the filesyst...

1 answer  ·  posted 7mo ago by Iizuki‭  ·  last activity 7mo ago by Iizuki‭

Question btrfs
60%
+1 −0
Q&A Command to display remote certificate information

nmap can do this: $ nmap -p 443 --script ssl-cert codidact.com Starting Nmap 7.95 ( https://nmap.org ) at 2024-08-12 10:06 EEST Nmap scan report for codidact.com (104.26.0.18) Host is up (0.00...

posted 8mo ago by Iizuki‭

Answer
60%
+1 −0
Q&A List remote container tags

Skopeo is a tool for managing remote containers. It has a list-tags subcommand which does exactly what it sounds like: $ skopeo list-tags docker://docker.io/archlinux Conventional container re...

posted 10mo ago by Iizuki‭

Answer
60%
+1 −0
Q&A Systemd unit needs to start at boot but wait for network

Yup that's the recommended way to do it. Wants adds the network-online.target as a soft dependency.[1] Systemd will try to start it if it isn't up already. Networking should work after this target...

posted 12mo ago by Iizuki‭  ·  edited 11mo ago by Iizuki‭

Answer
60%
+1 −0
Q&A Get notifications to dunst when systemd units fail

I have no experience with dunst, but generally you want a global service-level dropin file in /etc/systemd/system/service.d/ with OnFailure= setting in it. This way it gets added to all services ru...

posted 12mo ago by Iizuki‭

Answer
60%
+1 −0
Q&A ==> WARNING: Possibly missing firmware for module: 'foo'

Here's the relevant ArchWiki page. The gist of it is that most of those warnings are probably for some fairly obscure hardware, and can be just ignored (provided that your system indeed works fine...

posted 1y ago by Iizuki‭  ·  edited 12mo ago by Iizuki‭

Answer
60%
+1 −0
Q&A Prettify XML in a shell

How to pretty print XML in a shell? I have command-line tool which outputs XML in a single line, totally unreadable. I would like something to pipe this into, to turn it into human readable XML wi...

1 answer  ·  posted 1y ago by Iizuki‭  ·  edited 1y ago by Iizuki‭

Question shell xml
60%
+1 −0
Q&A ldapsearch: how to ignore certificate?

This can be done by setting the LDAPTLS_REQCERT environment variable to never. For example like this when issuing the command: LDAPTLS_REQCERT=never ldapsearch -H ldaps://example.com:636 ...

posted 1y ago by Iizuki‭

Answer
60%
+1 −0
Q&A How to count the lines of a file?

One way is to use grep: $ grep --count ^ /path/to/the/file The ^ character matches a start of a new line, so it basically counts the number of starting lines.

posted 1y ago by Iizuki‭

Answer
60%
+1 −0
Q&A How to find your public IP address from command-line?

Cisco's OpenDNS (nothing to do with open source) has this magic domain myip.opendns.com which resolves to your own public IP address when looked up with standard DNS tools. For example with dog (o...

posted 1y ago by Iizuki‭

Answer
60%
+1 −0
Q&A How to open a port in firewalld?

How to open a port when using firewalld as the system firewall?

1 answer  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Iizuki‭

Question firewall firewalld
60%
+1 −0
Q&A How to create ed25519 subkey in GPG?

At the moment GPG only offers the following options when generating a new subkey the with the addkey command: gpg> addkey Please select what kind of key you want: (3) DSA (sign only) (...

1 answer  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Iizuki‭

Question security GPG
50%
+0 −0
Q&A Pacman list files installed by a package

$ pacman --query --list package-name Or the short version: $ pacman -Ql package-name Source: pacman manpage

posted 12mo ago by Iizuki‭

Answer
50%
+0 −0
Q&A Systemd service status if ExecStop or ExecStopPost fails?

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.

1 answer  ·  posted 12mo ago by Iizuki‭  ·  last activity 12mo ago by Iizuki‭

Question systemd
50%
+0 −0
Q&A Systemd service status if ExecStop or ExecStopPost fails?

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...

posted 12mo ago by Iizuki‭

Answer
50%
+0 −0
Q&A Command to show GPU model

With lshw: # lshw -C display *-display description: VGA compatible controller product: Navi 32 [Radeon RX 7700 XT / 7800 XT] vendor: Advanced Micro Devi...

posted 7mo ago by Iizuki‭

Answer
50%
+0 −0
Q&A How to open a port in firewalld?

You add a port to the public zone like so: # firewall-cmd --zone=public --add-port=8080/tcp Firewalld knows already many of the commonly used ports, so you might just use the service name inste...

posted 1y ago by Iizuki‭

Answer
50%
+0 −0
Q&A How to create systemd unit that depends on a website being up?

To make your example work, you should add Type=oneshot and RemainAfterExit=true to the [Service] section. This way the unit won't be considered active until the curl has actually succeeded, and ei...

posted 1y ago by Iizuki‭

Answer
50%
+0 −0
Q&A How to extract .tar.gz archive?

tar can do it all: $ tar --extract --ungzip --one-top-level --file archive.tar.gz That will result in a directory named according to the archive (so just archive in this case) containing the ex...

posted 5mo ago by Iizuki‭  ·  edited 5mo ago by Iizuki‭

Answer
50%
+0 −0
Q&A How does the OOM Killer stop its victim process?

I couldn't find a definitive authoritative documentation anywhere but this seems pretty good: Mel Gorman: Understanding the Linux Virtual Memory Manager, Section 13.4 Once a task is selected, t...

posted 5mo ago by Iizuki‭

Answer