Popular Searches

Meet Kali Linux

NmapBeginner
Practice Now

Introduction

How can you tell whether a program is accepting connections? Security work often begins with a small question like this. In this lab, you will meet Kali Linux and use one of its tools to find the answer in a prepared practice environment.

You will first explore Kali's origins and its place in the Linux family, then run just two commands to discover a local training service. You do not need Linux or networking experience. Everything is prepared; there is nothing to download or install. Use the Terminal interface for the hands-on experience.

By the end, you will be able to explain Kali's purpose, recognize what it shares with other Linux distributions, and connect your first discovery to the skills you will learn next.

Meet Kali and Its Origins

A Linux distribution is a complete operating system built around Linux, with a selection of software and settings. Kali brings together tools for investigating systems and networks, giving security practitioners a dedicated place to work.

Kali Linux is an open-source Linux distribution built for security work, including penetration testing and security auditing: authorized work to investigate how well systems are protected.

From BackTrack to Kali

Kali grew out of BackTrack, an earlier Linux distribution for security testing. Kali first shipped on March 13, 2013 as a Debian-based distribution. It is available in several forms, including virtual machines and containers. See the official Kali history.

Select Continue to compare Kali with other Linux distributions. This step requires no terminal commands.

Understand Kali's Place in the Linux Family

Debian, Ubuntu, and Kali are Linux distributions. Debian provides a foundation that other distributions can build on. Ubuntu and Kali both build on Debian, with their own software choices, settings, and goals. Today's Kali is based on Debian directly.

Sharing a foundation does not mean serving the same purpose:

Aspect General-purpose distributions, such as Ubuntu Kali Linux
Main focus A broad range of desktop, development, and server tasks Security testing and auditing
Software selection Organized around general computing needs Organized around security workflows
Everyday foundations Files, users, processes, networking, and terminals The same foundations remain essential

A tool such as Nmap can run on other operating systems too, including Ubuntu. Kali's value is the way it brings tools and supporting packages together for security work. Different Kali images include different tool selections. Read more in the official Kali introduction and about Ubuntu's Debian foundation.

You can begin this course without previous Linux experience: the early labs teach the foundations before later labs ask you to use them independently. There is no need to replace your own operating system to follow along.

Select Continue to start the hands-on exercise in Step 3. This step requires no terminal commands.

Discover Your First Training Service

In this step, you will enter Kali and use Nmap to discover a prepared local training service.

Enter the Prepared Environment

Open the Terminal interface and click inside it. A terminal lets you send instructions by typing commands and pressing Enter. Copy only the command itself, not any prompt shown before it.

The supplied kali command opens the prepared Kali environment. Type it and press Enter:

kali

The command line should now begin with kali@kali-training, showing that you are inside the prepared Kali environment. Stay in this terminal for the rest of the experience. If you open a new Terminal later, run kali there before repeating the check.

Ask One Small Question

A service is a program that accepts requests. For example, a web service can send back a page. A port is a number that tells the receiving system which service should get a connection. Different services can use different port numbers on the same system.

Our practice web service is running on port 8080. Its address is 127.0.0.1, which refers to the environment you are currently inside. Here, that means Kali itself. You are checking a local practice target, with no external server involved. Use only this address and port for the exercise.

Your question is: can Nmap connect to the service on port 8080?

TCP (Transmission Control Protocol) is a set of rules programs use to establish a connection and deliver data reliably and in order. Here, Nmap tries to establish a TCP connection to the web service.

Nmap is a tool for discovering hosts and services. The following command is prepared for this first experience: -sT asks for an ordinary TCP connection check, and -p 8080 limits it to one port. The final address names the target. You do not need to memorize these options; a later lab will teach you to choose scans and interpret their results independently.

Run the command exactly as shown:

nmap -sT -p 8080 127.0.0.1

After a short wait, look for a line with this shape:

PORT     STATE SERVICE
8080/tcp open  ...

The final column may show a service label. Focus on open for now: Nmap was able to connect to the training port. The timing, version banner, and other lines can vary.

You knew where the practice service was supposed to be. Now you have evidence that it accepts connections. This scan does not inspect the web page or establish whether the service has a vulnerability. Later labs will help you investigate further.

Wait for Nmap to finish and look for 8080/tcp open before selecting Continue. LabEx records the result automatically. If verification fails, check that the prompt begins with kali@kali-training. If it does not, run kali first. Then run the exact Nmap command above again and select Continue after you see the expected result.

Connect This Experience to Your Learning Path

In this step, you will connect your first service discovery to the practical skills you will build throughout the course.

From Following a Command to Working Independently

Today you turned a question into an observation: Nmap connected to the local practice port. The command and target were supplied. The course builds toward choosing tools and targets within an agreed scope, then explaining what the results show.

What you will learn to do How it helps with security work
Operate your Kali environment Manage practice files, find tools, and handle running programs.
Understand networks and read tool output Connect addresses and ports to services, and find useful evidence in results.
Choose tools and explain findings Investigate services with Nmap, inspect web responses and network traffic, and explore passwords and access control.

File and terminal skills come early because security tools produce information you need to organize and understand. Learning these foundations helps you move from copying a supplied command to using tools independently.

How to Use the Course

A Guided Lab, like this one, explains the task and provides the steps. A Challenge asks you to apply previously taught skills with fewer instructions. Use both to move from recognition to independent practice.

Each exercise prepares its own environment. You do not need to carry files or a running service from this lab into another one. When a later exercise asks you to enter Kali, its instructions will show you how.

This final reading step has no additional command or quiz. Select Continue to finish. As you continue learning, navigating and organizing files in Kali will give you a foundation for keeping your work and results in order.

Summary

You explored Kali's origins, its Debian foundation, and its purpose in security work. You also used Nmap to confirm that a local practice service accepts connections, while recognizing that an open port alone does not prove a vulnerability.

Keep Learning with LabEx

Continue with Kali Linux for Beginners. Its 14 guided labs and 13 matching challenges build from terminal and file-management skills to network discovery, web and traffic inspection, password tools, Metasploit, and firewall rules. Follow the guided steps, then use the challenges to practice more independently.

For a broader view, explore the Cybersecurity learning path. Choose a direction that interests you:

As your skills grow, the path also offers practical projects, such as investigating a website backup leak or closing an exposed database port. Start with the next Kali lab and build toward these larger tasks one exercise at a time.