The usermod command has several options for modifying user accounts. Here are some commonly used options:
-a, --append: Add the user to the supplementary groups mentioned by the-Goption without removing them from other groups.-c, --comment: Change the user's comment (usually the full name).-d, --home: Change the user's home directory.-e, --expire: Set the expiration date for the user account.-G, --groups: Specify a list of supplementary groups for the user.-l, --login: Change the username.-p, --password: Set the user's password (usually hashed).-u, --uid: Change the user's numeric ID.
You can view all options and their descriptions by running man usermod in the terminal. If you need help with a specific option, let me know!
