How does linux see which groups there are?
This article mainly explains "how to check which groups linux has". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to check which groups linux has".
In linux, you can use the cat command to see which groups are available, which are used to connect files and print to standard output devices with the syntax "cat / etc/group"; the "/ ect/group" file is a user group profile, in which all the information about the user group is stored.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How does linux see which groups there are?
The cat (English spelling: concatenate) command is used to connect files and print to standard output devices.
The syntax is:
Cat [- AbeEnstTuv] [--help] [--version] fileName
The / ect/group file is a user group profile, that is, all information about the user group is stored in this file.
Parameter description:
-n or-- number: number the number of lines of all output starting with 1.
-b or-- number-nonblank: similar to-n, except that blank lines are not numbered.
-s or-- squeeze-blank: when you encounter blank lines with more than two consecutive lines, replace them with blank lines on one line.
-v or-- show-nonprinting: use ^ and M-symbols, except for LFD and TAB.
-E or-- show-ends: displays $at the end of each line.
-T or-- show-tabs: displays the TAB character as ^ I.
-A,-- show-all: equivalent to-vET.
-e: equivalent to the "- vE" option
-t: equivalent to the "- vT" option
Examples are as follows:
Output result:
At this point, I believe you have a deeper understanding of "how to view which groups in linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!