Month: July 2009
Trasfer over the network
July 22, 2009
Transfer stdin and stdout to and from machines over the network ssh remote_machine ‘cat – > file’ < file
Add Line Numbers
July 7, 2009
Use this command to add line numbers to a text file… sed = filename.txt | sed ‘N;s/\n/\t/’ > filename_number.txt
Install Package List
July 6, 2009
Install a list of packages from a text file. cat packages.txt | xargs apt-get install
Get a Random Futurama Quote
July 3, 2009
Useless – but fun – get a random Futurama Quote curl -Is slashdot.org | egrep ‘^X-(F|B)’ | cut -d \-…
Create Random Password
July 2, 2009
Use this command to create a random password < /dev/urandom tr -dc A-Za-z0-9_ | head -c8 Also see…
Recent Comments