creis ~$ ssh -X attu.cs.washington.edu creis@attu.cs.washington.edu's password: Last login: Mon Apr 5 14:28:53 2004 from 128.208.50.112 Pine and MH are the supported mailers on the instructional systems. Use passwd to change your password. Use chsh to change your shell. Contact support@cs if you need assistance. Please remove core files when you are done with them, as they tend to take up a lot of space on the disk. If everyone removes them when they are done debugging, there is going to be a lot more disk space to go around. Thanks! creis@attu4: ~$ ls courses/ lecture/ creis@attu4: ~$ cd lecture creis@attu4: ~/lecture$ ls *.java ShapeDemo.java SmallClass.java creis@attu4: ~/lecture$ less SmallClass. SmallClass.class SmallClass.java creis@attu4: ~/lecture$ less SmallClass.java creis@attu4: ~/lecture$ cat SmallClass.java import java.io.Serializable; /** * Simple Java class. */ public abstract class SmallClass implements Serializable { public String toString() { // Return a simple description of this object. return "A small class"; // string to return } } creis@attu4: ~/lecture$ grep -v '^[ ]*//' SmallClass.java import java.io.Serializable; /** * Simple Java class. */ public abstract class SmallClass implements Serializable { public String toString() { return "A small class"; // string to return } } creis@attu4: ~/lecture$ sed '/\/\//d' SmallClass.java import java.io.Serializable; /** * Simple Java class. */ public abstract class SmallClass implements Serializable { public String toString() { } } creis@attu4: ~/lecture$ cat SmallClass.java import java.io.Serializable; /** * Simple Java class. */ public abstract class SmallClass implements Serializable { public String toString() { // Return a simple description of this object. return "A small class"; // string to return } } creis@attu4: ~/lecture$ sed -e 's/abstract class \(.*\) implements/interface \1 extends/g' SmallClass.java import java.io.Serializable; /** * Simple Java class. */ public interface SmallClass extends Serializable { public String toString() { // Return a simple description of this object. return "A small class"; // string to return } } creis@attu4: ~/lecture$ xterm ls creis@attu4: ~/lecture$ ls Circle.class Rectangle.class ShapeInfo.class SmallClass.java emacs-reference.txt Shape.class ShapePanel.class myfile.txt ShapeDemo.java SmallClass.class creis@attu4: ~/lecture$ xterm creis@attu4: ~/lecture$ xterm & [1] 27692 creis@attu4: ~/lecture$ ls Circle.class Rectangle.class ShapeInfo.class SmallClass.java emacs-reference.txt Shape.class ShapePanel.class myfile.txt ShapeDemo.java SmallClass.class creis@attu4: ~/lecture$ kill 27692 creis@attu4: ~/lecture$ ps PID TTY TIME CMD 27081 pts/13 00:00:00 bash 27791 pts/13 00:00:00 ps [1]+ Exit 15 xterm creis@attu4: ~/lecture$ ps -aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 1372 480 ? S Mar22 0:09 init [3] root 2 0.0 0.0 0 0 ? SW Mar22 0:00 [keventd] root 3 0.0 0.0 0 0 ? SWN Mar22 0:00 [ksoftirqd_CPU0] root 4 0.0 0.0 0 0 ? SWN Mar22 0:00 [ksoftirqd_CPU1] root 5 0.0 0.0 0 0 ? SWN Mar22 0:00 [ksoftirqd_CPU2] root 6 0.0 0.0 0 0 ? SWN Mar22 0:00 [ksoftirqd_CPU3] root 7 0.0 0.0 0 0 ? SW Mar22 0:02 [kswapd] root 8 0.0 0.0 0 0 ? SW Mar22 0:00 [bdflush] root 9 0.0 0.0 0 0 ? SW Mar22 0:06 [kupdated] root 12 0.0 0.0 0 0 ? SW Mar22 0:00 [ahc_dv_0] root 13 0.0 0.0 0 0 ? SW Mar22 0:00 [ahc_dv_1] root 14 0.0 0.0 0 0 ? SW Mar22 0:00 [scsi_eh_0] root 15 0.0 0.0 0 0 ? SW Mar22 0:00 [scsi_eh_1] root 16 0.0 0.0 0 0 ? SW< Mar22 0:00 [mdrecoveryd] root 138 0.0 0.0 0 0 ? SW Mar22 0:04 [kjournald] root 139 0.0 0.0 0 0 ? SW Mar22 0:28 [kjournald] root 140 0.0 0.0 0 0 ? SW Mar22 0:03 [kjournald] root 141 0.0 0.0 0 0 ? SW Mar22 0:00 [kjournald] root 497 0.0 0.0 1428 536 ? S Mar22 0:05 syslogd -m 0 root 502 0.0 0.0 1368 440 ? S Mar22 0:00 klogd -x rpc 522 0.0 0.0 1804 696 ? S Mar22 0:00 portmap rpcuser 550 0.0 0.0 1540 680 ? S Mar22 0:00 rpc.statd root 645 0.0 0.0 0 0 ? SW Mar22 0:27 [rpciod] root 646 0.0 0.0 0 0 ? SW Mar22 0:00 [lockd] ntp 671 0.0 0.0 1888 1880 ? SL Mar22 0:13 ntpd -U ntp root 809 0.0 0.0 1476 576 ? S Mar22 0:01 /usr/sbin/automou root 813 0.0 0.0 1476 576 ? S Mar22 0:00 /usr/sbin/automou root 818 0.0 0.0 1476 576 ? S Mar22 0:00 /usr/sbin/automou root 820 0.0 0.0 1476 576 ? S Mar22 0:00 /usr/sbin/automou root 826 0.0 0.0 1476 576 ? S Mar22 0:00 /usr/sbin/automou root 851 0.0 0.0 1472 572 ? S Mar22 0:00 /usr/sbin/automou root 875 0.0 0.0 1476 576 ? S Mar22 0:00 /usr/sbin/automou root 899 0.0 0.0 1480 576 ? S Mar22 0:00 /usr/sbin/automou root 920 0.0 0.0 1472 572 ? S Mar22 0:00 /usr/sbin/automou root 965 0.0 0.0 3476 1352 ? S Mar22 0:24 /usr/sbin/sshd root 1001 0.0 0.0 2100 848 ? S Mar22 0:00 xinetd -stayalive smmsp 1049 0.0 0.0 5520 1920 ? S Mar22 0:00 sendmail: Queue r root 1068 0.0 0.0 1404 432 ? S Mar22 0:00 gpm -t ps/2 -m /d root 1086 0.0 0.0 1432 568 ? S Mar22 0:00 crond daemon 1137 0.0 0.0 1408 508 ? S Mar22 0:00 /usr/sbin/atd root 1144 0.0 0.0 1344 396 tty1 S Mar22 0:00 /sbin/mingetty tt root 1145 0.0 0.0 1344 396 tty2 S Mar22 0:00 /sbin/mingetty tt root 1146 0.0 0.0 1344 396 tty3 S Mar22 0:00 /sbin/mingetty tt root 1147 0.0 0.0 1344 396 tty4 S Mar22 0:00 /sbin/mingetty tt root 1148 0.0 0.0 1344 396 tty5 S Mar22 0:00 /sbin/mingetty tt root 1149 0.0 0.0 1344 396 tty6 S Mar22 0:00 /sbin/mingetty tt awong 10499 0.0 0.0 4468 3144 ? S Mar23 0:18 /uns/bin/SCREEN root 31651 0.0 0.0 6104 2052 ? S Mar25 0:00 sshd: awong [priv awong 31653 0.0 0.0 6252 2192 ? S Mar25 0:04 sshd: awong@pts/4 [ ... lots more processes ... ] vkmani 27800 3.0 0.1 10620 6896 pts/8 S 14:54 0:00 emacs -nw scanner root 27819 0.0 0.0 4860 1556 ? S 14:54 0:00 /usr/sbin/sshd sshd 27820 0.0 0.0 4860 1596 ? S 14:54 0:00 sshd: [net] creis 27825 0.0 0.0 2596 676 pts/13 R 14:54 0:00 ps -aux creis@attu4: ~/lecture$ xterm & [1] 27883 creis@attu4: ~/lecture$ ps -aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 1372 480 ? S Mar22 0:09 init [3] root 2 0.0 0.0 0 0 ? SW Mar22 0:00 [keventd] root 3 0.0 0.0 0 0 ? SWN Mar22 0:00 [ksoftirqd_CPU0] root 4 0.0 0.0 0 0 ? SWN Mar22 0:00 [ksoftirqd_CPU1] root 5 0.0 0.0 0 0 ? SWN Mar22 0:00 [ksoftirqd_CPU2] root 6 0.0 0.0 0 0 ? SWN Mar22 0:00 [ksoftirqd_CPU3] [ ... lots more processes ... ] vipul 27826 0.7 0.2 10904 8028 pts/24 S 14:54 0:00 emacs token.c vkmani 27827 2.7 0.1 10600 6976 pts/8 S 14:55 0:01 emacs -nw scanner clbaker 27846 0.2 0.0 7628 3844 pts/1 S 14:55 0:00 pine -i -z creis 27883 0.7 0.0 5924 2560 pts/13 S 14:56 0:00 xterm creis 27885 0.2 0.0 2344 1200 pts/19 S 14:56 0:00 bash creis 27887 4.0 0.0 2596 680 pts/13 R 14:56 0:00 ps -aux creis@attu4: ~/lecture$ kill 26612 bash: kill: (26612) - Operation not permitted creis@attu4: ~/lecture$ top 2:58pm up 13 days, 20:09, 26 users, load average: 0.11, 0.04, 0.01 150 processes: 149 sleeping, 1 running, 0 zombie, 0 stopped CPU0 states: 0.0% user, 0.1% system, 0.0% nice, 99.4% idle CPU1 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle CPU2 states: 0.1% user, 0.0% system, 0.0% nice, 99.4% idle CPU3 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle Mem: 4012144K av, 1206412K used, 2805732K free, 0K shrd, 147340K buff Swap: 4088492K av, 692K used, 4087800K free 605052K cached PID to kill: PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 27890 creis 12 0 1068 1068 812 R 0.1 0.0 0:00 top 1 root 7 0 480 480 420 S 0.0 0.0 0:09 init 2 root 9 0 0 0 0 SW 0.0 0.0 0:00 keventd 3 root 19 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU0 4 root 18 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU1 5 root 18 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU2 6 root 18 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU3 7 root 9 0 0 0 0 SW 0.0 0.0 0:02 kswapd 8 root 9 0 0 0 0 SW 0.0 0.0 0:00 bdflush 9 root 9 0 0 0 0 SW 0.0 0.0 0:06 kupdated 12 root 9 0 0 0 0 SW 0.0 0.0 0:00 ahc_dv_0 13 root 9 0 0 0 0 SW 0.0 0.0 0:00 ahc_dv_1 14 root 9 0 0 0 0 SW 0.0 0.0 0:00 scsi_eh_0 15 root 9 0 0 0 0 SW 0.0 0.0 0:00 scsi_eh_1 16 root -1 -20 0 0 0 SW< 0.0 0.0 0:00 mdrecoveryd 138 root 9 0 0 0 0 SW 0.0 0.0 0:04 kjournald 139 root 9 0 0 0 0 SW 0.0 0.0 0:28 kjournald 140 root 9 0 0 0 0 SW 0.0 0.0 0:03 kjournald 141 root 9 0 0 0 0 SW 0.0 0.0 0:00 kjournald 497 root 9 0 536 536 448 S 0.0 0.0 0:05 syslogd 502 root 9 0 444 440 380 S 0.0 0.0 0:00 klogd 522 rpc 9 0 696 696 580 S 0.0 0.0 0:00 portmap 550 rpcuser 9 0 680 680 584 S 0.0 0.0 0:00 rpc.statd 645 root 9 0 0 0 0 SW 0.0 0.0 0:27 rpciod 646 root 9 0 0 0 0 SW 0.0 0.0 0:00 lockd creis@attu4: ~/lecture$ xterm [2]+ Stopped xterm creis@attu4: ~/lecture$ fg xterm [2]+ Stopped xterm creis@attu4: ~/lecture$ bg [2]+ xterm & creis@attu4: ~/lecture$ ls Circle.class Rectangle.class ShapeInfo.class SmallClass.java emacs-reference.txt Shape.class ShapePanel.class myfile.txt ShapeDemo.java SmallClass.class creis@attu4: ~/lecture$ fg xterm creis@attu4: ~/lecture$ [1]+ Done xterm creis@attu4: ~/lecture$ creis@attu4: ~/lecture$ emacs