Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How will you print the login names of all users on a system?



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

Post New Answer

More Shell Script Interview Questions

What is scripting used for?

1 Answers  


What are the different types of shell scripting?

1 Answers  


is there any command to find user password?

4 Answers  


Is shell script a programming language?

1 Answers  


How to find duplicate record in file using shell script?

1 Answers   IBM, Saama Tech, Wipro,


Where cron file kept?

2 Answers   Tech Mahindra,


How to check if the previous command was run successfully?

1 Answers  


Write a shell script to looking at the log file to see if the test has passed or not

2 Answers   TCS,


How do I stop script errors?

1 Answers  


Explain about non-login shell files?

1 Answers  


What are the disadvantages of shell scripting?

1 Answers  


What is the difference between bash and shell?

1 Answers  


Categories