fbpx

Comandos Linux – Comando id

Linux id command

id command

On Unix-like operating systems, the id command prints the real and effective IDs of users and groups.

This document covers the GNU/Linux version of id.

Syntax

id [OPTION]... [USERNAME]

Description

Print user and group information for the specified USERNAME, or (when USERNAME omitted) for the current user.

Options

-aIgnored; included for compatibility with other versions.
-Z–contextPrint only the security context of the current user.
-g–groupPrint only the effective group ID.
-G–groupsPrint all group IDs.
-n–namePrint a name instead of a number, for -ugG.
-r–realPrint the real ID instead of the effective ID, with -ugG.
-u–userPrint only the effective user ID.
–helpDisplay this help and exit.
–versionOutput version information and exit.

If no OPTION is specified, id prints general user information.

Examples

id

Reports user and group IDs similar to the example below:

uid=12345(comphope) gid=12(users)

finger — List information about a user.
logname — Return a user’s login name.
who — Report which users are logged in to the system.

19 de novembro de 2019

Sobre nós

A Linux Force Brasil é uma empresa que ama a arte de ensinar. Nossa missão é criar talentos para a área de tecnologia e atender com excelência nossos clientes.

CNPJ: 13.299.207/0001-50
SAC:         0800 721 7901

[email protected]

Comercial  Comercial: (11) 3796-5900

Suporte:    (11) 3796-5900
[email protected]

Copyright © Linux Force Security  - Desde 2011.