answersLogoWhite

0


Best Answer

to get all users of the system : cat /ect/passwd (the 1st words, before the semicolon, are the usernames)

You can use the following commands to only display the names of the users (not the rest of the information): cat /etc/passwd | cut -d ":" -f1

== == == == OR you can use the following command to just return users who have a home directory under /home (useful if you are not interested in "special" users):

cat /etc/passwd | grep /home | cut -d: -f1

to get only the usernames of people using the system : ls /home/ Answer To see only who is logged on at any given moment, type...

who

and press the enter key.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you get a list of users in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which module displays list of users on boot in Linux?

This isn't really a module. In Linux a module is something you load into the kernel or into an application to extend their capabilities. The X client that displays a user list for login purposes is called a "display manager."


What Linux distribution is for home use?

Many Linux distributions are intended for home users.


Who writes documentation for Linux?

The users and developers.


What does the who command for Linux report?

It reports the list of users that are logged in with a regular interactive session (e.g. a console login or ssh). It does not report non-interactive sessions.


What is PenLUG?

PenLUG is: Peninsula Linux Users' Group.


What is the percentage of people use Linux?

This is the problem, no one really knows. Unlike Windows or OS X, Linux doesn't really have you "register" or phone home to anyone, so no statistic on how many Linux users there are is accurate. I personally estimate Linux users number at least as much as OS X users, though many will not agree with me.


Is Cloud Computing available for Linux Operating Systems?

Yes, cloud computing exists for Linux users. You can use almost any of the platforms with Linux.


What does su command in Linux give you?

It allows you to switch users.


Do Linux users really hate Microsoft Windows?

Some of them.


What is an open source database?

An Open Source Database is a list of software that an be used by users who have an open source OS like Linux or Unix. It is mostly free. Anyone has access.


Where is it possible to download IPcop?

IPCop, a firewall software geared toward Linux SOHO users, can be downloaded from the IPCop website. It was created by Linux users who were unhappy with the existing firewall availability.


What is Linux wine and what is it used for?

Linux Wine is an open source software program. The Linux Wine software program allows Linux users to run Windows programs on their own devices such as computers.