Tuesday, April 24, 2007

More Commands @ FreeBSD

Clearing the Terminal:

Clear

Adding a User:
adduser  [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k template]]
[-f inactive] [-e expire mm/dd/yy] [-p passwd] [-n] [-r] name
adduser -D [-g group] [-b base] [-s shell] [-f inactive] [-e expire mm/dd/yy]

To see what groups anyone else belongs to:

Add their login name to the end of the groups command like so:
groups genisis

Add a group:
pw group add group1
To add users user1 and user2 to the group( group1):
pw groupmod group1 -M user1,user2