pwsafe is in the Debian/Ubuntu repositories and I assume should be in most of the major Linux distributions. If you can't find it for your distro, you can get it here.
Once installed, you will need to create a new database.
$ pwsafe --createdb
You be asked to create a password for this database, make sure it is unique, secure and don't forget it.
Once that is done you're ready to add an entry.
$ pwsafe -a name
This will initiate the following:
Enter passphrase for /home/jared/.pwsafe.dat:
password [return for random]:
notes: access to jaredandcoralee.com ftp and panel
This is pretty straight forward. You are asked for your passphrase (the one
created when you first set up your database) and then a group name. This is a
nice feature to catagorize your passwords. I have a group for Finance, Websites,
Work, etc. You can then search or list information just for those groups. Next you will enter a username, password (twice) and notes. The notes is nice for security questions you may be asked on bank sites for authentication where you can never remember the answer.
To view a list of entries with in a group.
$ pwsafe -l groupname
You will be prompted for your passphrase. The groupname is optional, but helps cut down on the output. This will just print out group, name and your notes. No passwords will be displayed.
To view your passwords,
$ pwsafe -upE name
Again you will be prompted for your passphrase and your username and password will be displayed. There's a lot more you can do with pwsafe. See the man page for more info.