1.\" Copyright (c) 1983 1990 The Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" %sccs.include.redist.roff% 5.\" 6.\" @(#)groups.1 6.6 (Berkeley) 08/05/91 7.\" 8.Dd 9.Dt GROUPS 1 10.Os BSD 4.2 11.Sh NAME 12.Nm groups 13.Nd show group memberships 14.Sh SYNOPSIS 15.Nm groups 16.Op Ar user 17.Sh DESCRIPTION 18The 19.Nm groups 20command shows the groups to which you or the optionally specified 21user belong. 22Each user belongs to a group specified in the password file 23and possibly to other groups. 24If you do not own a file but belong to the group by which it is owned, 25then you are granted group access to the file. 26.Pp 27When a new file is created it is given the group of the containing 28directory. 29.Sh SEE ALSO 30.Xr id 1 , 31.Xr group 5 , 32.Sh HISTORY 33The 34.Nm groups 35command appeared in 36.Bx 4.2 . 37