Kali Linux – Complete Guide

VirtualBox Installation + Essential Linux Commands

Step-by-step guide to install Kali Linux 2025 in VirtualBox and master the essential terminal commands every beginner needs.

Part 1 — Create Virtual Machine in VirtualBox

1

Open VirtualBox

Launch VirtualBox application

Click New

2

Basic Details

Fill in the following:

FieldValue
NameKali Linux 2025
TypeLinux
VersionDebian (64-bit)
ISO ImageSelect kali-linux-2025.4-installer-amd64.iso
Uncheck: Proceed with Unattended Installation

Click Next

3

Allocate RAM & CPU

SettingValue
RAM4096 MB (minimum)
If you have 16GB RAM → give 6–8 GB
Processors2 cores (or 3 if available)

Click Next

4

Create Virtual Hard Disk

Select: Create a virtual hard disk

SettingValue
Disk size50 GB
File typeVDI
StorageDynamically allocated

Click Finish

Part 2 — Start Kali Installation

5

Start VM

Select your Kali VM → Click Start

You'll see the Kali boot menu. Choose:

Graphical Install — Press Enter

Part 3 — Kali Installer Steps

6

Language

Select: English

Click Continue

7

Location

Select: India

Click Continue

8

Keyboard

Select: American English

Click Continue

9

Network Setup

It will auto-configure the network.

FieldValue
Hostnamekali
Domain nameLeave blank

Click Continue

10

Create User

FieldValue
Full nameKali User
Usernamekali
PasswordCreate a strong password (Remember it!)
Important: Remember this password — you'll need it to log in after installation.

Click Continue

Part 4 — Disk Partition

11

Partitioning Method

Select: Guided – use entire disk

Click Continue

Select the 50GB disk → Click Continue

12

Partition Scheme

Select: All files in one partition (recommended)

Click Continue

13

Finish Partition

Select: Finish partitioning and write changes to disk

Click Continue

Select: Yes

Click Continue

Now installation will copy files — this takes approximately 10–20 minutes. Be patient.

Part 5 — Software Selection

14

Select Software

Make sure these are selected:

Kali Linux default desktop (Xfce)

Standard system utilities

Do NOT select multiple desktops. Only Xfce is recommended for VirtualBox performance.

Click Continue

It will install packages — wait patiently.

Part 6 — Install Bootloader

15

GRUB Boot Loader

When asked: Install GRUB boot loader?

Select Yes

Click Continue

Select disk:

/dev/sda

Click Continue

Part 7 — Final Step

16

Installation Complete

Click Continue

VERY IMPORTANT — Before it reboots:

In VirtualBox menu:
DevicesOptical DrivesRemove disk from virtual drive

Then press Enter.

Part 8 — First Login

Login Screen

After reboot, you'll see the Kali login screen.

FieldValue
Usernamekali
Password(the one you created in Step 10)
DONE — Kali Linux Installed Successfully!

After Installation (Important)

Enable Full Screen

VirtualBox → ViewFull Screen Mode

Install Guest Additions (Better Performance)

Open terminal and run these commands:

Terminal
sudo apt update
sudo apt install -y build-essential dkms linux-headers-$(uname -r)
sudo mount /dev/cdrom /mnt
sudo sh /mnt/VBoxLinuxAdditions.run
sudo reboot

1. System Update (Very Important First Step)

Terminal
sudo apt update
sudo apt upgrade -y

Updates package list

Upgrades installed software

2. Basic Navigation Commands

Show current directory
Terminal
pwd
List files in current folder
Terminal
ls
More detailed list:
Terminal
ls -l
Show hidden files:
Terminal
ls -a
Change directory
Terminal
cd foldername
Go back one folder:
Terminal
cd ..
Go to home directory:
Terminal
cd ~

3. File & Folder Management

Create folder
Terminal
mkdir testfolder
Create file
Terminal
touch file.txt
View file content
Terminal
cat file.txt
Edit file
Terminal
nano file.txt
Save in nano: Ctrl + OEnter
Exit nano: Ctrl + X
Delete file
Terminal
rm file.txt
Delete folder:
Terminal
rm -r foldername

4. Copy & Move

Copy file
Terminal
cp file.txt /home/kali/
Move file
Terminal
mv file.txt Documents/

5. Check System Info

Show current user
Terminal
whoami
Show OS info
Terminal
uname -a
Disk usage
Terminal
df -h
Memory usage
Terminal
free -h

6. Networking Commands

Show IP address
Terminal
ip a
Check internet connection
Terminal
ping google.com
Stop ping: Press Ctrl + C

7. Install Software

Install a package (example: git)
Terminal
sudo apt install git
Remove software
Terminal
sudo apt remove git

8. Clear Terminal

Terminal
clear

9. Kali Specific – Check Tools

List all Kali tools
Terminal
kali-tools
Example tool check
Terminal
nmap --version

10. Power Commands

Shutdown
Terminal
sudo shutdown now
Restart
Terminal
sudo reboot

Beginner Practice Task

Try running these commands one by one in your terminal:

Practice — Terminal
# Step 1: Create a folder
mkdir practice

# Step 2: Enter the folder
cd practice

# Step 3: Create a file
touch test1.txt

# Step 4: Open file in editor
nano test1.txt

# → Write something → Ctrl+O → Enter → Ctrl+X

# Step 5: View the file content
cat test1.txt
Congratulations! If you can do this, you've mastered the basics of Linux terminal. Keep practicing!