Let's start by creating an instance in an AWS Free Tier account. First, navigate to the AWS dashboard and select EC2.
After that, a new webpage will open. Now select "Launch Instance" to configure and set up the instance.
You can select the number of instances depending on your requirement, but I suggest one instance is enough for today's hands-on practical. Do name your instance to identify it for later use. Choose the Ubuntu Linux AMI and make sure the AMI server you choose is Free Tier eligible so that you won't be charged. For your reference, I have highlighted the Free Tier eligible AMI server.
As we move forward with the practical, do create a key pair. This is not essential but is one of the best practices as it provides a secure and convenient way of authenticating and accessing your resources.
I'll skip some setup configurations and want you all to skip them this time as this is an initial-level practical. Let all other configurations remain at their default settings and click on "Launch Instance." After you have launched the instance, check for the instance state. When it turns green and running ✔️, click on "Connect."
Navigate to EC2 Instance Connect and connect to the Ubuntu server through the browser-based client where you can practice your Linux commands on a real-time Ubuntu server for better understanding.
Basic Linux commands
ls option_flag arguments
Lists files and directories with detailed information such as permissions, number of links, owner, group, size, and timestamp.
ls -l
list files with details
ls -a
Lists all files, including hidden ones.
ls *.sh
Lists .sh files.
ls -d */
Lists directories only.
pwd
Print working directory
cd
Change directory to given path.
cd -
Switch to previous directory
cd ..
Move up one directory
cd ../../..
Move up three directories
mkdir
Make directory
mkdir .dir1
Create hidden directory
mkdir A B C D
Create multiple directories
mkdir /home/user/Mydirectory
Create directory in a specific path
mkdir -p A/B/C/D
Create nested directories
some of the commands that I tried on ubuntu server.