Showing posts with label commands. Show all posts
Showing posts with label commands. Show all posts

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


Thursday, April 19, 2007

Commands @ FreeBSD

Delete all contents of a directory

rm -f *

Download a file from a URL

wget URL

Delete a directory

rm -r dirname

Delete a file

rm -f filename

List Processes

ps ax

Killing a process

Kill -9 PID

Finding a file

find (where to find) -name FileName