The equivalent of batch files in *nix are shell scripts. You are probably using the Bourne Again SHell (Bash), so you might be interested in
http://tldp.org/LDP/abs/html/abs-guide.html
The Bash shell equivalent (untested of course) of your batch file would be:
Code:
#!/bin/sh
cd $HOME/javastuff
export PATH=$PATH:/opt/jdk/bin
javac *Sample.java
java Sample
sleep
After you write it, then set it executable with chmod +x bat_to_script.sh.