UNIX Commands

The information in this document is based on my own experiences. Post here is for my own convenience.  It has been carefully checked. However, no responsibility is assumed if any one copied this document as their reference.

man tar | lpr    send tar man page to the printer

#hostname display hostname
#hostname omega600  set hoatname to omega600
ps -aux
find / -name "file_to_be_found" -print


vi editor:
vi -r filename (is for retrieve a file which is interrupted)
:set showmode
:set nu set #; :num  goto line num
:set flash
:w file_name;   w: /dir/filename
ctr -H erease a char
ctr -u kill the line
ctr -w erease a word
ctr -R redraw the screen
G goto end of file; 5G goto fifth line
^D move down; ^U  move up ^B move back
:/test CR string searching
o open a new line below; O open a new line above
2dd delete 2 lines u undo the last command
Y save line in buffer; p put saved line after cursor
^L refrash screen
ZZ save and quit

Network for Sun Workstation

After reinstall the file system, the following file should be checked.
/etc/hosts
  127.0.0.1  localhost
  170.140.39.1  gn600  loghost ----------IP address for gn600
  170.140.39.4  euch2e INDIGO ----------IP for other computer
      telnet euch2e or IP both work, if not in here, you        have to type IP for ftp and telnet.

/etc/rc.boot
  hostname=Omega #after reboot the hostname will changed to Omega,
     whenever
     #you can set the hostname by #hostname gn600 command.
/etc/netmasks
  170.140.39.0  255.255.255.62  ------chemistry department. Emory

/etc/networks
  loopback 127

#ifconfig le0 170.140.39.1 up
If all hardware work, it should work by using ping command
#ping 170.140.39.1
170.140.39.1 is alive #other IP# should have the same response.

NMR Journal On Line | UNIX Commands | UNIX Commands

Phone: 404-727-6621
Fax: 404-727-6586
Email: swu@emory.edu

Chemistry Department
1515 Pierce Drive
Atlanta, GA 30322