Print This Page

Linux

 

Bash Scripting Resources


The most useful bash scripting websites I have found:

 

Find Command Resources


I use the find command, but I often need help remembering how to use the more advanced features

  • http://www.athabascau.ca/html/depts/compserv/webunit/HOWTO/find.htm - A few simple examples of using find (including the -exec option)
  • Replace text in many files

    Example: Replace all occurrences of the text “alpha1_0” with “alpha0_25” in all .do files in the current directory and below

    find . -name "*.do" -exec sed -i 's/alpha1_0/alpha0_25/g'  \;

 

LaTeX Resources


The most useful LaTeX websites I have found:

 

Regular Expressions Resources


The most useful RegEx websites I have found:

 

sed Resources


The most useful sed websites I have found:

 

SSH Without Passwords


I find it annoying typing my password between machines that I ssh to all of the time. This may be a bit insecure, but it makes my life a lot easier!

  1. On the source machine:
    ssh-keygen -t dsa
        Don't enter a passphrase
        id_dsa and id_dsa.pub stored in ~/.ssh by default
  2. Copy id_dsa.pub to the target machine
  3. On the target machine:
    cat id_dsa.pub >> ~/.ssh/authorized_keys
        Adds this identity to the authorized_keys


If you have the same home directory on a set of machines, the source and target machines can be the same!


Previous page: Documentation
Next page: Mac OS X