Blog 3: Mastering Linux Fundamentals – The Backbone of DevSecOps
Blog 3: Learning Linux – The Language of DevSecOps
Written & Patented by Kalyan Kalavena
This blog is protected by author rights. No copying or editing allowed.
If you're serious about a DevSecOps career, Linux is your first language. It runs the servers, powers automation, handles scripts, and is the heart of cloud computing.
In this session, I started talking to servers using just the terminal — no mouse, no windows, just pure commands and logic.
🔹 Why Linux is So Important
| Area | Linux Role |
|---|---|
| Cloud | Most servers use Linux |
| Security | File permissions, user rules |
| Automation | Bash, Cron, Logs |
| Performance | Lightweight, fast |
📂 File & Folder Navigation
pwd– Show current pathls– List filescd folder– Move into foldercd ..– Go up one levelmkdir myfolder– Create foldertouch file.txt– Create filerm file.txt– Delete file
👨💻 Example
mkdir projects
cd projects
touch notes.txt
ls
Output: notes.txt – You created and listed a file!
⚙️ View & Edit Files
cat file– View contentsvi file– VIM editornano file– Simple editor
🧠 Combine Commands
mkdir logs && cd logs && touch app.log
Creates folder, goes inside, and makes a file – in one shot.
🔐 Access Levels
$– Normal user#– Admin (root)sudo su– Switch to rootsudo su -– Root + root folder
📂 File Listings
ls -l– Long formatls -lt– New files topls -ltr– Old files topls -la– All files
🌐 Downloading Files
wget URL– Download filecurl URL– View contentcurl URL -o file– Save file
🔎 Filtering & Piping
grep word file– Search insidecut -d "/" -f9– Extract fieldawk -F ":" '{print $1}'– Usernamesfind / -name "file"– Search file
🔐 Connect to Server (EC2)
- Generate public/private key
- Import key in AWS
- Set up firewall
- Launch EC2
- Connect via:
ssh -i your-key.pem ec2-user@your-ip
- Terminate when done
Comments
Post a Comment