Which files are the source of the information in the following output? (Choose two.) uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (wireshark), 989 (docker), 1001 (libvirt)
Which files are the source of the information in the following output? (Choose two.) uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (wireshark), 989 (docker), 1001 (libvirt)
The files that contain the information presented in the output are /etc/passwd and /etc/group. The /etc/passwd file stores user account information, including the user ID (uid) and group ID (gid). The /etc/group file contains group information, including the group memberships of users. The given output displays a user's ID, primary group ID, and additional group memberships, all of which are stored in these two files.
This question is looking for the source of the information, aka files. B and C are correct, as those files both exist and contain that information. /etc/id is not a file, id is a command that pulls from the /etc/group file.
It should also be noted that the id command is not found in /etc/ either, it should be somewhere like /usr/bin/id, so /etc/id doesn't exist.
A and B are the correct answer. type id on the terminal and type cat /etc/passwd also in the terminal and you'll see it
yes but can you find the file named /etc/id in your linux system?
No you can't, it doesn't exist in /etc/, it's located in /usr/bin/, just another indication that A is an incorrect choice.
Jichz, I totally see your logic. But the id command pulls from the /etc/group file. This question is trying to trick you. If you run cat /etc/id, it does not exist. B and C are correct because those are the two files that you can pull that information from. /etc/id file does not exist, id is a command, not a file. They are asking for files, not commands. I hope that helps clarify some things.
the answer is B and C. I couldn't find /etc/id in my ubuntu VM
this is id command
only B is the correct answer
A is wrong, because id is a command. The answer is about /etc/id , if you try to cat /etc/id it doesn't work
Which FILES are the source... id is a command
whereis id id: /usr/bin/id /usr/share/man/man1/id.1.gz
root@kali:~# cat /etc/id cat: /etc/id: No existe el fichero o el directorio
This question does NOT specifiy for (Choose Two). The answer is B. Only.
This question does NOT specify for (Choose Two). The answer is B. Only.