In all command you could specify --password=[password] but it's not safe. Option -p will prompt you to enter password

mysql -u [user] -p -e "show databases" list db on server    
mysql -u [user] -p -r [dbname] -e "show tables" list tables of dbname    
       
mysqldump -u [user] -p --databases [dbname] > [backupfile] backup database to file    
       
mysqladmin -u [user] -p processlist list mysql current process