Ok I tried googling this but it's just so specific that I cant find anything 
First, the background:
I read somewhere that typing stuff in the terminal (running everyday commands) gets stored somewhere. In other words, I have a truecrypt partition and I dont want to type the password in the terminal (ie. sudo truecrypt --mount /dev/sdb --password *mypassword*) cos it will be easily recovered, so I first run truecrypt and type it in there - all is fine.
Now the question:
I want to have a few truecrypt drives, but it is darn annoying having to keep typing in a long password each time. Is it possible to have for eg. 3 truecrypt drives with the same password, and then using a SCRIPT, read in the password once from the terminal into a variable or wherever and then execute the appropriate command once for each drive without compromising my password?
First, the background:
I read somewhere that typing stuff in the terminal (running everyday commands) gets stored somewhere. In other words, I have a truecrypt partition and I dont want to type the password in the terminal (ie. sudo truecrypt --mount /dev/sdb --password *mypassword*) cos it will be easily recovered, so I first run truecrypt and type it in there - all is fine.
Now the question:
I want to have a few truecrypt drives, but it is darn annoying having to keep typing in a long password each time. Is it possible to have for eg. 3 truecrypt drives with the same password, and then using a SCRIPT, read in the password once from the terminal into a variable or wherever and then execute the appropriate command once for each drive without compromising my password?