How to determine when Consul snapshot was created

Determine when HashiCorp Consul snapshot was created. ...

November 29, 2022 · milosz · AWK · Consul

How to list file names and their contents

Use basic Linux utilities to list file names and their contents. ...

How to pretty print size in bytes using AWK

Pretty print size in bytes using AWK. ...

How to instantly add known_hosts entries for host and its IP address

Use simple shell function to instantly create known_hosts entries for specified host, including its IP address and remove outdated public host keys. ...

How to merge multiple known_hosts entries into single row

Global known_hosts file located in /etc/ssh/ssh_known_hosts and user managed ~/.ssh/known_hosts contains known host public keys. Due to its nature these files can contain multiple entries using the same key. It is not a problem, but merging entries using the same key is the first step that is necessary to inspect it visually and to verify host entries. ...