Commands
Fundamental and Essential commands every DevOps engineer should be proficient in!
DevOps Essentials : Linux, Networking, Git and Monitoring commands. These are crucial for daily tasks and troubleshooting in real-world scenarios.
LINUX COMMANDS
ls : It displays files and directories within the specified directory
cd : The cd command in Linux is used to change the current directory
cp : The cp command in Linux is used to copy files and directories
mv : The mv command in Linux is used to move or rename files and directories
mkdir : The mkdir command in Linux is used to create new directories
rm : The rm command in Linux is used to remove files and directories
chmod : The chmod command in Linux is used to change the file mode (permissions) of a file or directory
chown : The chown command in Linux is used to change the ownership of a file or directory
ps : The ps command in Linux is used to display information about the currently running processes
grep : The grep command in Linux is used to search for specific patterns within files
cat : The cat command in Linux is used to concatenate and display the contents of files
top : The top command in Linux provides a dynamic, real-time view of the system's running processes
NETWORKING COMMANDS
ping : The ping command checks network connectivity by sending ICMP Echo Request packets to a destination (IP or domain)
netstat : The netstat command displays network connections, routing tables, interface statistics, and network protocol information
traceroute : The traceroute command shows the path packets take to reach a destination by listing all the intermediate network devices (hops)
dig : The dig command is used for querying DNS servers to retrieve domain name information, such as IP addresses, DNS records, and other domain details.
wget/curl : wget: Primarily used for downloading files from the web, it can handle recursive downloads and resume interrupted downloads.
curl : Transfers data to or from a server, supporting a variety of protocols (HTTP, FTP, etc.), often used for APIs and web requests.
ip : The ip command is used to manage and display network interfaces, routing tables, and IP addresses
MONITORING COMMANDS
vmstat: Displays system performance statistics, such as CPU, memory, processes, and I/O activity.
logrotate: Manages the automatic rotation, compression, and deletion of log files to prevent disk space issues.
htop: An interactive, real-time system monitor for processes, CPU, and memory usage, offering an easy-to-use interface compared to top.
journalctl: Views logs from systemd, including system, service, and kernel logs.
tail: Outputs the last few lines of a file (often used to monitor logs in real-time with the -f option).
iostat: Provides I/O statistics for devices and partitions, helping monitor disk activity and performance.
top: Displays real-time system resource usage, including CPU, memory, and process information.
GIT COMMANDS
git init: Initializes a new Git repository in the current directory.
git clone: Creates a local copy of a remote Git repository.
git add: Stages changes (files or modifications) for the next commit.
git commit: Records the staged changes in the repository with a message.
git status: Displays the current state of the working directory and staging area (e.g., untracked or modified files).
git log: Shows the commit history of the repository.
git branch: Lists, creates, or deletes branches.
git checkout: Switches to a different branch or commit.
git push: Uploads local commits to a remote repository.
git pull: Fetches and integrates changes from a remote repository into the local branch.
git merge: Combines changes from one branch into another.
git diff: Displays differences between changes (uncommitted or between branches/commits).
Hope this is helpful!



