On Sun, 17 Apr 2022 13:45:39 -0500, Dale wrote:

> >> What is crypttab?  I type in the command manually.  
> > Then use a shell alias, even less typing.
> 
> I've done a couple basic alias things here but never grasped it enough
> to do anything beyond making ls run with -al each time.  I think there
> is another one I did but it was long ago.  I'd have to dig to find it. 

alias docrypt='cryptsetup whatever you normally type'

Put that in your profile and you can then mount open the encrypted drives
by typing docrypt. And if your setup changes, you change the alias but the
command you type stays the same.

Or you could use a shell script to open and mount with one command.

#!/bin/sh
cryptsetup whatever
mount whatever


-- 
Neil Bothwick

Celery is not food. It is a member of the plywood family.

Attachment: pgpIlRhE2Hskr.pgp
Description: OpenPGP digital signature

Reply via email to