Sometimes, it is useful to copy files while preserving its timestamps. cp -a source dest scp -p source dest To cp without replacement, we can use rsync -au source/ dest/
Category Archives: linux
replace a string in files, reload files in emacs, change files names in batch,
1) To replace a string oldstring to newstring in some files, do sed -i ‘s/oldstring/newstring/g’ files 2) to reload files in email, just do ctrl c + ctrl v 3) to rename files in batch, do rename ‘s/oldstring/newstring/’ files
Some shortcuts in Linux Terminal
Shift+Ctrl+t new tab Shift+Ctrl+w close tab Shift+Ctrl+n new window Ctrl+{PgUp,PgDown} change tabs Shift+Insert paste from selection buffer, or if that’s empty the clipboard Ctrl+Insert copy selection to clipboard Shift+Ctrl+v paste from clipboard Ctrl+Click Open URL under mouse cursor Keyboard shortcuts for Terminal Ctrl + A = Move cursor to beginning of line Ctrl + E = Move …
use Emacs and AUCTeX to work with a PDF viewer
Here is a link for configure Emacs and AUCTeX to work with a PDF viewer: http://mathieu.3maisons.org/wordpress/how-to-configure-emacs-and-auctex-to-work-with-a-pdf-viewer