Bash script that generates a random MAC address: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
hexdump -n3 -e'/3 "52:54:00" 3/1 ":%02X"' /dev/random; echo ""
hexdump -n3 -e'/3 "52:54:00" 3/1 ":%02X"' /dev/random; echo ""
</syntaxhighlight>
</syntaxhighlight>
Options:
-n<''number''> Interpret only ''number'' bytes of the input.
-e ' ''format-string'' '

Revision as of 23:55, 19 March 2019

Internal

Overview

hexdump -n3 -e'/3 "52:54:00" 3/1 ":%02X"' /dev/random; echo ""

Options:

-n<number> Interpret only number bytes of the input.

-e ' format-string '