3. You can type history to see the last commands or if you want to see the output as well use script:
markus@mrk-fujibox:~$ script -a afilename
Script started, file is afilename
sh-3.00$ pwd
/home/markus
sh-3.00$ cd tmp
sh-3.00$ ls -l
total 164
-rwx------ 1 markus markus 153088 Feb 27 16:23 GLB1a2b.EXE
-rw------- 1 markus markus 1976 Feb 27 17:07 PT_script.txt
drwx------ 2 markus markus 4096 Feb 27 15:12 temp
sh-3.00$ exit
Script done, file is afilename

markus@mrk-fujibox:~$ cat afilename
Script started on Wed Mar 9 22:30:50 2005
sh-3.00$ pwd
/home/markus
sh-3.00$ cd tmp
sh-3.00$ ls -l
total 164
-rwx------ 1 markus markus 153088 Feb 27 16:23 GLB1a2b.EXE
-rw------- 1 markus markus 1976 Feb 27 17:07 PT_script.txt
drwx------ 2 markus markus 4096 Feb 27 15:12 temp
sh-3.00$ exit

Script done on Wed Mar 9 22:31:01 2005
markus@mrk-fujibox:~$