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)

Leave a comment