How will you print the login names of all users on a system?
Answer / Krishan Kumar
You can use the 'getent' command to display user information. Here's an example:nn```bashngrep ^login /etc/passwd | awk '{print $1}'```
| Is This Answer Correct ? | 0 Yes | 0 No |
What is scripting used for?
What are the different types of shell scripting?
is there any command to find user password?
Is shell script a programming language?
How to find duplicate record in file using shell script?
1 Answers IBM, Saama Tech, Wipro,
Where cron file kept?
How to check if the previous command was run successfully?
Write a shell script to looking at the log file to see if the test has passed or not
How do I stop script errors?
Explain about non-login shell files?
What are the disadvantages of shell scripting?
What is the difference between bash and shell?