Added mkdir-random function to create a directory with a name of a random string

This commit is contained in:
Phil 2025-03-29 21:15:14 +00:00
parent b241c969a9
commit 27bcc2a689

View File

@ -482,6 +482,9 @@ alias temp="vcgencmd measure_temp"
## Lookup IP
alias iplookup='iplookup-get(){ curl "ip.nclte.ch/json?ip=$1"; unset -f iplookup-get; }; iplookup-get'
## Make random dir
alias mkdir-random='mkdir $(cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 50 | head -n 1) && echo "Directory created: $(cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 50 | head -n 1)"'
## Display all commands in this Alias file
alias my-alias="cat ~/.aliases | grep -oP 'alias\s\K[^=]+' | sort -n"