Mastering Linux Commands with  AWS Applications (Day 3)

Mastering Linux Commands with AWS Applications (Day 3)

What is Linux?

Linux is an open-source operating system that has become incredibly popular due to its flexibility, security, and the strong community of developers that support it. Linux is free to use and modify, making it an excellent choice for those who want to have more control over their computing environment

Why Use Linux?

Article content

Linux is one of the most popular platforms on the planet. It has been around since the mid-1990s and has since reached a user-base that spans the globe. Even Android is powered by the Linux operating system.

Moreover, there are several compelling reasons to use Linux:

  • Security: Linux is known for its robust security features.
  • Customizability: You can tailor Linux to meet your specific needs.
  • Performance: Linux can run on a wide range of hardware, from powerful servers to old laptops.

Creating account on AWS and Running a linux :

  • after creation of free tier :Go to EC2 dashboard and select Launch

Article content

  • then select ubuntu as operating system and choose free tier availability

Article content

  • for secure access we need a key for authorization click create new

Article content

  • you will get success status within seconds of creation

Article content

  • now you can connect to you AWS Linux machine and use CLI

Article content


LINUX COMMANDS

  • Basic Linux Commands: ls, cd, cp, mv, rm
  • File Permissions: chmod, chown
  • Network Configuration: ifconfig, netstat
  • Process Management: ps, top, kill
  • Package Management: apt-get


FILE SYSTEM NAVIGATION COMMANDS:


 Directory contains implicitly 2 directories :
. and ..
. -->represents current directory
.. -->represents parent directory

$cd. -->changes to current directory 
$cd.. -->changes to parent directory
$cd --> If we are not passing any argument,Then changes to user home directory
$cd~ -->changes user home directory
$cd- -->changes to previous working directory        

  1. To view what’s written in a file.

cat filename        
vim filename        
nano filename        
Article content
pwd current directory        
touch | mkdir new file&folder        
Article content

2. To change the access permissions of files.

chmod 777 filename        
Article content
Article content

3. To remove a directory/ Folder.

rm -rf filename        
rmdir filename        

Note: you need to empty folder before deleting it otherwise it gives error

Article content

4. To check which commands you have run till now.

history        
Article content

5. Show only the top | bottom three fruits from the file.

head -3 fruits.txt        
tail -3 fruits.txt        
Article content
Remember, this is just the beginning. The Linux command-line interface is vast and offers countless other commands and possibilities. So, keep exploring, experimenting, and expanding your knowledge to unleash the true potential of Linux!


Ubaidullah Malik

IAM Engineer @ Credo Technology Services

10mo

Good start👏, keep going!

Talat Faheem

DevOps Eng. @ Antematter | Automating everything, everyday! 🚀 | NUCES '26

10mo

Well said Haseeb! Linux is the key for DevOps

To view or add a comment, sign in

More articles by Muhammad Haseeb

  • Day 5 : Advanced Linux Shell Scripting with User management

    This is #90DaysofDevops challenge under the guidance of Samsor Rahman sir. Tasks: 1) Multiple Directories using Shell…

  • TryHackMe Room writeup

    🔒 I wanted to share an experience I had recently where I learned so much through reverse engineering! 😅 I attempted a…

    5 Comments

Insights from the community

Others also viewed

Explore topics