Linux notes

  • to access your command history using PgnUp/PgnDown, insert in your file /etc/inputrc these lines:
  • convert (to create a .gif animation)
  • gs (to create a pdf from .eps files)
    • landscape orientation (note the number 1 in the command)

gs -sDEVICE=pdfwrite -sOutputFile="output.pdf" -dNOPAUSE -dEPSCrop -c "<</Orientation 1>> setpagedevice" -f fileA.eps fileB*.eps -c quit

  • sudo rsync -axv --max-size=2.4G /* /media/MYPASSPORT/complete_laptop_backup_01Jul2014 --exclude={/media/MYPASSPORT}

(to perform a carbon copy of /* onto the backup folder)

  • screen (to create virtual terminals)
  • Software
    • Mendeley (reference manager and academic social network)
  • Matlab
    • transparent nan with imagesc:

b=imagesc(x,y,DATA);set(b,'AlphaData',~isnan(DATA));

"\e[5~": history-search-backward

"\e[6~": history-search-forward