9
May

installation notes on linux from Yu Huang Homepage, USC MCB/CMB

short unix commandlines
by crocea — last modified 2007-04-17 09:28

useful options to some commands

latex2html:
convert a latex file to a single html file. 'latex2html -split=0 log_05.tex'
getent:
getent passwd yuhuang
chsh
change the default shell, need some time to take effect
deborphan(2006-09-06)
find orphaned libraries(packages)
scp(2006-09-07)
scp asks user whether to accept the connection every time it encounters a new host. 'hpc-cmb' is different from 'hpc-cmb.usc.edu' even though they have the same ip address. I guess it's based on hostname+ip. Be careful in those scheduled jobs(non-interactive).
astyle(2006-09-12)
indentation and reformatting filters for C, C++, Java, beautify code
texify(2006-09-12)
Beautify source code for use with LaTeX
yum list(2006-10-05)
list packages on redhat system
psmerge(2006-11-08)

merge multiple ps files into one file:

psmerge quiz2_answer.ps quiz4_answer.ps quiz6_answer.ps quiz8_answer.ps > quiz_2.4.6.8_answer.ps

ps (2007-01-25)

display precise starting time of a process (-o lstart):

ps -o suser,pid,ppid,pcpu,pmem,stime,lstart,time,tty,args -e

convert (2007-01-25)

picture file format conversion:

convert figures/id_96140.png figures/id_96140.jpg

schedule an email (2007-03-06)

The email is scheduled to sent to someboday@gmail.com at 6pm on Mar 13th 2007:

at 6pm 031307
mail -s "Subject" somebody@gmail.com

file-synchronization tool for Unix and Windows, File Synchronizer(2007-04-17)
unison, http://www.cis.upenn.edu/~bcpierce/unison/, setup two roots and etc.

Leave a Reply