Create a directory and change into it at the same time

terminal

mkd() { mkdir -p "$@" && cd "$@"; }
click the source code to copy install terminal on any operating system with command-not-found.com