34 Actions

How to use /dev/(u)randomWell.. that really depends on your definition of a line. My definition is bytes terminated by a \n. What's yours? head -30 /dev/urandom will give you 30 lines of random bytes. The length of those lines will certainly be random. Try running wc -l on your output file if you aren't convinced.

How to run sudo command with no password?This is pretty dangerous advice... copy and paste this wrong and you'll lock yourself out of your own server. Hence the advice to use visudo. It checks that the syntax is correct before saving to disk. So, for anyone that wants to use this. Don't do it on a remote server that you care about. You might want to include a warning about that in your answer.