Fork me on GitHub
Nation Pigeon

Viewing Monthly Archive August 2011

route add default gateway

21st August 11 | Linux

Use the route command to set a list all network routes on your machine. To set a default gateway: route add default gw 10.0.0.1 eth0

[ Read More → ]

Get a list of filenames and move the files Bash and Power Shell

17th August 11 | Linux, Windows

Both these scripts do the same thing, they strip a log file down to the filename and then move each file up a directory. … C:\Random\Directory\n\chars\long\filename.xml … BASH cat 15\ August\ 2011\ Less.log | cut -c 113-152 > fileNames for i in `cat fileNames`; do mv -v “$i” ../$i; done WINDOWS gc ‘.\15 August 2011 [...]

[ Read More → ]

VirtualBox: Boot a virtual machine from a USB

6th August 11 | Linux

I wanted to install some software on to an OS which was installed on a USB flash drive, so I created a virtual machine that booted up of the USB drive. I found it needed root permissions, and it is probably a good idea to un-mount the device before hand. VBoxManage internalcommands createrawvmdk -filename ./HardDisks/USB-test.vmdk [...]

[ Read More → ]

Copyright © 2007 ∞ Nation Pigeon - Designed by Peter Mayanrd
Theme Based on Black-Green - Fork it on GitHub