Linux Terminal: A Friendly Guide for Future Ethical Hackers
๐ First Steps with the Linux Terminal: A Friendly Guide for Future Ethical Hackers
When you get into the world of cybersecurity, the Linux terminal becomes your best friend.
Yes, that black screen where you type commands like a movie hacker (but youโll actually understand what youโre doing ๐).
๐ฏ Why the Terminal is So Important
- Many security tools donโt have a graphical interface.
- Youโll often connect to remote machines via SSH โ only terminal access.
- GUIs crash. The terminal? Rock solid.
๐งฉ Essential Commands to Get Comfortable
๐ 1. Where are you? (pwd
)
pwd
Prints your current working directory.
Basically it means Print Working Directory
๐ง Example: /root
๐ 2. Whatโs inside? (ls
)
ls
Lists files and directories in the current folder.
ls -l
: includes permissions, size, datels -a
: shows hidden files too
๐โโ๏ธ 3. Navigate folders (cd
)
cd folder_name
Move into a folder.
cd ..
: go backcd /
: go to root
๐ 4. Need help with a command?
man command
command --help
Read full documentation or quick help.
๐งฝ 5. Clear the screen
clear
๐ Command history & autocompletion
- ๐ผ Up arrow: previously used commands
Tab
: autocomplete folder/file names
๐ ๏ธ Installing Programs
apt-get is your personal Linux butler that takes care of installing, updating and removing programs on your system.
It literally means Advanced Packaging Tool โ GET
๐ 1. Update the list
sudo apt-get update
๐ฅ 2. Install a program
sudo apt-get install program_name
Example: terminator
๐ Handy Resources
โ Interactive Quiz
Choose the correct answer:
What command shows your current directory?
- [ ] ls
- [ ] pwd
- [ ] cd
How do you enter the Downloads folder?
- [ ] cd Downloads
- [ ] ls Downloads
- [ ] open Downloads
How do you go back one directory?
- [ ] cd โฆ
- [ ] back
- [ ] exit
What does
ls -l
show?- [ ] Only hidden files
- [ ] Files with extra details
- [ ] Files in alphabetical order
Where do you find help for a command?
- [ ] man command
- [ ] help command
- [ ] info command
๐ง Correct Answers: 1B, 2A, 3A, 4B, 5A