TGViewer
Linux для чайника Linux для чайника @linuxdevs · 3.84K subscribers
Post #240 3.45K
⌨️ Команда id может принимать различные параметры, которые позволяют отображать только определенную информацию.

Например чтобы распечатать только действующий идентификатор пользователя, используйте параметр -u:

$ id -u

1000

Используйте параметр -G ( --groups ), чтобы распечатать эффективные идентификаторы всех групп, к которым принадлежит пользователь:

$ id -G

1000 4 20 24 25 27 29 30 44 46 109 119 121 133 141

Вызвать справку:
$ id --help


Usage: id [OPTION]... [USER]...
Print user and group information for each specified USER,
or (when USER omitted) for the current process.

-a ignore, for compatibility with other versions
-Z, --context print only the security context of the process
-g, --group print only the effective group ID
-G, --groups print all group IDs
-n, --name print a name instead of a number, for -ugG
-r, --real print the real ID instead of the effective ID, with -ugG
-u, --user print only the effective user ID
-z, --zero delimit entries with NUL characters, not whitespace;
not permitted in default format
--help display this help and exit
--version output version information and exit

Without any OPTION, print some useful set of identified information.


#linux #commands #doc
More from @linuxdevs
  1. Sep 23, 2026⚡️ Автоматическое выключение компьютера — строго по расписанию в Linux Полезно, если ПК до…
  2. Sep 1, 2026🔥 Как узнать температуру оборудования в Linux (и не спалить систему) Если у вашего компью…
  3. Aug 13, 2026🖥 9 способов узнать всё о процессоре в Linux — от количества ядер до поддерживаемых инстр…
  4. Aug 4, 2026✍️ Основные команды для получения информации о системе в Linux date – вывести текущую дату…
  5. Jul 15, 2026☠️ Определяем тип файла Расширение вроде .jpg, .pdf или .exe легко подделать. А вот утилит…
  6. Jul 3, 2026🔍 grep — 15 команд, которые используют каждый день grep — стандартная утилита Linux для п…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →