Added mkdir-random function to create a directory with a name of a random string
This commit is contained in:
parent
b241c969a9
commit
27bcc2a689
3
.aliases
3
.aliases
@ -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"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user