Primeiros Comandos no Kali Linux / Conhecendo o Sistema [ Curso Gratuito de Kali Linux ]
Table of Contents
Introduction
This tutorial aims to introduce you to the basic commands and functionalities of Kali Linux, a powerful operating system used for penetration testing and security assessments. Understanding these commands is essential for anyone looking to delve into cybersecurity, ethical hacking, or simply learning about Linux systems.
Step 1: Installing Kali Linux
- Download the Kali Linux ISO from the official Kali Linux website.
- Create a bootable USB drive using tools like Rufus or Etcher.
- Boot your computer from the USB drive to start the installation process.
- Follow the on-screen instructions to complete the installation.
Step 2: Familiarizing with the Terminal
- Open the terminal by clicking on the terminal icon or pressing
Ctrl + Alt + T. - The terminal is your main interface for executing commands in Kali Linux.
Step 3: Basic Commands
Learn and practice the following essential commands:
-
Navigating the File System
pwd: Displays the current directory.ls: Lists files and directories in the current directory.cd [directory]: Changes the current directory to the specified one.
-
File Operations
cp [source] [destination]: Copies a file from the source to the destination.mv [source] [destination]: Moves a file from the source to the destination or renames it.rm [file]: Deletes the specified file.
-
Viewing File Contents
cat [file]: Displays the contents of a file.less [file]: Allows you to scroll through the contents of a file.
Step 4: System Information Commands
Understand your system better with the following commands:
uname -a: Displays system information.top: Shows system processes and resource usage in real time.df -h: Displays disk space usage in a human-readable format.
Step 5: Managing Packages
Kali Linux uses the apt package manager. Here’s how to manage software:
-
Update Package List
- Run
sudo apt updateto refresh the list of available packages.
- Run
-
Upgrade Installed Packages
- Use
sudo apt upgradeto install the latest versions of packages.
- Use
-
Install New Packages
- To install a package, use
sudo apt install [package_name].
- To install a package, use
Step 6: User Management
Learn how to manage users in Kali Linux:
-
Add a User
- Run
sudo adduser [username]to create a new user.
- Run
-
Delete a User
- Use
sudo deluser [username]to remove a user from the system.
- Use
Conclusion
Mastering the basic commands in Kali Linux is a crucial step for anyone interested in cybersecurity. By understanding how to navigate the system, manage files, and install packages, you'll set a solid foundation for further learning and exploration in the world of ethical hacking and penetration testing. Continue to practice these commands, and consider exploring more advanced topics as you grow more comfortable with the system.