I have an alias in my server's
/etc/profile which generates a random directory on command, like this:
alias rdir="mkdir -p ./`cat /dev/random | tr -cd 'a-z0-9' | head -c 8`/"
But it turns out this generates always the same string (in this case: directory). I figured out already this seems to be related to
source'ing the profile file and only generates a new random string after I call
Now, I wonder, how do I generate a random string in an alias which always changes when I call the alias, like in this example:
rdir? (Without re-