This article on IBM's web site describes 10 good habits that will improve your UNIX command-line efficiency, such as how to manage directory navigation with pushd and popd and how to create temporary files without an editor.
I'm going to be starting a job in a month or so that I need to brush up on my Unix shell scripting skills. About 15 years ago, I took a college class for Unix shell scripting. I would like to find a good college book again, rather than just going to Amazon and just buying anything.
This is... (2 Replies)
Hi friends,
I m new to UNIX. let me know how can i start learning this technology.
Plz suggest some ebooks or any white papers to start with!!!!!!!!!! (4 Replies)
Hello-
I talked to a friend the other day....he said learning Linux is a boon to my Windows Server Support career. I know linux comes from Unix so I am wondering if I should start by learning Unix. I have a MAC with OSX on it that I can use. Will this work for learning line command? My goal is... (1 Reply)
i want to learn unix and i was wondering if someone could
give me a direction to take in which my learning would be easier
i started programming in school but i want to know more than what they teach us
i am running on win xp which i dont specially like but...
so if someone could give me... (0 Replies)
A list with sites that have a good tips to Unix System Administrator :
www.samag.com
www-1.ibm.com/servers/aix/products/aixos/whitepapers/aixmapping.html
www.science.uva.nl/pub/solaris/solaris2/index.html
www.spec.org
Witt (0 Replies)
Hi I've landed an entry level job in a s/w company.I've not yet started working.But they told me it would be good if i know unix very well.I don't have any idea abt unix.and now i realise it is very vast.It would be nice if somebody can tell me what i should be learning in unix.I don't think i'll... (5 Replies)
GETPEEREID(3) BSD Library Functions Manual GETPEEREID(3)NAME
getpeereid -- get the effective credentials of a UNIX-domain peer
LIBRARY
Utility functions from BSD systems (libbsd, -lbsd)
SYNOPSIS
#include <sys/types.h>
#include <bsd/unistd.h>
int
getpeereid(int s, uid_t *euid, gid_t *egid);
DESCRIPTION
The getpeereid() function returns the effective user and group IDs of the peer connected to a UNIX-domain socket. The argument s must be a
UNIX-domain socket (unix(4)) of type SOCK_STREAM on which either connect(2) or listen(2) have been called. The effective used ID is placed
in euid, and the effective group ID in egid.
The credentials returned to the listen(2) caller are those of its peer at the time it called connect(2); the credentials returned to the
connect(2) caller are those of its peer at the time it called listen(2). This mechanism is reliable; there is no way for either side to
influence the credentials returned to its peer except by calling the appropriate system call (i.e., either connect(2) or listen(2)) under
different effective credentials.
One common use of this routine is for a UNIX-domain server to verify the credentials of its client. Likewise, the client can verify the cre-
dentials of the server.
IMPLEMENTATION NOTES
On FreeBSD, getpeereid() is implemented in terms of the LOCAL_PEERCRED unix(4) socket option.
RETURN VALUES
The getpeereid() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi-
cate the error.
ERRORS
The getpeereid() function fails if:
[EBADF] The argument s is not a valid descriptor.
[ENOTSOCK] The argument s is a file, not a socket.
[ENOTCONN] The argument s does not refer to a socket on which connect(2) or listen(2) have been called.
[EINVAL] The argument s does not refer to a socket of type SOCK_STREAM, or the kernel returned invalid data.
SEE ALSO connect(2), getpeername(2), getsockname(2), getsockopt(2), listen(2), unix(4)HISTORY
The getpeereid() function appeared in FreeBSD 4.6.
BSD July 15, 2001 BSD