Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
but what i wish to know is that whether we have any such measure/command to see all users on a linux machine, like we can see the current active user with 'man' or 'w' command.
what i wish to know is that whether we have any such measure/command to see all users on a linux machine, like we can see the current active user with 'man' or 'w' command.
Even Who -q shows only the current active user. I am interested in similar information off all the user in the same machine. For instance, I have 4 users on my RHEL5 machine, and i wish to know their brief statistics like 'w' command gives for the active user only.
I think i am clear now....
~]# who --help
Usage: who [OPTION]... [ FILE | ARG1 ARG2 ]
-a, --all same as -b -d --login -p -r -t -T -u
-b, --boot time of last system boot
-d, --dead print dead processes
-H, --heading print line of column headings
-l, --login print system login processes
--lookup attempt to canonicalize hostnames via DNS
-m only hostname and user associated with stdin
-p, --process print active processes spawned by init
-q, --count all login names and number of users logged on
-r, --runlevel print current runlevel
-s, --short print only name, line, and time (default)
-t, --time print last system clock change
-T, -w, --mesg add user's message status as +, - or ?
-u, --users list users logged in
--message same as -T
--writable same as -T
--help display this help and exit
--version output version information and exit
If FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common.
If ARG1 ARG2 given, -m presumed: `am i' or `mom likes' are usual.
The commmands "w", "who" and "users" all deal with current users as opposed to "All".
if you do "ls /home" you should see a list of all users on the system.
Just did "apropos user" and found a Command "users-admin" that might help.
Yea "users-admin" gets it. Doesn't show current activity like "W" but shows info on real name etc - allows creation deletion and modification of user accounts
Hi John,
thanks for cool advice...will try this on monday, as linux machine is at my workplace..it seems that it will sove my query...
thanks again..
Kapil.
Quote:
Originally Posted by john test
The commmands "w", "who" and "users" all deal with current users as opposed to "All".
if you do "ls /home" you should see a list of all users on the system.
Just did "apropos user" and found a Command "users-admin" that might help.
>> "How can i copy a file from a windows machine into the RHEL5 machine?
install putty on the windows box, and use "psftp"
or you can install ftp (yum install vsftpd; service vsftpd start) on the linux box, and from windows box, do ftp.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.