> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/readme.md).

# TIL

> Today I Learned

Things I Learned today, found on [Simon's Blog](https://simonwillison.net/2020/Apr/20/self-rewriting-readme/), and repo can be found here: [Repo](https://github.com/jbranchaud/til)

***192 TILs so far.***

***

## Recently Added/Updated TILs

* [Clear Journald Logs](https://til.devjugal.com/linux/journalctl/clear-journalctl-logs.md)
* [Run Docker using Colima in MacBook](https://til.devjugal.com/macos/run-docker-using-colima.md)
* [Run MTR on MacOS without sudo](https://til.devjugal.com/macos/run-mtr-without-sudo.md)
* [Docker Exec (docker exec)](https://til.devjugal.com/docker/docker-exec.md)
* [Docker Publish Port](https://til.devjugal.com/docker/docker-publish-port.md)

***

## Categories

* [Linux](#linux)
* [Ansible](#ansible)
* [Caddy](#caddy-server)
* [Cheatsheets](#cheatsheets)
* [Docker](#docker)
* [Git](#git)
* [Github](#github)
* [Go](#go)
* [Learning Resources](#learning-resources)
* [MacOS](#macos)
* [Miscellaneous](#miscellaneous)
* [Python](#python)
* [Rclone](#rclone)
* [ReactJS](#reactjs)
* [Vagrant](#vagrant)
* [VSCode](#vscode)
* [WSL](#wsl)

***

## [Linux](https://til.devjugal.com/linux.md)

* [Add Swap Space To System](https://til.devjugal.com/linux/add-swap-space-to-system.md)
* [Add User To System](https://til.devjugal.com/linux/add-user-to-system.md)
* [Beautify Logs](https://til.devjugal.com/linux/beautify-logs.md)
* [Benchmark System](https://til.devjugal.com/linux/benchmark-system.md)
* [Ccze Scrolling Output](https://til.devjugal.com/linux/ccze-scrolling-output.md)
* [Change Default Shell](https://til.devjugal.com/linux/change-default-shell.md)
* [Change Hostname Of A system](https://til.devjugal.com/linux/change-hostname-of-a-system.md)
* [Changing User Password In Shell Script](https://til.devjugal.com/linux/changing-user-password-in-shell-script.md)
* [Check Group Of A User](https://til.devjugal.com/linux/check-group-of-a-user.md)
* [Check If A Package Is Installed Or Not](https://til.devjugal.com/linux/check-if-a-package-is-installed-or-not.md)
* [Check If A Port Is In Use](https://til.devjugal.com/linux/check-if-a-port-is-in-use.md)
* [Check If A User Exists](https://til.devjugal.com/linux/check-if-a-user-exists.md)
* [Check Open Port](https://til.devjugal.com/linux/check-open-port.md)
* [CMake Parallel Build with All Cores](https://til.devjugal.com/linux/cmake-parallel-build-with-all-cores.md)
* [Create Symbolic Links](https://til.devjugal.com/linux/create-symbolic-links.md)
* [Determine Which Process Is Using a File](https://til.devjugal.com/linux/determine-which-process-is-using-a-file.md)
* [Enable SSH Server](https://til.devjugal.com/linux/enable-ssh-server.md)
* [Fix Permission For Newly Created Partitions](https://til.devjugal.com/linux/fix-permission-for-newly-created-partitions.md)
* [Fix Windows And Linux Different Time Issue](https://til.devjugal.com/linux/fix-windows-and-linux-different-time-issue.md)
* [Get Arch Of System](https://til.devjugal.com/linux/get-arch-of-system.md)
* [Increase Limit of Inotify Watchers](https://til.devjugal.com/linux/increase-limit-of-inotify-watchers.md)
* [Install Latest NodeJS In Linux](https://til.devjugal.com/linux/install-latest-nodejs-in-linux.md)
* [Install Pavucontrol](https://til.devjugal.com/linux/install-pavucontrol.md)
* [Install Postman](https://til.devjugal.com/linux/install-postman.md)
* [Kill A Process In Linux](https://til.devjugal.com/linux/kill-a-process-in-linux.md)
* [Mount Partition On System Startup](https://til.devjugal.com/linux/mount-partition-on-system-startup.md)
* [OpenVPN Server](https://til.devjugal.com/linux/openvpn-server.md)
* [Ping over TCP](https://til.devjugal.com/linux/ping-over-tcp.md)
* [Pipe Password to Sudo](https://til.devjugal.com/linux/pipe-password-to-sudo.md)
* [Remove PPA From System](https://til.devjugal.com/linux/remove-ppa-from-system.md)
* [Remove User Password](https://til.devjugal.com/linux/remove-user-password.md)
* [Root Check in Scripts](https://til.devjugal.com/linux/root-check.md)
* [Run Go Binaries Without Installing Go](https://til.devjugal.com/linux/run-go-binaries-without-installing-go.md)
* [Set Different Time Zone](https://til.devjugal.com/linux/set-different-time-zone.md)
* [Show Disk Usage By Directories](https://til.devjugal.com/linux/show-disk-usage-by-directories.md)
* [Show Public IP](https://til.devjugal.com/linux/show-public-ip.md)
* [Show Size of Current Directory](https://til.devjugal.com/linux/show-size-of-current-directory.md)
* [System Ugprade](https://til.devjugal.com/linux/system-upgrade.md)
* [Tar Exclude Directories](https://til.devjugal.com/linux/tar-exclude-directories.md)
* [Tar Retain File Permissions](https://til.devjugal.com/linux/tar-retain-file-permissions.md)
* [Why All Users Can Write to /tmp](https://til.devjugal.com/linux/why-all-users-can-write-to-tmp.md)

### [Alpine Linux](https://til.devjugal.com/linux/alpine.md)

* [Adding User On Alpine](https://til.devjugal.com/linux/alpine/adding-user-on-alpine.md)
* [Chaning Timezone On Alpine](https://til.devjugal.com/linux/alpine/changing-timezone-on-alpine.md)
* [Installing Ansible On Alpine](https://til.devjugal.com/linux/alpine/installing-ansible-on-alpine.md)
* [Installing Dig On Alpine](https://til.devjugal.com/linux/alpine/installing-dig-on-alpine.md)
* [Installing Pip On Alpine](https://til.devjugal.com/linux/alpine/installing-pip-on-alpine.md)
* [Installing Python2 On Alpine](https://til.devjugal.com/linux/alpine/installing-python2-on-alpine.md)

### [Apt](https://til.devjugal.com/linux/apt.md)

* [APT Fix Broken Packages](https://til.devjugal.com/linux/apt/apt-fix-broken-packages.md)
* [APT Hold Packages From Upgrade](https://til.devjugal.com/linux/apt/apt-hold-packages-from-upgrades.md)

### [Arch Linux](https://til.devjugal.com/linux/arch.md)

* [Install Docker Compose](https://til.devjugal.com/linux/arch/install-docker-compose.md)
* [Install Docker](https://til.devjugal.com/linux/arch/install-docker.md)
* [Install Pip](https://til.devjugal.com/linux/arch/install-pip.md)

### [Bash](https://til.devjugal.com/linux/bash.md)

* [Bash List Only Directories](https://til.devjugal.com/linux/bash/bash-list-only-directories.md)
* [BashTOP Resource Monitor](https://til.devjugal.com/linux/bash/bashtop-resource-monitor.md)
* [Case Statements](https://til.devjugal.com/linux/bash/case-statements.md)
* [Concatenate Strings](https://til.devjugal.com/linux/bash/concatenate-strings.md)
* [Custom Shell Prompt](https://til.devjugal.com/linux/bash/custom-shell-prompt.md)
* [Length of String in Variable](https://til.devjugal.com/linux/bash/length-of-string-in-variable.md)
* [Test Regular Expression Against A String](https://til.devjugal.com/linux/bash/test-regular-expression-against-a-string.md)
* [Pass Arguments while Piping](https://til.devjugal.com/linux/bash/pass-arguments-while-piping.md)
* [Read Command Output In Reverse Order](https://til.devjugal.com/linux/bash/read-command-output-in-reverse-order.md)
* ["set -e" In Scripts](https://til.devjugal.com/linux/bash/set-e-in-scripts.md)
* [Set MacOS Like Terminal Font](https://til.devjugal.com/linux/bash/set-macos-like-terminal-font.md)
* [Set Unlimited Bash History](https://til.devjugal.com/linux/bash/set-unlimited-bash-history.md)
* [Shell Formatter](https://til.devjugal.com/linux/bash/shell-formatter.md)
* [Yes](https://til.devjugal.com/linux/bash/yes.md)

### [Curl](https://til.devjugal.com/linux/curl.md)

* [Fix Failed Writing Body While Piping](https://til.devjugal.com/linux/curl/fix-failed-writing-body-while-piping.md)
* [Use Proxy Server in cURL](https://til.devjugal.com/linux/curl/use-proxy-server-in-curl.md)

### [Fedora](https://til.devjugal.com/linux/fedora.md)

* [Fix Clear Command Not Found](https://til.devjugal.com/linux/fedora/fix-clear-command-not-found.md)
* [Install RPM Packages in Fedora](https://til.devjugal.com/linux/fedora/install-rpm-packages-in-fedora.md)

### [GPG](https://til.devjugal.com/linux/gpg.md)

* [Fix "Inappropriate ioctl for device" Error](https://til.devjugal.com/linux/gpg/fix-inappropriate-ioctl-for-device-error.md)
* [GPG Import Keys](https://til.devjugal.com/linux/gpg/gpg-import-keys.md)
* [GPG Test](https://til.devjugal.com/linux/gpg/gpg-test.md)
* [GPG Trust Key](https://til.devjugal.com/linux/gpg/gpg-trust-key.md)
* [GPG Verify Signature](https://til.devjugal.com/linux/gpg/gpg-verify-signature.md)

### [Grep](https://til.devjugal.com/linux/grep.md)

* [Grep Case Insensitive Search](https://til.devjugal.com/linux/grep/grep-case-insensitive-search.md)
* [Grep Count Occurance](https://til.devjugal.com/linux/grep/grep-count-matches.md)
* [Grep Exact Match](https://til.devjugal.com/linux/grep/grep-exact-match.md)
* [Grep Invert Search](https://til.devjugal.com/linux/grep/grep-invert-search.md)
* [Grep On Continous Stream](https://til.devjugal.com/linux/grep/grep-on-continous-stream.md)
* [Grep Quiet Mode](https://til.devjugal.com/linux/grep/grep-quiet-mode.md)
* [Grep Search For Multiple Strings](https://til.devjugal.com/linux/grep/grep-search-for-multiple-strings.md)
* [Remove Empty Lines](https://til.devjugal.com/linux/grep/remove-empty-lines.md)

### [Journalctl](https://til.devjugal.com/linux/journalctl.md)

* [Clear Journald Logs](https://til.devjugal.com/linux/journalctl/clear-journalctl-logs.md)
* [Get Errors in Running Services using Journalctl](https://til.devjugal.com/linux/journalctl/get-errors-in-running-services-using-journalctl.md)

### [Networking](https://til.devjugal.com/linux/networking.md)

* [Install Dig](https://til.devjugal.com/linux/networking/install-dig.md)
* [Install MTR](https://til.devjugal.com/linux/networking/install-mtr.md)
* [Set Metric For A Network Using nmcli](https://til.devjugal.com/linux/networking/set-metric-for-a-network-using-nmcli.md)
* [WireGuard Server](https://til.devjugal.com/linux/networking/wireguard-server.md)

### [Raspberry Pi](https://til.devjugal.com/linux/raspberry-pi.md)

* [Disable Swap Memory on SD Card](https://til.devjugal.com/linux/raspberry-pi/disable-swap-memory-on-sd-card.md)

### [SSH](https://til.devjugal.com/linux/ssh.md)

* [Reconnect To a Disconnected SSH Session](https://til.devjugal.com/linux/ssh/reconnect-to-a-disconnected-ssh-session.md)
* [Run A Local Script On Remote SSH Server](https://til.devjugal.com/linux/ssh/run-a-local-script-on-remote-ssh-server.md)
* [Screen](https://til.devjugal.com/linux/ssh/screen.md)
* [Tmux](https://til.devjugal.com/linux/ssh/tmux.md)

### [Systemd](https://til.devjugal.com/linux/systemd.md)

* [Create A Service](https://til.devjugal.com/linux/systemd/create-a-service.md)
* [Create A Systemd Timer](https://til.devjugal.com/linux/systemd/create-a-systemd-timer.md)
* [List Systemd Services Of A User](https://til.devjugal.com/linux/systemd/list-services-of-a-user.md)
* [Prevent Systemd Timers From Overlapping](https://til.devjugal.com/linux/systemd/prevent-systemd-timers-from-overlapping.md)
* [Watch Systemd Service Status](https://til.devjugal.com/linux/systemd/watch-systemd-service-status.md)

### [Tcpdump](https://til.devjugal.com/linux/tcpdump.md)

* [Capture ICMP Packets](https://til.devjugal.com/linux/tcpdump/capture-icmp-packets.md)
* [Capture Traffic By IP Or A Network](https://til.devjugal.com/linux/tcpdump/capture-traffic-by-an-ip-address-or-a-network.md)

### [Ubuntu Linux](https://til.devjugal.com/linux/ubuntu.md)

* [Get Clipboard History](https://til.devjugal.com/linux/ubuntu/get-clipboard-history.md)
* [Install HMAC256 On Ubuntu](https://til.devjugal.com/linux/ubuntu/install-hmac256-on-ubuntu.md)
* [Obtaining a List of Ubuntu Repository Mirror Servers](https://til.devjugal.com/linux/ubuntu/obtaining-a-list-of-ubuntu-repository-mirror-servers.md)

### [Wget](https://til.devjugal.com/linux/wget.md)

* [Basic Authentication](https://til.devjugal.com/linux/wget/basic-auth.md)

## [Ansible](https://til.devjugal.com/ansible.md)

* [Add Authorized SSH Key to User using Ansible](https://til.devjugal.com/ansible/add-ssh-key-to-user-using-ansible.md)
* [Ansible Add User to System](https://til.devjugal.com/ansible/add-user-to-system.md)
* [Ansible Configure Default Inventory File](https://til.devjugal.com/ansible/ansible-configure-default-inventory-file.md)
* [Ansible Disable Python Interpreter Warnings](https://til.devjugal.com/ansible/ansible-disable-python-interpreter-warnings.md)
* [Ansible Pause Playbook Execution](https://til.devjugal.com/ansible/ansible-pause-playbook-execution.md)
* [Ansible Test Connection](https://til.devjugal.com/ansible/ansible-test-connection.md)
* [Run Ansible Playbook Locally](https://til.devjugal.com/ansible/run-ansible-playbook-locally.md)
* [Setting a Password in Ansible Inventory File](https://til.devjugal.com/ansible/setting-a-password-in-ansible-inventory-file.md)

## [Caddy Server](https://til.devjugal.com/caddy.md)

* [Caddy Write Logs to a File](https://til.devjugal.com/caddy/caddy-write-logs-to-a-file.md)
* [Return Client IP Address As Plain Text](https://til.devjugal.com/caddy/return-client-ip-address-as-plain-text.md)

## [Cheatsheets](https://til.devjugal.com/cheatsheets.md)

* [Bash Cheatsheet](https://til.devjugal.com/cheatsheets/bash-cheatsheet.md)
* [Grep Cheatsheet](https://til.devjugal.com/cheatsheets/grep-cheatsheet.md)
* [Markdown Cheatsheet](https://til.devjugal.com/cheatsheets/markdown-cheatsheet.md)
* [MongoDB Cheatsheet](https://til.devjugal.com/cheatsheets/mongodb-cheatsheet.md)
* [Networking Cheatsheet](https://til.devjugal.com/cheatsheets/networking-cheatsheet.md)
* [Python Cheatsheet](https://til.devjugal.com/cheatsheets/python-cheatsheet.md)
* [ReactJS Cheatsheet](https://til.devjugal.com/cheatsheets/reactjs-cheatsheet.md)
* [Regex Cheatsheet](https://til.devjugal.com/cheatsheets/regex-cheatsheet.md)

## [Docker](https://til.devjugal.com/docker.md)

* [Docker Build Multiple Tags At Once](https://til.devjugal.com/docker/docker-build-multiple-tags-at-once.md)
* [Docker Exec](https://til.devjugal.com/docker/docker-exec.md)
* [Docker Publish Port](https://til.devjugal.com/docker/docker-publish-port.md)
* [Docker Run Without Cache](https://til.devjugal.com/docker/docker-run-without-cache.md)
* [Docker Run](https://til.devjugal.com/docker/docker-run.md)
* [Fix UFW Security Flaw](https://til.devjugal.com/docker/fix-ufw-security-flaw.md)
* [Install Docker](https://til.devjugal.com/docker/install-docker.md)
* [Install Ping in Docker](https://til.devjugal.com/docker/install-ping-in-docker.md)
* [Pass Build Time Arguments To Docker Build](https://til.devjugal.com/docker/pass-build-time-arguments-to-docker-build.md)
* [Remove Container When It Exits](https://til.devjugal.com/docker/remove-container-when-it-exits.md)
* [Remove Unused Data](https://til.devjugal.com/docker/remove-unused-data.md)
* [Run Docker without root](https://til.devjugal.com/docker/run-docker-without-root.md)
* [Setup Docker Buildx For Multi Arch Builds](https://til.devjugal.com/docker/setup-docker-buildx-for-multi-arch-builds.md)

## [Git](https://til.devjugal.com/git.md)

* [Change Last Commit Message](https://til.devjugal.com/git/change-last-commit-message.md)
* [Delete Tag](https://til.devjugal.com/git/delete-tag.md)
* [Get Tag Names in Git](https://til.devjugal.com/git/get-tag-names-in-git.md)
* [Save Credentials for Remotes in Git](https://til.devjugal.com/git/save-credentials-for-remotes.md)
* [Show Commit Only From One Author](https://til.devjugal.com/git/show-commit-only-from-one-author.md)
* [View Git Commit Changes](https://til.devjugal.com/git/view-git-commit-changes.md)

## [GitHub](https://til.devjugal.com/github.md)

### [GitHub Actions](https://til.devjugal.com/github/actions.md)

* [Setting An Environment Variable](https://til.devjugal.com/github/actions/setting-an-environment-variable.md)
* [Running Jobs in a Container](https://til.devjugal.com/github/actions/running-jobs-in-a-container.md)

## [Go](https://til.devjugal.com/go.md)

* [Convert String To Uppercase in Go](https://til.devjugal.com/go/convert-string-to-uppercase.md)
* [List All Possible GOOS And GOARCH](https://til.devjugal.com/go/list-all-possible-goos-and-goarch.md)
* [Print Go Version](https://til.devjugal.com/go/print-go-version.md)
* [Resolve Hostname To IP Address](https://til.devjugal.com/go/resolve-hostname-to-ip-address.md)
* [Trim Whitespaces From String](https://til.devjugal.com/go/trim-whitespaces-from-string.md)
* [Update Project Libraries To Latest](https://til.devjugal.com/go/update-project-libraries-to-latest.md)

## [Learning Resources](https://til.devjugal.com/learning-resources.md)

* [Algorithms](https://til.devjugal.com/learning-resources/algorithms.md)
* [DevOps](https://til.devjugal.com/learning-resources/devops.md)
* [Git](https://til.devjugal.com/learning-resources/git.md)
* [Linux](https://til.devjugal.com/learning-resources/linux.md)
* [Networking](https://til.devjugal.com/learning-resources/networking.md)
* [Programming Languages](https://til.devjugal.com/learning-resources/programming-languages.md)

## [MacOS](https://til.devjugal.com/macos.md)

* [Run Docker using Colima](https://til.devjugal.com/macos/run-docker-using-colima.md)
* [Run MTR without sudo](https://til.devjugal.com/macos/run-mtr-without-sudo.md)

## [Miscellaneous](https://til.devjugal.com/miscellaneous.md)

* [Good Reads](https://til.devjugal.com/miscellaneous/good-reads.md)
* [Must Read Sites](https://til.devjugal.com/miscellaneous/must-read-sites.md)
* [Useful Sites](https://til.devjugal.com/miscellaneous/useful-sites.md)

## [Python](https://til.devjugal.com/python.md)

* [Add An Item To Dictionary](https://til.devjugal.com/python/add-an-item-to-dictionary.md)
* [Check If A Key Exists In Dictionary](https://til.devjugal.com/python/check-if-a-key-exists-in-dictionary.md)
* [Check If a String is Empty](https://til.devjugal.com/python/check-if-a-string-is-empty.md)
* [Check Image Size](https://til.devjugal.com/python/check-image-size.md)
* [Check Python Version Programmatically](https://til.devjugal.com/python/check-python-version-programmatically.md)
* [Convert List To Tuple](https://til.devjugal.com/python/convert-list-to-tuple.md)
* [Execute Python Code in Command Shell](https://til.devjugal.com/python/execute-python-code-in-command-shell.md)
* [Formatted Strings](https://til.devjugal.com/python/formatted-strings.md)
* [Get IP Address From Hostname](https://til.devjugal.com/python/get-ip-address-from-hostname.md)
* [Limit Floating Point To Two Decimal Places](https://til.devjugal.com/python/limit-floating-point-to-two-decimal-places.md)
* [Measure Latency Using TCP](https://til.devjugal.com/python/measure-latency-using-tcp.md)
* [Pass List as Argument to a Function](https://til.devjugal.com/python/pass-list-as-argument-to-a-function.md)
* [Print Tabular Data](https://til.devjugal.com/python/print-tabular-data.md)
* [Python Padding Strings](https://til.devjugal.com/python/python-padding-strings.md)
* [Read A File Line By Line](https://til.devjugal.com/python/read-a-file-line-by-line.md)
* [Remove A File](https://til.devjugal.com/python/remove-a-file.md)
* [Remove Trailing Spaces And New Lines From A String](https://til.devjugal.com/python/remove-trailing-spaces-and-new-lines-from-a-string.md)
* [Run Python Script in Background](https://til.devjugal.com/python/run-python-script-in-background.md)
* [Split String with Delimiter](https://til.devjugal.com/python/split-string-with-delimiter.md)
* [Validate IP Address](https://til.devjugal.com/python/validate-ip-address.md)

### [Pipenv](https://til.devjugal.com/python/pipenv.md)

* [Install Dependencies System Wide](https://til.devjugal.com/python/pipenv/install-dependencies-system-wide.md)
* [Remove Virtualenv](https://til.devjugal.com/python/pipenv/remove-virtualenv.md)

## [Rclone](https://til.devjugal.com/rclone.md)

* [Limit Upload Download Speeds in Rclone](https://til.devjugal.com/rclone/limit-upload-download-speeds.md)

## [ReactJS](https://til.devjugal.com/reactjs.md)

* [ReactJS Resources](https://til.devjugal.com/reactjs/reactjs-resources.md)

## [Vagrant](https://til.devjugal.com/vagrant.md)

* [Increase RAM And CPU On Vagrant Machine](https://til.devjugal.com/vagrant/increase-ram-and-cpu-on-vagrant-machine.md)
* [Vagrant Specify Disk Size](https://til.devjugal.com/vagrant/vagrant-specify-disk-size.md)

## [VSCode](https://til.devjugal.com/vscode.md)

* [Fix Icons Not Displaying in Terminal](https://til.devjugal.com/vscode/fix-icons-not-displaying-in-terminal.md)
* [Install VS Code on a Linux Server](https://til.devjugal.com/vscode/install-vs-code-on-a-linux-server.md)

## [WSL](https://til.devjugal.com/wsl.md)

* [Convert WSL1 to WSL2](https://til.devjugal.com/wsl/convert-wsl1-to-wsl2.md)
* [Enable Systemd Support in WSL2](https://til.devjugal.com/wsl/enable-systemd-support-in-wsl2.md)
