What is Linux?
Linux is an open-source operating system (OS). Operating systems are programs that manage applications and support a computer’s basic functions. An OS is essential to a computer system because it’s responsible for managing hardware resources and handling all operations, including running software. After Microsoft Windows and Apple iOS versions, Linux OS versions are the primary option for users worldwide who prefer open-source software [].
Linux is a popular platform for organizations needing to host data, services, or applications securely. Its desktop environment can also be used on personal computers. Common Linux use cases include:
-
Server applications. Linux is suitable for running web servers, file servers, database servers, and other shared servers that require high-volume support.
-
Software development. Linux’s open-source software development tools are popular among enterprise-level businesses. The widely used version control system Git was developed for Linux Kernel by creator Linus Torvalds.
-
Cloud computing. Linux’s open-source, highly scalable nature makes it a suitable OS for cloud infrastructure.
-
Game development. Linux can be installed on various platforms, including mobile devices and video game consoles.
Linux components
Operating systems are made up of a suite of programs that enable a computer to operate. A Linux-based operating system consists of three main parts: the kernel, shell, and programs. In the following sections, we’ll provide a brief overview of each one.
The Linux kernel is the central component of a Linux operating system, hence the name kernel. It serves as the communication interface between a computer’s hardware and processes. Linux kernels are responsible for controlling all major functions and managing computer resources such as files, processes, memory, and devices.
A shell is a specialized program that enables users to execute commands and use operating system services. The Linux shell acts as a translator, translating natural-language user commands and files into input that the kernel can understand. There are two classification levels of a Linux shell:
Linux programs are typically designed to do one thing efficiently. These specialized programs can be used together in many different ways. You can think of them as customization parts that enable you to add functionalities to your Linux operating system as needed.
Linux commands
Linux commands are utilities of the Linux OS. All tasks in Linux can be accomplished by executing commands through the Linux terminal. The list below answers a few of the most frequently asked questions about Linux commands.
Tip: Remember that Linux commands are case sensitive.
In Linux, Cat stands for concatenate. It is a commonly used, pre-installed command that can display the contents of files, link multiple files together into an output file, and adjoin content to existing files. The cat command in Linux can also be used to format file outputs.
Tar is a file management command that is short for tape archive. It is used to create and extract compressed files that contain several files packaged together for portability and storage purposes. These files are also known as archive files.
Echo in Linux is a built-in command that is used to display the string or line of text passed as the arguments. It prints arguments to the standard output.
The command wc in Linux stands for word count. It’s a utility command that calculates the word count, line count, or byte count in a file.
Sudo stands for “super user do” and it’s a command prefix that only superusers have the ability to run. Adding sudo to a command enables users with the correct permissions to execute commands as other users, similar to the Windows feature “run as administrator.”
In Linux, sh is a command language interpreter. Using sh ensures that the commands read and executed from a command line string or specified file will be expressed in shell command language.
The export command in Linux is a built-in utility used to create environment variables. It ensures that those environment variables and functions will be passed to child processes without affecting the existing environment variable.
The nc command in Linux stands for netcat. It’s a command-line utility that enables you to read and write data between two networks. This command is especially useful for sysadmins and network administrators.
In Linux, xargs is a general command that enables users to build and execute command lines from standard input.
Learn more about Linux with Coursera
You can learn to use Linux with an industry leader in technology by enrolling in IBM’s Hands-on Introduction to Linux Commands and Shell Scripting. In this beginner-friendly, self-paced online course, you’ll learn how to describe Linux architecture, update and install software on a Linux system, and more in around 14 hours.
原文链接:https://www.coursera.org/articles/what-is-linux
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/33312