Creating UUID on Linux Command-Line

2

What's the latest solution to create a random UUID in up-to-date Linux/Ubuntu?

The answer here is rather out-dated.

xpt

Posted 2017-05-08T19:48:42.357

Reputation: 5 548

What's wrong with cat /proc/sys/kernel/random/uuid? – PaterSiul – 2017-05-08T19:56:20.033

2Nothing. This is a way of creating UUID on Command-Line that I didn't know before. – xpt – 2017-05-08T20:04:45.707

2It's mentioned in the second answer in the question you linked to :) – PaterSiul – 2017-05-08T20:12:14.163

"second answer", that means the first and accepted answer is out-dated. – xpt – 2017-05-08T21:24:01.290

1

Possible duplicate of How do I change another computer's network settings from Powershell and/or .NET?

– I say Reinstate Monica – 2017-05-09T02:10:42.767

<Sigh>, to all those people who thinks Command-Line is Windows -- it is not. Windows "borrows" the term from Linux. – xpt – 2017-05-09T14:58:58.023

Answers

4

cat /proc/sys/kernel/random/uuid seems to do the trick.

PaterSiul

Posted 2017-05-08T19:48:42.357

Reputation: 338