Shivam Agnihotri’s Post

View profile for Shivam Agnihotri, graphic
Shivam Agnihotri Shivam Agnihotri is an Influencer

Senior DevOps Engineer @ Infilect | Top Voice 2024 | 21K+ followers | Ex- Ravity, Nokia | Helping Freshers and Professionals

📊 Last week, I shared a poll about using aliases, and 8% of you said you weren't aware of them. So, I'm resharing my previous post where I explained what aliases are and how I use them to save time with Kubernetes commands. You can use them in other scenarios too. Ever used aliases in Kubernetes? They're like magic shortcuts that save you a lot of time! 😎 Here's how it works: aliases let you create custom shorthand for long kubectl commands. Think of them as your secret coding language! 🤫 To set them up in Linux, open your .bashrc or .bash_profile file and add your aliases at the bottom. Then, save, exit, and restart your terminal. Voila! You're all set with your new shortcuts! 🎉 Check out my aliases below and share yours in the comments! 👇 alias k='kubectl' alias kg='kubectl get' alias kgp='kubectl get pods' alias kgpa='kubectl get pods -A' alias kdp='kubectl delete pods' 👍🔄👤 If you find this post helpful and informative, please hit the like and share buttons to spread the knowledge! #Kubernetes #DevOps #Tips #DevOpsEngineer #DevOpsTools #Alias #HelpingHands #KubernetesCluster #DevOpsTips

To view or add a comment, sign in

Explore topics