Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

18 August 2009

List hardware

dmidecode

21 May 2008

Create large files for testing.

This command will create a 100Mb file.

dd if=/dev/random of=myfile.dat bs=$(( 1024 * 1024 )) count=100

This can take a long time, so try this

dd if=/dev/zero of=myfile.dat bs=$(( 1024 * 1024 )) count=100

See Unix Administratosphere for more detail.

12 June 2007

Easy way to set a user password

echo "password" | passwd --stdin username