11-13-2012
awesome... bipinajith. awk works great.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi, to do a su - user, we need to know what are the users...
so in unix
1) which file to see the list of users, passwords? (2 Replies)
Discussion started by: yls177
2 Replies
2. UNIX for Dummies Questions & Answers
Hey, got a few questions here for anyone who can help......
Command line to - display users using the system, but count them only once.
Command line to - use the lastcomm command to display how many times ive used grep in october.
Command line to - list all logged on users with at least 6... (3 Replies)
Discussion started by: xBuRnTx
3 Replies
3. UNIX for Dummies Questions & Answers
Hello,
i just wanted to know how do i find out the list of users whose terminal is writable?i mean i used
who -T
but this gives a list of all users whose terminal is writable or blocked and not writable. So how do i do this?I am new to Unix. (2 Replies)
Discussion started by: salman4u
2 Replies
4. Shell Programming and Scripting
How can I find the biggest file in a branch?
I tried
find / \*.\* | xargs du | sort -n 1,1 | head 1
but shell do nothings :(
---------- Post updated at 03:07 PM ---------- Previous update was at 02:41 PM ----------
Solved:
find / -name \*.\* | xargs du | sort -nr | head -n 1 (0 Replies)
Discussion started by: Guccio
0 Replies
5. UNIX for Advanced & Expert Users
Hello!Does anybody know how to solve this script:
,,write a shell script which displays a list of names of users who have created files "*. c" in the last day."? (1 Reply)
Discussion started by: theodoraa
1 Replies
6. UNIX for Advanced & Expert Users
When I try to configure my HBA ports on Solaris 10; I cant see any output.
bash-3.2# mpathadm list lu
bash-3.2#
I checked /kernel/drv/fp.conf file.
...
mpxio-disable="no";
...
What shall I check more? what shall I do?
---------- Post updated at 10:18 AM ---------- Previous update was... (0 Replies)
Discussion started by: hubatuwang
0 Replies
7. Shell Programming and Scripting
hi All,
I am using the command
find /home/mqm/check/ -mtime +1|wc -l
to get a count of the files older than a day under the check directory. But instead of getting the count of the files under check directory I m getting a count including the check directory itself. Can someone please tell... (0 Replies)
Discussion started by: jayii
0 Replies
8. UNIX for Dummies Questions & Answers
Hi
i would like to know were the folder that contain file with list of all users ?
And were i can learn about what kind of folder i have and wheat they have inside?
question 2.
when i write ls -a i see all directories and then i choose for example Documents
and inside Documents i typed again... (1 Reply)
Discussion started by: iliya24
1 Replies
9. UNIX for Advanced & Expert Users
Hello all,
I want to find the files for certain users. I cant make the or condition work in this instance. I've tried the code below but it didnt worked. Any input on how to get the list for all files for this users.
find . -type f -user abc134 -o -user xyz345 -o bce483 -exec ls... (6 Replies)
Discussion started by: sethmj
6 Replies
10. Shell Programming and Scripting
Is there any command that can used in Linux that export usernames and their manager's name from AD using bash shell script?
I know this can be done using powershell but I need to use Linux for this procedure. (2 Replies)
Discussion started by: dellanicholson
2 Replies
LEARN ABOUT X11R4
sd_get_seats
SD_GET_SEATS(3) sd_get_seats SD_GET_SEATS(3)
NAME
sd_get_seats, sd_get_sessions, sd_get_uids - Determine available seats, sessions and logged in users
SYNOPSIS
#include <systemd/sd-login.h>
int sd_get_seats(char*** seats);
int sd_get_sessions(char*** sessions);
int sd_get_uids(char*** sessions);
DESCRIPTION
sd_get_seats() may be used to determine all currently available local seats. Returns a NULL terminated array of seat identifiers. The
returned array and all strings it references need to be freed with the libc free(3) call after use. Note that instead of an empty array
NULL may be returned and should be considered equivalent to an empty array.
Similar, sd_get_sessions() may be used to determine all current login sessions.
Similar, sd_get_uids() may be used to determine all Unix users who currently have login sessions.
RETURN VALUE
On success sd_get_seats(), sd_get_sessions() and sd_get_uids() return the number of entries in the arrays. On failure, these calls return a
negative errno-style error code.
NOTES
The sd_get_seats(), sd_get_sessions() and sd_get_uids() interfaces are available as shared library, which can be compiled and linked to
with the libsystemd-login pkg-config(1) file.
SEE ALSO
systemd(1), sd-login(7), sd_session_get_seat(3)
AUTHOR
Lennart Poettering <lennart@poettering.net>
Developer
systemd 10/07/2013 SD_GET_SEATS(3)