LVM: Extending a logical volume

Adding additional space to a LVM logical volume. $ sudo lvextend --resizefs --size <size> <group>/<volume> $ sudo lvextend --resizefs --size +2G centos/root Adding 100% of the available free space. $ sudo lvextend --resizefs --extents +100%FREE centos/root

December 5, 2021

Zsh: Configuration files

Zsh config files and the order of sourcing during startup. 1 ~/.zshenv always sourced 2 ~/.zprofile sourced if login shell 3 ~/.zshrc sourced if interactive shell 4 ~/.zlogin sourced if login shell 5 ~/.zlogout sourced when exiting shell

December 4, 2021

Searching for files and sort them by date

Recursively search for files by name with find. Then, sort the result by time, newest first with ls -lt. $ find . -type f -name "Makefile*" -exec ls -lt {} + -rw------- 1 al al 1916 Feb 17 12:44 ./cc-python/{{cookiecutter.project_repository}}/Makefile -rw------- 1 al al 1862 Feb 17 12:41 ./data-api/Makefile -rw------- 1 al al 963 Feb 16 15:45 ./personal-website/Makefile -rw------- 1 al al 254 Feb 15 17:07 ./cc-python/Makefile

February 17, 2021