01-21-2003
Quote:
Originally posted by cbkihong
Why can ps show whether a user is connected?
ps can show user id of processes, so if a user is connected, you will see their user id (and what shell and processes they are running).
8 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
I have created a small FAQ for the "Unix for Dummies" forum.
Hopefully this will be useful, as there are questions which are asked (and answered) repeatedly.
<A HREF="http://www.droflet.net/unix_dot_com_faq.html">http://www.droflet.net/unix_dot_com_faq.html (0 Replies)
Discussion started by: PxT
0 Replies
2. UNIX for Dummies Questions & Answers
í have no idea how to write a script. can someone help? how would i write a script that will do the following commands
mkdir temp
cp * temp
cd temp
ls
i want to be able to do a set of commands by typing in only one command. i´m a windows user that is trying to learn unix, finally :P so... (6 Replies)
Discussion started by: eeldivady
6 Replies
3. Shell Programming and Scripting
Hi all.
iam new to this and i want to learn perl
Any good website out there ??
anything will do
thanks
:( (1 Reply)
Discussion started by: perleo
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I just started studying AI at the university of amsterdam and I heard there is some basic UNIX test which is available online. Well, if any of you knows a link to that test I would truely appreciate it.
Thanks a lot,
L (1 Reply)
Discussion started by: L.A. BOSS
1 Replies
5. Solaris
Is there one command that will display all system information on a Solaris host running Solaris 8? System information such as model, memory, CPU, disk space etc. etc. (2 Replies)
Discussion started by: mita
2 Replies
6. Shell Programming and Scripting
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Discussion started by: Max89
1 Replies
7. Shell Programming and Scripting
How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies
8. UNIX for Dummies Questions & Answers
Please help to answer some highlighted question below.
1. How to create more than 1 partition in a single hard disk?
2. How to format the created partition to be viewable like in windows C: or D: ?
3. How to use pen drive in unix environment?
4. How to find a file starting with... (8 Replies)
Discussion started by: jimmyysk
8 Replies
LEARN ABOUT DEBIAN
hwloc-ps
HWLOC-PS(1) hwloc HWLOC-PS(1)
NAME
hwloc-ps - List currently-running processes that are bound.
SYNOPSIS
hwloc-ps [options]
OPTIONS
-a list all processes, even those that are not bound to any specific part of the machine.
-p --physical
report OS/physical indexes instead of logical indexes
-l --logical
report logical indexes instead of physical/OS indexes (default)
-c --cpuset
show process bindings as cpusets instead of objects.
--whole-system
Do not consider administration limitations.
DESCRIPTION
By default, hwloc-ps lists only those currently-running processes that are bound; it displays their their identifier, command-line and
binding. The binding may be reported as objects or cpusets. By default, process bindings are restricted to the currently available topol-
ogy. If some processes are bound to processors that are not available to the current process, they are ignored unless --whole-system is
given. The output is a plain list. If you wish to annotate the hierarchical topology with processes so as to see how they are actual dis-
tributed on the machine, you might want to use lstopo --ps instead (which also only shows processes that are bound).
The -a switch can be used to show all processes, if desired.
SEE ALSO
hwloc(7), lstopo(1), hwloc-calc(1), hwloc-distrib(1)
1.4.1 Feb 27, 2012 HWLOC-PS(1)