UNIX tips: Learn 10 more good UNIX usage habits


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris BigAdmin RSS UNIX tips: Learn 10 more good UNIX usage habits
# 1  
Old 09-30-2008
UNIX tips: Learn 10 more good UNIX usage habits

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.

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need a good book to learn UNIX Shell Scripting

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)
Discussion started by: dorlow
2 Replies

2. UNIX for Dummies Questions & Answers

Need to learn UNIX

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)
Discussion started by: sanketahir1985
4 Replies

3. UNIX Desktop Questions & Answers

Best way to learn Unix....

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)
Discussion started by: digitalayon
1 Replies

4. UNIX for Dummies Questions & Answers

Learning Tips - UNIX Shell Script

Can any one please provide a fast learning tips to learn UNIX shell scripting? Thanks, Gov (3 Replies)
Discussion started by: Govindh.v
3 Replies

5. UNIX for Dummies Questions & Answers

a good unix to learn

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)
Discussion started by: staind_art
0 Replies

6. News, Links, Events and Announcements

Good tips to Unix System Administrator

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)
Discussion started by: witt
0 Replies

7. Programming

What to learn in Unix

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)
Discussion started by: liiza
5 Replies
Login or Register to Ask a Question
GETPEEREID(3)						   BSD Library Functions Manual 					     GETPEEREID(3)

NAME
getpeereid -- get the effective credentials of a UNIX-domain peer LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/types.h> #include <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