Linux Syntax
============ Oliver Bromley, August 2004 Vr.144
find . -name *.java : find java source in my area
find / -name *.java : find java source on server
---------------------------------------------------------------
ps -aux | grep oliver : see whats running
df -h : see how much space is left
ps -a
ps -ax
ps -aux | less
----------------------------------------------how to get log.htm running
netstat -tln : show processes
ps 108 : show process 108
kill 108 : kill process 108
./wi > log.htm & : send output to webpage and detach the process,
so will carry running on server if PC is switched off
-----------------------------------------------
Control D : detach (so can shut PC down without closing the process)
screen -list : show detached screens with their numbers
e.g.
There is a screen on:
4688.pts-1.grab (Attached)
1 Socket in /home/oliver/.screen.
screen -r
screen -r nnn : show me this numbered screen
Screen -help : get help with screen
./wi > test_out & : run the wi pipe output to file test_out, detach process
tail -f test_out : show any changes happening to this file
ll : list files, like ls
ls -al : list files
wi &
cat ss : type contents of
rmiregistry & : replaces running the ss batch file
exit
==================================================================================