What command will generate a list of user names from /etc/passwd along with their login shell?
What command will generate a list of user names from /etc/passwd along with their login shell?
The correct command to generate a list of user names from /etc/passwd along with their login shell is 'cut -d: -f1,7 /etc/passwd'. This command specifies ':' as the delimiter with '-d:' and selects the first and seventh fields, which correspond to the username and login shell, respectively.
The command that will generate a list of user names from `/etc/passwd` along with their login shell is: D. `cut -d: -f1,7 /etc/passwd` This `cut` command specifies the delimiter (`-d:`) as a colon and selects fields (`-f1,7`) for the username and the login shell from the `/etc/passwd` file.