Stevens is the bible. Read and understand this and his other books and you have most of what you need.
http://www.amazon.com/UNIX-Systems-Programming-Communication-Concurrency/dp/0130424110
I have tried myself many books for learning the system programming.The best which I found is:System Programming with C and Unix by Adam HooverYou can directly start with this book.