Home Computer Tutorials Computer Knowledge Linux Getting Started Guide: Master the basics easily and start your happy journey!

Linux Getting Started Guide: Master the basics easily and start your happy journey!

Feb 29, 2024 pm 10:52 PM
linux Linux operating system shell script imperative Dry information

Linux Getting Started Guide: Master the basics easily and start your happy journey!

Write in front

Hi dear readers! There may be no surprises in today’s article, and it may be slightly disappointing to some friends who are hungry for practical information.

Don’t be discouraged, there will be more useful information tomorrow! Let's have a good time reviewing the basics of Linux today to bring you some light appetizers.

In other words, I have been working in the IT industry for many years, and I have always been a little nervous and low-key about the big mystery of Linux.

There was a time when I actually refused to come into contact with Linux.

why? Because I think, we have visual tools like Jenkins that can handle everything from development to deployment, so why bother to memorize a bunch of command lines? What's more, I still have to look around for ways to crack the ssh tool.

There are so many simple and easy-to-use tools, why do you have to compete with those troublesome command lines?

However, one day I discovered a little secret. It turns out that the command line is also quite easy to use! Practice makes perfect, use it often and you will remember it.

What is Linux

For novices, Linux may sound a bit unfamiliar, so let’s first take a look at its details.

Linux is not simple. It is an open source operating system kernel that is unique among many operating systems. Although it is low-key, since its creation by Linus Torvalds in 1991, it has quickly become loved and widely used by users around the world.

Compared with other operating systems, Linux has many unique advantages.

First of all, it is open source, which means that anyone can browse, modify and share its source code at will. This means that Linux is a highly flexible, customizable and scalable operating system.

In addition, Linux is also a multi-user, multi-tasking operating system that can support multiple users and programs running at the same time without fear of traffic jams.

Also, its command line interface is quite powerful and can interact closely with the system.

Moreover, Linux is also widely praised for its stability and security. Thanks to the open source nature, experts from all over the world can work together to fix vulnerabilities and provide updated versions in a timely manner.

In addition, Linux is also widely used in various fields, from personal computers to servers, mobile devices and embedded systems, it can do everything! Whether you are an individual or a business, Linux can provide powerful control and freedom. This is the charm of Linux!

Linux distribution

The history of the development of Linux can be traced back to 1991, when a Finnish college student Linus Torvalds developed an operating system kernel called "Linux" and released it to developers around the world through the Internet.

With the participation and contributions of developers around the world, Linux has gradually become a mature, stable and widely used operating system.

Later, many different Linux distributions appeared, among which the more important ones are the following:

  • Debian: Debian is one of the earliest Linux distributions, founded by Ian Murdock in 1993. It is known for its stability and security and is widely used on servers and workstations.
  • Red Hat Enterprise Linux (RHEL): Red Hat is a company specializing in Linux services and support. Its main product RHEL is an enterprise-level Linux distribution. It is known for its stability, reliability, and security and is widely used in enterprise-level applications.
  • Ubuntu: Ubuntu is a Linux distribution built on Debian and founded in 2004 by South African entrepreneur Mark Shuttleworth. It is known for its ease of use and user-friendly interface and has a considerable share in the desktop and laptop market.
  • CentOS: CentOS is a Linux distribution recompiled based on RHEL source code. It is known for its stability and free enterprise-level support. It is widely used in enterprise-level applications and servers.
  • Fedora: Fedora is a community project sponsored by Red Hat that aims to provide Linux users with the latest software and technology. It is often considered a beta version of RHEL, providing feedback and improvements for subsequent RHEL releases.
  • These distributions have their own unique features and advantages, suitable for different users and application scenarios. Therefore, in actual work, it is necessary to choose an appropriate Linux distribution based on specific usage scenarios to improve the performance, reliability, and security of the system.

    Judging from the current domestic use, among the server-side operating systems, the mainstream ones are CentOs and Ubuntu.

    But on December 8, 2020, CentOS officially announced its plan to stop maintaining CentOS Linux and launched the CentOS Stream project.

    CentOS Linux 7, as a replica of RHEL 7, will stop updating on August 6, 2020, but will continue the current support plan and stop maintenance (EOL) on June 30, 2024.

    CentOS Linux 8, as a replica of RHEL 8, has a shortened life cycle and will stop updating and maintenance (EOL) on December 31, 2021.

    CentOS officially no longer provides CentOS Linux 9 and subsequent versions, but provides CentOS Stream version.

    Basic concepts of Linux

    As an open source operating system, Linux has some basic concepts that you still need to understand:

    • Kernel: The Linux kernel is the core part of the operating system, responsible for managing the computer's hardware resources and providing basic system functions. It is a core component of the Linux operating system.
    • Distribution: A Linux distribution is a complete software package of an operating system based on the Linux kernel, including the kernel, system tools, libraries and other software. Common Linux distributions include Ubuntu, Fedora, Debian, etc.
    • Shell: Shell is the command line interface between the user and the operating system, used to enter and execute commands. In Linux, common Shells include Bash (Bourne Again SHell), Zsh, etc.
    • Shell Scripting: Shell script is a script programming language used for automated tasks and batch processing. By writing Shell scripts, a series of commands can be combined together for batch execution.
    • File System: Linux uses a hierarchical file system to organize and store files. Common file systems include Ext4, NTFS, FAT, etc.
    • File Permissions: Linux uses a set of permission bits to control access to files and directories. Permissions are divided into read (r), write (w) and execute (x), which respectively represent the permissions to read, write and execute operations on the file.
    • User and permission management: Linux operates in a multi-user manner, and each user has his or her own account and password. At the same time, Linux also has a powerful permission management mechanism to manage access permissions to files and directories through access control lists (ACLs) and user groups.
    • Process: In Linux, a process is an execution instance of a program. Each running program is assigned a unique process ID (PID) and runs independently on the system.
    • Process Management: Linux provides various tools and commands to manage processes in the system, such as ps, top, kill, etc. These tools enable viewing and control of running processes.
    • Network: Linux is a network-based operating system that supports various network protocols and services. It has powerful network functions and can perform network configuration, communication and management.
    • Package Management: Linux distributions usually provide their own package management tools for installing, updating, and uninstalling packages. Common software package management tools include apt, yum, dnf, etc.

    Linux file system

    After understanding some basic concepts about Linux, you need to focus on understanding the structure of the Linux file system. The Linux file system adopts a hierarchical structure to organize and manage files and directories. Its structure can be described as a tree structure, called a directory tree.

    In the Linux file system, the root directory (/) is the top-level directory of the entire file system, and all other directories and files are located under the root directory or its subdirectories. The following are some common directories and their functions:

  • /bin: Stores executable binary files, such as commonly used commands and system tools.
  • /boot: Contains the files needed to start a Linux system, such as the kernel and boot loader.
  • /dev: Used to store device files. Linux represents devices as files for access.
  • /etc: Stores system configuration files, such as network configuration, user configuration, etc.
  • /home: Used to store the user's home directory. Each user usually has a corresponding subdirectory.
  • /lib: Stores system library files, which are used by executable files.
  • /media: Used to mount removable media, such as CDs, USB drives, etc.
  • /opt: Stores optional third-party software installation directory.
  • /proc: Virtual file system, providing information about the system and processes.
  • /root: The home directory of the super user (i.e. administrator).
  • /sbin: Stores system tools and commands used by system administrators.
  • /tmp: used to store temporary files.
  • /usr: Stores user and shared applications, library files, documents, etc.
  • /var: Stores frequently changing files, such as log files, cache files, etc.
  • This is just an example of some common directories in a Linux file system, and can actually be adjusted and extended appropriately for your specific Linux distribution and needs. The structure of a file system helps organize and manage files, allowing users to easily access and manipulate files.

    Commonly used commands in Linuxt

    In addition, unlike Windows, the Linux system does not have a particularly gorgeous operating interface. In most cases, character-type instructions are used to interact with the operating system.

    One of the benefits of doing this is that it can reduce the consumption of system resources.

    So, if you want to learn Linux systematically, you must understand the operating commands of the Linux system, and remember the commonly used ones!

    For many people, remembering these common commands is indeed a challenge, and I am no exception.

    Next, I will classify the commonly used operating commands of the Linux system according to their functions and uses, and share with you the usage methods and precautions in each category.

    Here we first classify the commonly used operating commands of the Linux system according to their functions and uses. You can have a brief understanding first:

  • Software package management commands: used to install, upgrade, uninstall and query software packages, as well as manage software package warehouses and dependencies. For example, apt, yum, dpkg, rpm, etc.
  • File and directory operation commands: used to create, copy, move, rename, delete files and directories, etc. For example, cd, ls, cp, mv, rm, mkdir, rmdir, etc.
  • Text processing commands: used to search, sort, find, replace content in text files, etc. For example, cat, grep, sed, awk, etc.
  • System management and monitoring commands: used to manage system resources, processes, networks, etc., and monitor system performance and status. For example, ps, top, kill, free, ifconfig, netstat, etc.
  • User and permission management commands: used to add, modify, and delete user accounts and groups, as well as set and manage permissions and ownership of files and directories, etc. For example, useradd, usermod, userdel, groupadd, chmod, chown, etc.
  • Network and communication commands: used to configure and manage network connections, communication protocols, remote access, etc. For example, ping, ssh, ftp, curl, etc.
  • Hardware device management commands: used to configure and manage hardware devices, such as disks, network cards, USB devices, etc. For example, fdisk, mkfs, mount, umount, etc.
  • Shell programming commands: used to create and execute Shell scripts, automatically executing a series of commands to achieve specific goals. For example, echo, if, while, for, etc.
  • The above is the detailed content of Linux Getting Started Guide: Master the basics easily and start your happy journey!. For more information, please follow other related articles on the PHP Chinese website!

    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Tools

    Notepad++7.3.1

    Notepad++7.3.1

    Easy-to-use and free code editor

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    Dreamweaver CS6

    Dreamweaver CS6

    Visual web development tools

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)

    How to use docker desktop How to use docker desktop Apr 15, 2025 am 11:45 AM

    How to use Docker Desktop? Docker Desktop is a tool for running Docker containers on local machines. The steps to use include: 1. Install Docker Desktop; 2. Start Docker Desktop; 3. Create Docker image (using Dockerfile); 4. Build Docker image (using docker build); 5. Run Docker container (using docker run).

    How to view the docker process How to view the docker process Apr 15, 2025 am 11:48 AM

    Docker process viewing method: 1. Docker CLI command: docker ps; 2. Systemd CLI command: systemctl status docker; 3. Docker Compose CLI command: docker-compose ps; 4. Process Explorer (Windows); 5. /proc directory (Linux).

    What to do if the docker image fails What to do if the docker image fails Apr 15, 2025 am 11:21 AM

    Troubleshooting steps for failed Docker image build: Check Dockerfile syntax and dependency version. Check if the build context contains the required source code and dependencies. View the build log for error details. Use the --target option to build a hierarchical phase to identify failure points. Make sure to use the latest version of Docker engine. Build the image with --t [image-name]:debug mode to debug the problem. Check disk space and make sure it is sufficient. Disable SELinux to prevent interference with the build process. Ask community platforms for help, provide Dockerfiles and build log descriptions for more specific suggestions.

    What computer configuration is required for vscode What computer configuration is required for vscode Apr 15, 2025 pm 09:48 PM

    VS Code system requirements: Operating system: Windows 10 and above, macOS 10.12 and above, Linux distribution processor: minimum 1.6 GHz, recommended 2.0 GHz and above memory: minimum 512 MB, recommended 4 GB and above storage space: minimum 250 MB, recommended 1 GB and above other requirements: stable network connection, Xorg/Wayland (Linux)

    vscode cannot install extension vscode cannot install extension Apr 15, 2025 pm 07:18 PM

    The reasons for the installation of VS Code extensions may be: network instability, insufficient permissions, system compatibility issues, VS Code version is too old, antivirus software or firewall interference. By checking network connections, permissions, log files, updating VS Code, disabling security software, and restarting VS Code or computers, you can gradually troubleshoot and resolve issues.

    Can vscode be used for mac Can vscode be used for mac Apr 15, 2025 pm 07:36 PM

    VS Code is available on Mac. It has powerful extensions, Git integration, terminal and debugger, and also offers a wealth of setup options. However, for particularly large projects or highly professional development, VS Code may have performance or functional limitations.

    What is vscode What is vscode for? What is vscode What is vscode for? Apr 15, 2025 pm 06:45 PM

    VS Code is the full name Visual Studio Code, which is a free and open source cross-platform code editor and development environment developed by Microsoft. It supports a wide range of programming languages ​​and provides syntax highlighting, code automatic completion, code snippets and smart prompts to improve development efficiency. Through a rich extension ecosystem, users can add extensions to specific needs and languages, such as debuggers, code formatting tools, and Git integrations. VS Code also includes an intuitive debugger that helps quickly find and resolve bugs in your code.

    What is the main purpose of Linux? What is the main purpose of Linux? Apr 16, 2025 am 12:19 AM

    The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

    See all articles