I'll tell you this: to find a literary agent, you're probably going to do a lot of Googling. Figure out what genre, or category, your book is in, and then narrow that down with your search. For example: "YA urban fantasy literary agents" or "YA mystery literary agents".
As long as you didn't mess something up horribly, you should get pages and pages of results -- most likely from agency websites. Obviously, check out the links and read up on what the agents are interested in, and what agent there seems like the closest match for you and your book.
You can also look up agents in books like The Jeff Herman Guide to Editors, Publishers, and Literary Agents, Publisher's Marketplace, and so on.
A lot of agents are starting their own blogs, where you can get a feel for the agent's personality, what kind of books they're looking for, and news on the industry in general.
Lastly, I have a few places on the Internet that I've stumbled upon, which also feature lists of agents. Some of them -- like Casey McCormick's blog, Literary Rambles -- are updated and added to regularly, and some of them...not so much. Still, they've been helpful to me, and that'll hopefully be true for you, too.
Always check an agent's credibility, okay? I know, I know, everyone stresses this one a lot -- but there's a reason for that. The only way an agent should get your money is their standard percentage, which they get after they sell your book. Comprende?
The place to check credibility is Preditors & Editors, which lists agents as well.
There you have it. There are other places, of course, tons and tons of them. But it's up to you to go out and find them. Have any others that you think should be listed? Mention them below in the comments.
Well, we're here.
To the post I don't really know how to write -- not because I don't get it, but because there are so many ways to go with this. Anyway, I'll just do my best, and assume that you've written a novel which you want to get published.
It really just depends on what you want to happen with this book. If you're only wanting to share it with family and friends, then self-publishing might be a way to go. Or maybe you're like me. Maybe you're looking to launch a career with this novel, start building a name for yourself.
Since I am trying to publish with the traditional route, I'm not sure I know enough about the process of self-publishing to explain it to other people -- so you're on your own, pal. (In this stage of your life, Google will become your best friend, if it isn't already.) Just look it up and check out some other writing websites and blogs.
But back to that traditional publishing idea. Technically, you don't have to have a literary agent, but it makes things a lot easier on you. A lot of publishers won't look at work unless it's represented by an agent; then you'll just end up in the slush pile, and you'll be lucky if anyone ever checks out your book. But what an agent actually does for her/his clients actually goes much deeper than that -- here's an explanation by literary agent Nathan Bransford:
http://blog.nathanbransford.com/2009/09/what-do-literary-agents-do.html
So really, you just need to decide what direction you're wanting to go in with your book, and explore your options from there.