Save as "upload" or something and drop it in your personal bin directory (~/.bin if you have it set up) and make it executable. Call it as upload filename
, $1 always means "the first argument to this script" so the arguement you type with replace $1 on the scp command in the script.
As for the other script, I think an expect
script would do better than a shell script considering the su part. But on the other hand you could make an alias, that would probably be even better.
alias cam='su -c "mount /dev/sda1 /mnt/camera"'
Put that in your ~/.bashrc, ~/.bash_profile or something. Or just type it at the prompt. When you type cam
you will be asked for the root password and then the camera will be mounted.