See Which Groups Your Linux User Belongs To Uzzināt, kuri Grupas Your Linux User Pieder
When you are using a linux system, it's useful to find out what groups you belong to, so you can understand whether you have access to files and directories. Kad jūs lietojat linux sistēmas, ir lietderīgi uzzināt, ko grupu Jūs pārstāvat, lai jūs varētu saprast tā, vai jums ir piekļuve failus un direktorijas. This is one of the simplest commands possible. Tas ir viens no vienkāršākā komandu iespējams. I'm using Ubuntu linux, but this command should work on most varieties of linux. Es, izmantojot Ubuntu Linux, taču šī komanda būtu jāstrādā par lielāko šķirņu linux.
groups <username> grupām <username>
If you don't enter a username, it defaults to your own username. Ja jums nav ievadiet lietotājvārdu, tas noklusējumus uz savu lietotājvārdu. For instance: Piemēram:
geek@ubuntuServ:$ groups geek @ ubuntuServ: $ grupām
geek adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin fuse geek adm dialout cdrom floppy audio iemērkšana video plugdev lpadmin scanner admin fuse
You can also check the groups for any other user, including root: Jūs varat arī pārbaudīt citiem lietotājiem, ieskaitot root grupas:
geek@ubuntuServ:$ groups root geek @ ubuntuServ: $ grupām root
root : root fuse root: root fuse
I used this command recently to make sure that my user account was part of the “fuse” group, when I was Es izmantot šo komandu nesen pārliecināties, ka manā lietotāja kontā bija daļa no "drošinātāju" grupa, kad man bija getting sshfs set up Getting sshfs izveidota . . Very useful. Ļoti noderīga.

Daily Email Updates Daily Email Updates
You can get our how-to articles in your inbox each day for free. Jūs varat saņemt mūsu how-to rakstus savā pastkastītē katru dienu par brīvu. Just enter your name and email below: Vienkārši ievadiet jūsu vārdu un e-pasta zemāk:


