linux

ssh-copy-id

utilities, linux, security

ssh-copy-id # Copy public keys to a remote host’s ~/.ssh/authorized_keys file. Not technically part of OpenSSH. Helper utility written as a drop-in replacement for an existing utility in OpenSSH. Source - freebsd.org Example usage: ssh-copy-id -i ~/.ssh/id_ed25519.pub <user>@<IP Address>

ssh-keygen

utilities, linux

ssh-keygen # Default key that’s generated isn’t considered secure anymore. Better to generate a ed25519 key. I’m not sure why this is just yet. That would require further research. But I just know that this is more secure. ssh-keygen -t ed25519 -C "stovepipe default"

systemd

sysadmin, linux

systemd # The service manager on most modern Linux distributions. Systemd is the very first process that starts after the kernel is loaded, and it takes care of starting all other processes and services on a Linux system. unit # An item that is managed by Systemd. Different types of units exist: [root@rocky9 ~]# systemctl -t help Available unit types: service mount swap socket target device automount timer path slice scope Overview of units # systemctl Unit Overview Commands ...

systemd-journald

sysadmin, linux

systemd-journald # Writes system logging to a binary file. By default only logs since the last boot. journalctl # Most useful journalctl options: Option Use -f Follow the end of journal in real-time, like tail -f -b Show the boot logs -x Explain each log entry in detail -u Filter logs for a specific systemd unit -p Filter logs for messages with a specific priority -e Go to end of logs Conf # Systemd-journald conf: /etc/systemd/journald. ...

Tilde Expansion

bash, linux

Tilde Expansion # Prefix Value ~ $HOME ~user Home dir of user ~+ $PWD ~- $OLDPWD ~N dirs +N ~+N dirs +N ~-N dirs -N References # Tilde Expansion - gnu.org

tree

linux, sysadmin

tree # tree Option Description -a Includes hidden files in the output -d Excludes files from the output -h Displays file sizes in human-friendly format -f Prints the full path for each file -p Includes file permissions in the output