Member-only story

Day 2:Basic Linux Commands Every DevOps Engineer Should Know

Karthick Dkk
devsecops-community
8 min readOct 3, 2024

1. alias — Create Command Shortcuts

Aliases allow you to create shortcuts for complex or frequently used commands, improving efficiency and reducing typing errors.

Example: Advanced Aliases for Productivity

alias ll='ls -lah --color=auto'
alias ..='cd ..'
alias gs='git status'
  • ll: A detailed ls command that shows file sizes in human-readable format and highlights files with colors.
  • ..: Quickly navigate up one directory.
  • gs: Short for git status, useful when working in Git frequently.

You can also save aliases in your shell’s config file (~/.bashrc or ~/.zshrc) to make them permanent.

2. whoami— Identify the current user

This command returns the username of the currently logged-in user, helpful when working with multiple user accounts or SSH connections.

This script checks if the current user is root and exits if not, ensuring that scripts requiring elevated privileges don’t run accidentally.

3. ssh — Secure Shell for Remote Login

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

devsecops-community
devsecops-community

Published in devsecops-community

Follow for Cloud, Linux, Devops, GitOps, DevSecOps, Development, and IT Related content.

Karthick Dkk
Karthick Dkk

Written by Karthick Dkk

DevSecOps Engineer passionate about Linux, cloud computing, and automation. Talks about Personal Development and Money.

Responses (1)

Write a response