answersLogoWhite

0

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

16y ago

What else can I help you with?

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 it is HCL in Linux?

HCL (Hardware Compatibility List) in Linux is a list of hardware components and devices that have been tested and confirmed to work with a particular Linux distribution. It helps users identify and choose compatible hardware to ensure optimal performance and reliability when running Linux on their systems.


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.


What are some recommended recording software options for Linux users?

Some recommended recording software options for Linux users include Audacity, Ardour, and OBS Studio.


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.


Do Linux users really hate Microsoft Windows?

Some of them.


What does su command in Linux give you?

It allows you to switch users.


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.