Skip to main content

Command Palette

Search for a command to run...

Introduction to Linux and Basic Commands part 1

Published
β€’3 min read
Introduction to Linux and Basic Commands part 1

What is Linux?

Linux is like the superhero of operating systems πŸ¦Έβ€β™‚οΈ. Created by Linus Torvalds in 1991, it's an open-source kernel that forms the basis for tons of free and customizable operating systems. From servers to smartphones, Linux powers it all! πŸš€ What makes it cool? Its community-driven development means it's stable, secure, and flexible. Think of it as the ultimate tech playground, where developers worldwide collaborate to make things awesome. Whether you're a coding pro or just love tech, Linux lets you customize your computing experience like a boss! πŸ’»βœ¨

How Linux works and its architecture

Linux operates like a well-orchestrated symphony 🎻, with an architecture that's both powerful and flexible. At its core is the kernel, the maestro of the show, managing hardware resources and ensuring smooth communication between software and hardware. The file system, like the musical score, organizes data, while processes, like talented musicians, perform tasks. 🎢 The Terminal, akin to a conductor's baton, lets users direct operations with commands. What makes Linux unique is its modular structure; different components work together seamlessly, offering efficiency and scalability. It's like a tech masterpiece, where each part plays a crucial role in creating the harmonious experience that users love. Dive into Linux, and you'll discover a captivating performance of software symphony! πŸŒπŸ’‘

Hardware

Server hardware is the powerhouse behind the scenes, the unsung hero of the digital world. Imagine it as the backstage crew ensuring the smooth operation of websites, applications, and data storage. The CPU acts as the brain, processing requests, while RAM provides the working memory, like a quick-access script for the stage. Storage, the silent archive, stores the vast data repertoire. Networking components act as stagehands, facilitating seamless communication. Much like a well-coordinated production, server hardware harmonizes to deliver optimal performance, reliability, and efficiency in the ever-evolving digital landscape. It's the backbone that keeps the internet's show running 24/7! πŸ’»πŸŒβœ¨

Kernel

The kernel is like the superhero of your computer πŸ¦Έβ€β™‚οΈ! It's the boss, managing everything behind the scenes. Think of it as the conductor of an orchestra, directing the hardware and software to work together seamlessly 🎢. The file system organizes the data, and processes are like talented musicians, performing tasks. The Terminal is your magic wand to command operations. What's cool? Linux's modular structure! Each piece plays a unique role, creating a tech symphony that's both powerful and flexible πŸŒπŸ’»βœ¨. It's the heart of the action, making your computer run like a champ! πŸš€πŸ‘Ύ

Shell

In Linux, the shell is like the command center of your computer, where you can talk to it in a language it understands. πŸ—£οΈ It's a text-based interface that lets you interact with the operating system by typing commands. Imagine it as a personal assistant – you tell it what you need, and it makes things happen! πŸ’Ό

below are some linux command's those are helpful in devops journey-

'ls'

'ls' is the command in linux to check the list of contents. It can be used with a absolute path and relative path also.

example :

ls /home/faizul/

"ls -larth"

The command "ls -larth" in Linux is a handy tool for listing files in a directory. It displays detailed information, including file permissions, ownership, size, and the time of the last modification. This command is particularly useful for getting a comprehensive view of files, sorted by modification time, with the newest files appearing at the bottom. πŸ“‚πŸ”

example:

ls -larth /home/faizul/

'pwd'

it shows the present working directory.

pwd

'cd'

It is used for changing the directory.

pwd # to knwo the current directory 
cd /home # to change the directory to /home
pwd # to check the current directory

'history'

it shows the previous history. many Linux distributions set the history size to a certain number, often 500 or 1000 commands.

history