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
77%
+5 −0
Q&A How to invert command exit code?

An exclamation mark followed by space in the beginning of a pipeline will negate the final exit code of the pipeline. Here's an example in Bash. Echoing $? will print out the exit code of the prev...

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

Answer
77%
+5 −0
Q&A How to get the kernel version?

uname, short for Unix Name, is part of GNU coreutils, and thus very likely already installed: $ uname --kernel-release 6.13.3-...

posted 3mo ago by Iizuki‭

Answer
77%
+5 −0
Q&A How 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 solutions are we...

2 answers  ·  posted 6mo ago by Iizuki‭  ·  last activity 6mo ago by samcarter‭

Question pdf markdown emoji
77%
+5 −0
Q&A Find path to an executable

How to find the exact path to an executable file present in your PATH. I.e. commands you can call by just their names. E.g. what executable gets called when I type find and hit enter? $ hypotheti...

3 answers  ·  posted 9mo ago by Iizuki‭  ·  last activity 9mo ago by Ordoviz‭

Question path find
75%
+4 −0
Q&A Find path to an executable

GNU which does the trick: $ which find /usr/bin/find It's very likely already installed.

posted 9mo ago by Iizuki‭

Answer
75%
+4 −0
Q&A Calculate the SHA1 checksum of a file

There's a sha1sum tool in GNU coreutils. Here's $ sha1sum emptyfile da39a3ee5e6b4b0d3255bfef95601890afd80709 emptyfile Note the spaces and the filename (emptyfile in this case) in the output...

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

Answer
75%
+4 −0
Q&A How to show motherboard model?

dmidecode can do this. Here's an example output from my system: # dmidecode --type 2 Getting SMBIOS data from sysfs. SMBIOS 3.1.1 present. Handle 0x0002, DMI type 2, 15 bytes Base Board Info...

posted 1y ago by Iizuki‭

Answer
71%
+3 −0
Q&A How to invert command exit code?

How to apply a logical not to a shell command, e.g. in a Bash script? So if the command exited with 0 (success) I would like it to be changed to a non-zero value, and if it exited with a non-zero ...

1 answer  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Quasímodo‭

Question shell shell-scripting
71%
+3 −0
Q&A How to get the kernel version?

How to get the version of the currently running Linux kernel? I'm looking for a commandline solution, but feel free to post GUI solutions as well.

2 answers  ·  posted 3mo ago by Iizuki‭  ·  last activity 2mo ago by GeraldS‭

Question kernel
71%
+3 −0
Q&A How to find your public IP address from command-line?

ip a command will conveniently show the addresses assigned to your network interfaces, but oftentimes this is not what the internet sees your machine as. So how to find your public IP address from...

3 answers  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Michael‭

Question networking ip-address
71%
+3 −0
Q&A How to convert json to yaml?

How to convert a json file to yaml? Technically json is already valid yaml, but I'm talking about the characteristic easy-to-read yaml formatting with indentation and minimal quotes.

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

Question json yaml
71%
+3 −0
Q&A Prettify XML in a shell

xmllint from xmllib2 can do this: $ output-dirty-xml | xmllint --format - The dash in the end tells xmllint to read from stdin instead of a file. Source: manpage

posted 1y ago by Iizuki‭

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

How to get the number of lines in a file? I.e. for a file like this: Line one Line 2 Final line I would like to do something like this: $ count-lines /path/to/the/file/above 3

2 answers  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Michael‭

Question shell file
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 1y ago by Iizuki‭  ·  edited 1y ago by Iizuki‭

Answer
66%
+2 −0
Q&A How to show motherboard model?

Surely there exists a command to print out the system's mother board model? Opening up the chassis is not an option.

2 answers  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Matthias Braun‭

Question hardware motherboard
66%
+2 −0
Q&A How to export public GPG key?

This is how to save it to a file: $ gpg --export --armor key-id > my-key.pub --armor stands for the format with printable characters.

posted 1y ago by Iizuki‭

Answer
66%
+2 −0
Q&A How to export public GPG key?

GPG stores keys inside an internal database of some sort. How to export your public key in the familiar -----BEGIN PGP PUBLIC KEY BLOCK----- format so that it can be imported to other software? E.g...

2 answers  ·  posted 1y ago by Iizuki‭  ·  last activity 11mo ago by Michael‭

Question GPG
66%
+2 −0
Q&A List remote container tags

How to list tags of a container in container registry using CLI tools? Kinda like you would browse them visually in dockerhub.

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

Question container
66%
+2 −0
Q&A How to set up a system with two hard drives?

Keep both your / and /home on the SSD, and then create the /data partition on your HDD. You could link individual directories from home as you say, but I usually create just one link to the HDD ro...

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

Answer
66%
+2 −0
Q&A Command to display remote certificate information

How to display details about a site's certificate using CLI tools?

2 answers  ·  posted 9mo ago by Iizuki‭  ·  edited 9mo ago by Iizuki‭

Question cli certificate tls
66%
+2 −0
Q&A Show a timestamp on the right side of prompt when executing a command in ZSH

How to configure ZSH shell to print a timestamp on the right hand side of the prompt line when executing a command? I don't want to display the time prior to executing a command. Here's about how ...

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

Question zsh
66%
+2 −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 8mo ago by Iizuki‭

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

Suppose the machine is short on memory and the OOM Killer has selected a target process to shut down (in order to reclaim memory). How does the OOM killer actually kill the process? Is it done usi...

1 answer  ·  posted 6mo ago by Iizuki‭  ·  edited 6mo ago by Karl Knechtel‭

Question process resource-management
66%
+2 −0
Q&A What are the %U and %u parameters in desktop files?

Desktop files always have either %u or %U as an argument for the program being launched. E.g. here's a line from my firefox.desktop: Exec=/usr/lib/firefox/firefox %u What does it mean?

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

Question desktop xdg
66%
+2 −0
Q&A Show a timestamp on the right side of prompt when executing a command in ZSH

The preexec function is called right before executing commands, so it's the place to do this sorta things. This solution is adapted from Dan Berindei's original answer (CC BY-SA 3.0) to a related ...

posted 1y ago by Iizuki‭

Answer