Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

projects(1)

Name

projects - print project membership of user

Synopsis

projects [-dv] [ user]
projects -l [projectname [projectname]...]

Description

The projects command prints on standard output the projects to which the invoking user or an optionally specified user belongs. Each user belongs to some set of projects specified in the project(5) file and possibly in the associated NIS maps and LDAP databases for project information.

Options

The following options are supported:

–d

Prints only default project.

–l

Prints verbose info on each project projectname. If no projectnames are given, info on all projects is printed.

–v

Prints project descriptions along with project names.

Operands

The following operand is supported:

projectname

Display information for the specified project.

user

Displays project memberships for the specified user.

Examples

Example 1 Displaying Membership for a Specified User
example$ projects paul
default beatles wings
example$ projects ringo
default beatles
example$ projects -d paul
beatles

Exit Status

The following exit values are returned:

0

Successful completion.

1

A fatal error occurred during execution.

2

Invalid command line options were specified.

Files

/etc/project

Local database containing valid project definitions for this machine.

Attributes

See attributes(7) for a description of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Stability
See below.

The invocation is Committed. The human-readable output is Uncommitted.

See Also

getdefaultproj(3PROJECT), getprojent(3PROJECT), project(5), attributes(7)