Linux Basics for Hackers#: Chapter 1 – GETTING STARTED WITH THE BASICS

The Linux Filesystem

The root (/) of the filesystem is at the top of the tree, and the following are the most important subdirectories to know:

/root The home directory of the all-powerful root user

/etc Generally contains the Linux configuration files—files that control when and how programs start up

/home The user’s home directory

/mnt Where other filesystems are attached or mounted to the filesystem

/media Where CDs and USB devices are usually attached or mounted to the filesystem

/bin Where application binaries (the equivalent of executables in Microsoft Windows or applications in macOS) reside

/lib Where you’ll find libraries (shared programs that are similar to Windows DLLs)

Basic commands

Pwd

Whoami

cd /etc

cd ../..

ls

ls -l

ls -la

aircrack-ng –help

nmap -h

man aircrack-ng

locate aircrack-ng

whereis aircrack-ng

Which aircrack-ng

find directory options expression

find / -type f -name apache2

find /etc -type f -name apache2

find /etc -type f -name apache2.

ps aux

ps aux | grep apache2

cat > hackingskills

cat hackingskills

cat >> hackingskills

cat > hackingskills

cat hackingskills

touch newfile

mkdir newdirectory

cd newdirectory

touch oldfile

cp oldfile /root/newdirectory/newfile

cd newdirectory

ls

mv newfile newfile2

ls

rm newfile2

rmdir newdirectory

rm -r newdirectory

End of chapter 1. Gp play with Kali Linux now!

1 GETTING STARTED WITH THE BASICS | Linux Basics for Hackers (oreilly.com)

Recommended Cybersecurity and Certification Books

CEH Certified Ethical Hacker Cert Guide, 4th Edition (oreilly.com)

CompTIA Linux+ Study Guide, 5th Edition (oreilly.com)

Microsoft Cybersecurity Architect Exam Ref SC-100 (oreilly.com)

CEH v12 Certified Ethical Hacker Study Guide with 750 Practice Test Questions (oreilly.com)

(ISC)2 CISSP Certified Information Systems Security Professional Official Study Guide, 9th Edition (oreilly.com)

Microsoft Security Operations Analyst Exam Ref SC-200 Certification Guide (oreilly.com)

CompTIA A+ Complete Practice Tests, 3rd Edition (oreilly.com)

Exam Ref SC-100 Microsoft Cybersecurity Architect (oreilly.com)

Python Crash Course, 3rd Edition (oreilly.com)