I'm Ayesha Abbas, a CS student, specializing
in cybersecurity and cloud security. I use Linux every
single day for my projects and studies. Here are 5 commands
that I consider absolutely essential for anyone getting
started in cybersecurity.
- netstat | See All Network Connections
netstat shows you every active network connection on
your system. As a cybersecurity student this is goldmine
information.
netstat -tulpn
This shows all open ports and which process is using them.
If something suspicious is listening on a port you didn't
open, you have a problem.
- grep | Find Anything Inside Files
grep searches for patterns inside files. You will use
this hundreds of times every week.
grep -r "password" /var/log/
This searches every log file for the word "password".
Useful for log analysis, finding config values, and
security auditing.
- chmod | Control File Permissions
chmod controls who can read, write, or execute a file.
Wrong permissions = security vulnerability.
chmod 600 private_key.pem
This makes your SSH key readable only by you. If your
key has wrong permissions, SSH will refuse to use it.
- nmap | Scan Networks Like a Pro
nmap is the most famous network scanning tool in
cybersecurity. It maps open ports and services on
any target.
nmap -sV 192.168.1.1
This scans your router and shows every open port and
what service is running on it. Essential for
understanding your network.
Note: Only scan networks you own or have permission
to scan.
- ss | The Modern netstat
ss is faster and more detailed than netstat. It shows
socket statistics in real time.
ss -tulpn
Use this to quickly see what's running on your machine.
I use this every morning when I boot up my Ubuntu system.
Final Thoughts
These 5 commands are just the beginning. Linux has
hundreds of powerful tools for cybersecurity. but
master these first and you will already be ahead of
most beginners.
I am currently studying networking and Linux full time
as part of my preparation for international research
programs.
Find my projects on GitHub:
https://github.com/AyeshaAbbas-engg
Stay secure. Keep learning.
— Ayesha Abbas
Top comments (0)