Skip to main content

Command Palette

Search for a command to run...

Day 2- Linux & its Basic Commands

Published
3 min read
Day 2- Linux & its Basic Commands
P

Hi 🖐 Learners,

I'm a technical writer, who specialize in translating complex technical concepts into clear, user-friendly documentation. My goal is to bridge the gap between developers and end-users by creating comprehensive and accessible guides that empower users to navigate and utilize technology effectively.

As a seasoned technical writer transitioning to a DevOps engineering role, I bring a strong foundation in communicating complex technical concepts. Now, I'm leveraging this expertise to design, automate, and optimize seamless software development and deployment pipelines, embracing a hands-on approach to shaping the future of technology infrastructure.

Let's begin a new journey in devops,kindly follow me for more informative content and together build a healthy & strong community to reach our goals.✌️

🐧What is Linux?

Linux refers to an open-source, Unix-like operating system kernel that serves as the core component of various operating systems, collectively known as Linux distributions or distros. It was initially created by Linus Torvalds in 1991 and has since evolved into a powerful and versatile platform widely used in server environments, embedded systems, desktop computers, and other computing devices.

Some of its key characteristics are,

  1. Open Source:

    The source code of Linux is freely available, allowing users to view, modify, and distribute it.

  2. Multitasking and Multiuser:

    Linux supports multiple processes running simultaneously and can handle multiple users accessing the system concurrently.

  3. Stability and Reliability:

    Linux is known for its stability and reliability, making it a preferred choice for servers and critical systems.

  4. Security:

    Linux has robust security features, including user permissions, firewalls, and a well-developed permission system.

  5. Variety of Distributions:

    There are many Linux distributions, each with its own package management system, software selection, and target audience.

🔰What is a Linux Architecture?

Linux architecture refers to the overall structure and design of the Linux operating system, encompassing its key components and how they interact.

Here is an overview of the fundamental elements of Linux architecture:

  • Applications:

    It is the software programs that operate within the user space, utilizing the underlying operating system and engaging with its various components.

  • Shell:

    The shell is a command-line interface that allows users to interact with the system by typing commands. Popular shells include Bash (Bourne Again SHell) and Zsh (Z shell).

  • Kernel:

    The Linux kernel is the core of the operating system. It manages hardware resources, provides an abstraction layer between software and hardware, and controls the execution of processes.

  • Hardware:

    In the Linux architecture, hardware components are the physical devices that the operating system interacts with to enable computing functionality. These components include processors, memory (RAM), storage devices (such as hard drives and SSDs), network interfaces, graphics cards, and other peripherals.

🔰Basic Linux Commands

ls     :lists the created or existing files/directories 
echo   :prints the text
mkdir <directory name>: used to create a directory
cd     :used to change the directory 
pwd    :prints the present working directory
whoami :shows the current user
touch <file name> :used to create an empty file
ls -l :shows all the files & directories with an additional info
ls -a :shows all hidden files or directoreis existed
cat <file name> :used to show the content existing within a file
mv <file name> <directory name> :used to move files from Source to Destination folder
cp <file name> <directory name> :used to copy the files
uname :shows the name of kernel (OS)
rm <file/directory name> :removes files or directories if they are empty
rm -r file/directory name :used to remove forcefully the files or directories by deleting the content within them
mkdir -p A/B/C/D :used to create the directories in nested format
touch file{1..10}.txt :used to create multiple files in a single step
history :shows all the commands used in the terminal
lsb_release -a :shows the release date of OS version
sudo useradd -m <username> :used to add a new user within home directory
sudo passwd -m <username> :used to add a password for the mentioned user

⚜️Conclusion

Linux is a popular and free open-source operating system known for its stability, security, and flexibility. It is widely used in servers, embedded systems, and desktops. With a strong community and a range of applications, Linux stands out for its adaptability and cost-effectiveness.

I hope this blog has helped you in getting some valuable insights,do follow and comment by supporting me which helps to reach for many aspirants with similar interests.

Happy Learning 😃 :)