# using the mail command

How do I use the mail command to check email (and send email) from gmail. Does it support labels? I couldn't have figure out where to put the username and password. I tried to search for instruction but couldn't find any

The mail command is an old and primitive mail client. It only supports reading mail locally on a unix server, typically stored in mbox format in /var/mail or a similar location.
Another approach would be to have Gmail forward all mails to your machine. But that requires an always-on, always-connected machine, and some technical know-how. I don't recommend this for an inexperienced user. And I'd recommend a more modern mail client than mail anyway.