Posts by Iizuki
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...
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...
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...
.tar.gz is a pretty common archive format. How to extract its contents, "unzipping" it in the command line?
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 ...
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...
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...
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...
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...
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...
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...
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...
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 ...
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.
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...
How to open a port when using firewalld as the system firewall?
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) (...
$ pacman --query --list package-name Or the short version: $ pacman -Ql package-name Source: pacman manpage
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...
With lshw: # lshw -C display *-display description: VGA compatible controller product: Navi 32 [Radeon RX 7700 XT / 7800 XT] vendor: Advanced Micro Devi...
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...
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...
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...
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...
- ← Previous
- 1
- 2
- 3
- Next →