#90DaysOfDevOps Challenge - Day 2 - Basic Linux Commands (1)

Cloud Engineer and DevOps enthusiast, just talking about AWS, Docker, Linux, Kubernetes, Python, and automation.
Search for a command to run...

Cloud Engineer and DevOps enthusiast, just talking about AWS, Docker, Linux, Kubernetes, Python, and automation.
No comments yet. Be the first to comment.
The #90DaysOfDevOps Challenge is a dedicated initiative aimed at promoting continuous learning and skill development in the field of DevOps over a 90-day period.
Running your own home lab used to mean expensive hardware, complex networking, and hours of manual configuration. This project changes that. With a single Raspberry Pi, Docker Compose, and a few hundr

Welcome to an advanced hybrid directory demo where we'll guide you through setting up a hybrid environment, connecting to simulated on-premises infrastructure, creating a managed Microsoft AD within AWS, establishing a two-way forest trust, and integ...

Hello DevOps Community! Today marks the completion of the #90DaysOfDevOps Challenge, and it's a moment to reflect on the journey we've undertaken together. Throughout this period, I've engaged with various technologies, refining my skills in the DevO...

In a modern cloud infrastructure setup, creating a robust and scalable 2-tier architecture is essential. Such an architecture helps meet the demands of your applications while ensuring repeatability, reliability, and security. In this article, we'll ...

Welcome to Part 4 of my series on building a comprehensive CI/CD pipeline in AWS. In this article, I will explore AWS CodePipeline, a powerful service for building and deploying applications in a continuous integration and continuous delivery (CI/CD)...

Welcome to Day 2 of the #90DaysOfDevOps challenge! Today, I'll be diving into the world of basic Linux commands. These commands are essential for navigating and managing files and directories in a Linux environment. Let's explore some of the most commonly used commands and their examples.
The ls command is used to list the subdirectories and files available in the present directory. Here's the basic syntax:
ls [option_flag] [arguments]
Let's look at some examples:
ls -l: This command lists files and directories in a long list format, providing extra information such as permissions, owner, size, and modification date.
ls -a: It lists all files and directories, including hidden ones that start with a dot (.)
ls *.sh: This command lists all files with a .sh extension, helpful when you want to filter files based on a specific pattern.
ls -i: It lists files and directories along with their respective index numbers (inodes).
ls -d */: This command lists only directories, allowing you to view the directory structure without the files. You can also specify a pattern to narrow down the results.
pwd: The pwd command prints the current working directory, displaying the absolute path of the directory you're currently in.
cd path_to_directory: This command changes the current directory to the provided path. For example, cd /home/user/Documents will navigate to the "Documents" directory.
cd ~ or just cd: Using cd ~ or simply cd without any arguments takes you to the home directory.
cd -: The cd - command allows you to go back to the last working directory you were in.
cd ..: This command moves you one step back in the directory structure. It's useful for navigating up one level.
cd ../..: You can use cd ../.. to change directory by two levels, moving up twice in the directory hierarchy.
mkdir directoryName: The mkdir command is used to create a new directory in a specific location. Here are some examples:
mkdir newFolder # Creates a new folder named 'newFolder'
mkdir .NewFolder # Creates a hidden directory (prefixing with a dot)
mkdir A B C D # Creates multiple directories at the same time
mkdir /home/user/Mydirectory # Creates a new folder in a specific location
mkdir -p A/B/C/D # Creates a nested directory structure
Congratulations! You've learned some of the basic Linux commands for listing files and directories, navigating through directories, and creating new folders. These commands are the building blocks of your journey towards becoming a DevOps professional.
Stay tuned for Day 3 of the #90DaysOfDevOps challenge, where I'll explore more advanced Linux commands and their practical applications.