Select Page

Linux Basics for the Aspiring Hacker, Part 1 (Getting Started)

Linux Basics for the Aspiring Hacker, Part 1 (Getting Started)

Welcome back, my hacker trainees!A number of you have written me regarding which operating system is best for hacking. I’ll start by saying that nearly every professional and expert hacker uses Linux or Unix. Although some hacks can be done with Windows and Mac OS, nearly all of the hacking tools are developed specifically for Linux.

There are some exceptions, though, including software like Cain and Abel, Havij, Zenmap, and Metasploit that are developed or ported for Windows.

When these Linux apps are developed in Linux and then ported over to Windows, they often lose some of their capabilities. In addition, there are capabilities built into Linux that simply are not available in Windows. That is why hacker tools are in most cases ONLY developed for Linux.

To summarize, to be a real expert hacker, you should master a few Linux skills and work from a Linux distribution like BackTrack or Kali.

For those of you who’ve never used Linux, I dedicate this series on the basics of Linux with an emphasis on the skills you need for hacking. So, let’s open up BackTrack or your other Linux distribution and let me show you a few things.

Step 1Boot Up Linux

Once you’ve booted up BackTrack, logged in as “root” and then type:

  • bt > startx

You should have a screen that looks similar to this.

Step 2Open a Terminal

To become proficient in Linux, you MUST master the terminal. Many things can be done now in the various Linux distributions by simply pointing and clicking, similar to Windows or Mac OS, but the expert hacker must know how to use the terminal to run most of the hacking tools.

MUST READ:  Code your first simple SQL Injection checking vulnerability with Python

So, let’s open a terminal by clicking on the terminal icon on the bottom bar. That should give us a screen that looks similar to this.

If you’ve ever used the command prompt in Windows, the Linux terminal is similar, but far more powerful. Unlike the Windows command prompt, you can do EVERYTHING in Linux from the terminal and control it more precisely than in Windows.

It’s important to keep in mind that unlike Windows, Linux is case-sensitive. This means that “Desktop” is different from “desktop” which is different from “DeskTop”. Those who are new to Linux often find this challenging, so try to keep this in mind.

Step 3Examine the Directory Structure

Let’s start with some basic Linux. Many beginners get tripped up by the structure of the file system in Linux. Unlike Windows, Linux’s file system is not linked to a physical drive like in Windows, so we don’t have a c:\ at the beginning of our Linux file system, but rather a /.

The forward slash (/) represents the “root” of the file system or the very top of the file system. All other directories (folders) are beneath this directory just like folders and sub-folders are beneath the c:\ drive.

To visualize the file system, let’s take a look at this diagram below.

It’s important to have a basic understanding of this file structure because often we need to navigate through it from the terminal without the use of a graphical tool like Windows Explorer.

A couple key things to note in this graphical representation:

  • The /bin directory is where binaries are stored. These are the programs that make Linux run.
  • /etc is generally where the configuration files are stored. In Linux, nearly everything is configured with a text file that is stored under /etc.
  • /dev directory holds device files, similar to Windows device drivers.
  • /var is generally where log files, among other files, are stored.
MUST READ:  How to Hack Snapchat Account

Step 4Using Pwd

When we open a terminal in BackTrack, the default directory we’re in is our “home” directory. As you can see from the graphic above, it’s to the right of the “root” directory or one level “below” root. We can confirm what directory we are in by typing:

  • bt > pwd

pwd stands for “present working directory” and as you can see, it returns “/root” meaning we’re in the root users directory (don’t confuse this with the top of the directory tree “root.” This is the root users directory).

pwd is a handy command to remember as we can use it any time to tell us where we are in the directory tree.

Step 5Using Cd Command

We can change the directory we’re working in by using the cd (change directory) command. In this case, let’s navigate “up” to the top of the directory structure by typing:

  • bt > cd ..

The cd command followed by the double dots (..) says, “move me up one level in the directory tree.” Notice that our command prompt has changed and when we type pwd we see that Linux responds by telling us we are in the “/” or the top of the directory tree (or the root directory).

  • bt > pwd

Step 6Using the Whoami Command

In our last lesson of this tutorial, we’ll use the whoami command. This command will return the name of the user we’re logged in as. Since we’re the root user, we can log in to any user account and that user’s name would be displayed here.

MUST READ:  How to Hack Your School's Server to Download Final Exam Answers
  • bt > whoami

That’s it for now. In the next several tutorials, I will continue to give you the basics of Linux that you’ll need to be a pro hacker, so keep coming back!

About The Author

He is the brain behind He started this platform as a one man army to bring news from the dark side or call it the hidden side of the Internet. He is a security researcher with an interest in cyber attacks, politics, and sport.


  1. But thiks research also underscores the demand for a long-term, prospective, randomized troal to really
    comprehend whether testosterone therapy can be used without putting guys at greater risk for cardiovascullar events for example heart
    attacks, worsening of suden cardiac death or heart failure.

  2. Testosterone therapy is popular to help address the effects that
    low testosterone can have on cognition, muscle
    mass and strength, bone density, metabolic function and mood.

  3. Retrospectively, it’s important foor the consumer to comprehend thazt
    there’s commonly an important price difference between compounded drugs and Brand medication, with the
    latter being significantly expensive.

  4. I loved as much as you will receive carried out right here.
    The sketch is tasteful, your authored subject matter stylish.
    nonetheless, you command get got an edginess over that you wish be delivering the following.
    unwell unquestionably come further formerly again as exactly the same nearly a
    lot often inside case you shield this increase.

  5. I constantly emailed this website post page to all my contacts, since if like to read it next
    my links will too.

  6. Thanks for sharing your thoughts about craft activities help.


  7. Howdy! This is my first visit to your blog! We are a collection of volunteers and starting a new project in a community in the same niche.

    Your blog provided us useful information to work
    on. You have done a extraordinary job!

  8. Excellent post. I used to be checking continuously this weblog and I
    am impressed! Very useful information particularly the closing section :
    ) I care for such information much. I was seeking this certain information for a long time.
    Thank you and best of luck.

  9. Its like you read my mind! You seem to know so much about this, like
    you wrote the book in it or something. I think that you can do
    with a few pics to drive the message home a little bit, but instead of that, this is wonderful blog.
    An excellent read. I’ll definitely be back.

  10. Morre research in the area of chronic illness hhas bbeen completed in men than in girls.

  11. I got this web page from my friend who informed me concerning this web site and at the moment this time I am
    visiting this site and reading very informative content at
    this place.

  12. Hi there I am so happy I found your website, I really found
    you by error, while I was browsing on Bing for something
    else, Nonetheless I am here now and would just like to say thanks for a
    tremendous post and a all round enjoyable blog (I also love the theme/design),
    I don’t have time to read it all at the minute but I
    have book-marked it and also included your RSS feeds,
    so when I have time I will be back to read a great deal more, Please do keep
    up the fantastic job.

  13. I was wondering if you ever considered changing the page
    layout of your site? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so
    people could connect with it better. Youve got an awful lot of text
    for only having one or 2 images. Maybe you could space it out

  14. This website was… how do I say it? Relevant!! Finally I’ve
    found something which helped me. Cheers!

  15. Prepubertal hypogonadism is generally defined bby infantile genitalia
    and lasck off virilization, while the growth of hypogonadism
    after puberty often results in problems like diminished libido, erectile dysfunction,
    infertility, gynecomastia, impaired masculinization, changes in body
    composition, reductions in body and facial hair, and osteoporosis.

  16. Testosterone treatment should always be discussed inn context of healthful living and a
    multitude of other contributions that also interface with overall wellness,
    sexual function, prostate and cardiovascular disease, glycemic control, and boje health, alll of which contribute to
    a man’s energetic quality oof life.

  17. Hello would you mind stating which blog platform you’re using?
    I’m planning to start my own blog soon but I’m having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different
    then most blogs and I’m looking for something completely unique.
    P.S My apologies for getting off-topic but I had to ask!

  18. Right away I am going away to do my breakfast, afterward having my breakfast coming yet again to read additional news.

  19. This paragraph is genuinely a fastidious one it helps new
    the web users, who are wishing in favor of blogging.

  20. Helpful info. Lucky me I discovered your web site by chance, and I’m stunned why this
    accident did not happened in advance! I bookmarked it.

  21. You need to take part in a contest for one of the
    highest quality sites on the web. I will recommend
    this blog!

  22. You are so cool! I do not think I’ve truly read through anything like
    this before. So great to discover another person with
    a few unique thoughts on this subject matter. Really.. thanks
    for starting this up. This site is something that is needed on the web, someone
    with a bit of originality!

  23. hello there and thank you for your info – I’ve certainly picked
    up something new from right here. I did however
    expertise several technical points using this web site, as I experienced to reload the web site
    lots of times previous to I could get it to load properly. I had been wondering if your hosting is
    OK? Not that I’m complaining, but slow loading instances times will sometimes
    affect your placement in google and could damage your high quality
    score if advertising and marketing with Adwords. Well I am adding this RSS to my email
    and can look out for a lot more of your respective fascinating content.
    Make sure you update this again very soon.

  24. I am extremely inspired with your writing skills as well as with the layout to your blog.
    Is this a paid subject or did you customize it yourself?
    Anyway keep up the excellent high quality writing, it is rare to peer a great blog like
    this one nowadays..

  25. Generally I do not learn article on blogs, but I would like to
    say that this write-up very forced me to take a look at and do so!
    Your writing taste has been surprised me. Thanks, very great article.

  26. I’m now not positive the place you are getting your information, however great topic.
    I needs to spend a while studying more or understanding more.
    Thanks for wonderful information I used to be looking for this info for my mission.

  27. I like the valuable information you provide in your articles.

    I will bookmark your blog and check again here regularly.
    I’m quite certain I will learn plenty of new stuff right here!
    Good luck for the next!

  28. I will immediately take hold of your rss as I
    can’t find your email subscription hyperlink or e-newsletter service.
    Do you have any? Please permit me understand in order that I could subscribe.

  29. Your method of telling the whole thing in this paragraph is
    truly pleasant, all can simply know it, Thanks a lot.

  30. Hi! Someone in my Myspace group shared this site
    with us so I came to check it out. I’m definitely enjoying the information. I’m bookmarking and will be tweeting this
    to my followers! Wonderful blog and terrific style and design.

  31. Hi there! I know this is kind of off-topic but I needed to ask.
    Does managing a well-established website like yours take a lot
    of work? I’m brand new to blogging but I do write in my diary on a daily basis.
    I’d like to start a blog so I will be able to share my personal experience and thoughts online.
    Please let me know if you have any kind of ideas or tips for brand new aspiring
    blog owners. Appreciate it!

  32. Hi i am kavin, its my first time to commenting anywhere, when i read this piece of writing i thought i could also
    create comment due to this brilliant paragraph.

  33. Everything is very open with a clear clarification of the issues.

    It was really informative. Your site is very useful.
    Thanks for sharing!

  34. Way cool! Some extremely valid points! I appreciate you writing this article
    and the rest of the site is extremely good.

  35. Hey I know this is off topic but I was wondering
    if you knew of any widgets I could add to my blog
    that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this for quite some time and was
    hoping maybe you would have some experience with something
    like this. Please let me know if you run into anything.
    I truly enjoy reading your blog and I look forward to your
    new updates.

  36. When someone writes an paragraph he/she maintains the idea of
    a user in his/her mind that how a user can be aware of it.
    Thus that’s why this post is outstdanding. Thanks!

  37. Thank you a lot for sharing this with all folks you really recognize what you’re speaking
    about! Bookmarked. Please additionally talk over with my site =).

    We can have a link alternate agreement between us

  38. We are a group of volunteers and opening a new scheme in our
    community. Your website offered us with valuable info to work on. You have done an impressive job and our whole community will be grateful to you.

  39. An intriguing discussion is definitely worth comment.
    I do believe that you ought to write more about this subject, it may not be a taboo
    matter but generally people don’t discuss such issues.

    To the next! All the best!!

  40. Howdy! I’m at work surfing around your blog from my
    new apple iphone! Just wanted to say I love reading through your blog and look forward to all your posts!
    Keep up the superb work!

  41. Quality content is the secret to be a focus for the visitors to pay a visit the web site, that’s what
    this web page is providing.

  42. I was suggested this web site by my cousin.
    I am not sure whether this post is written by him as nobody else know such
    detailed about my problem. You’re amazing! Thanks!

  43. Excellent site you’ve got here.. It’s difficult to find high quality writing like
    yours these days. I really appreciate people like you! Take care!!

  44. I’m really enjoying the design and layout of your website.

    It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit
    more often. Did you hire out a developer to create your theme?
    Superb work!

  45. I’d like to find out more? I’d like to find out more details.

  46. My developer is trying to persuade me to move to .net
    from PHP. I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using WordPress on various
    websites for about a year and am worried about switching to another platform.
    I have heard excellent things about Is there a way I can transfer all my wordpress posts
    into it? Any kind of help would be really appreciated!

  47. I’m really inspired with your writing abilities and also with the structure in your blog.
    Is that this a paid subject matter or did you
    customize it yourself? Either way stay up the excellent quality writing,
    it’s rare to see a great blog like this one these days..

  48. It’s awesome designed for me to have a site, which is useful in favor of my experience.
    thanks admin

  49. hello!,I love your writing so much! proportion we be in contact extra about
    your article on AOL? I need a specialist in this house to resolve my problem.
    Maybe that is you! Having a look forward to see you.

  50. Very nice post. I just stumbled upon your weblog
    and wished to say that I have truly enjoyed
    surfing around your blog posts. After all I will be subscribing to your rss feed and I
    hope you write again very soon!

  51. If you are going for most excellent contents like I
    do, simply go to see this site every day as it provides quality contents, thanks

  52. We’re a group of volunteers and starting a new scheme in our community.

    Your web site provided us with valuable information to work on. You’ve done
    a formidable job and our entire community will be grateful
    to you.

  53. Thanks for ones marvelous posting! I quite enjoyed reading it, you will be a great author.
    I will be sure to bookmark your blog and will often come back in the future.

    I want to encourage one to continue your
    great job, have a nice evening!

  54. It’s the best time to make some plans for the future and it’s time to be
    happy. I have read this post and if I could I want to suggest you some interesting things or advice.
    Perhaps you can write next articles referring to this article.
    I wish to read more things about it!


Leave a reply

Your email address will not be published. Required fields are marked *

Sign up for premium Hacking Tutorials


Your ad can be here. Contact us: [email protected]


For more Premium Tutorials LIke