3 ms·
Linux noob here: what's the fold for? How is that secret different from doing something like tr -dc A-Za-z0-9_ < /dev/urandom | head -c 32 ?
by drusepth 9y ago
Linux noob here: what's the fold for? How is that secret different from doing something like
tr -dc A-Za-z0-9_ < /dev/urandom | head -c 32
?
- koolba 9y agoThe difference is that fold will add a trailing newline. Another option is to add an '; echo' at the end of the operation. And yes the "cat" is not necessary.