Basic knowledge about Linux

Overview

I am studying programming as much as possible as an IT engineer, but I often see information that "you should know the basics of Linux". Certainly, when studying AWS, it is commonly used such as "OS should be Linux". I thought that if I didn't learn the basics once, it would be difficult in the future, so I investigated Linux this time.

Reference material

What is Linux? Explain the outline and basics that even beginners can understand! What is Linux (Linux)? Explain the types, benefits of introduction, and what you can do with Linux! I have referred to the above. Since we are talking about the OS, I also learned about the PC parts site.

What is Linux

The software that runs a PC is called an OS (operating system), and Linux is one of them. It may also refer to the Linux kernel, which is the core kernel of the OS. Speaking of OS, Windows OS and Mac OS are famous, but among them, the feature of Linux OS is that it is open sourced and can be customized, and it is often used for servers.

Linux usage example

** Server construction ** Linux is widely used as an OS for servers, and is increasingly being selected as the initial OS for rental servers. System development Many systems have been developed, including Linux distributions, based on the Linux kernel. Android is also an OS derived from Linux. IoT It is also used as an embedded OS, and in order to connect products to the Internet due to the spread of IoT, Linux is customized and used to be embedded in products.

Linux type

Linux can be divided into two. ** Linux kernel ** This is the core of Linux and is necessary for running the Linux OS. Although it is the core part, it is not possible to operate the PC by itself. ** Linux distribution ** A Linux distribution is a customized version of the Linux kernel. Many developers have created Linux distributions based on the Linux kernel, and many derivations have been created.

Derivation of Linux distribution

** Red Hat system ** The Red Hat family is derived from the distribution provided by Red Hat. CentOS is a typical example, and it is active for servers. ** Debian system ** The Debian system was developed mainly by volunteers. Ubuntu is a typical example. ** Slackware system ** The Slackware system is based on the oldest Slackware. It's for professionals because it's from the beginning, but it's also stable, secure, and fast.

shell

A shell is a software that provides an interface for OS users. You can use the shell to do various things in the kernel. You can also operate by entering a command.

Typical Linux commands

pwd Abbreviation for print working directory, which prints the current directory.

python


$ pwd
/Users/name

cd Abbreviation for change directory, you can move to the specified directory.

python


$ cd /programing
$ pwd
/Users/name/programing

ls Abbreviation for list segments, which displays the contents of the current directory. You can show hidden files by adding -a.

python


$ ls
applications
Desktop
documents
Downloads
Library
$ ls -a
.bash_profile
.history
applications
Desktop
documents
Downloads
Library

mkdir An abbreviation for make directory.

python


$ mkdir data

cp Abbreviation for copy, you can move a file to a certain location.

python


$ cp data1.txt data

mv Abbreviation for move, you can move and rename files and directories.

python


$ mv data.txt data
$ cd data
$ mv data1.txt data2.txt

rm Abbreviation for remove, you can remove the specified file. It is difficult to restore the deleted one, so be careful when operating it.

python


$ rm data.txt

cat Abbreviation for catenate, a command to display the contents of a file. You can also concatenate the file contents and display the results by specifying multiple file names.

Summary

The contents of the reference site were very easy to understand, and I was able to understand the basics of Linux, which was ambiguous within me. Linux is used at a considerable rate for server construction, so I want to get used to it now. I'm glad I was able to review the commands at this opportunity. I think it will be useful for studying public clouds such as AWS, so I'm glad I was able to summarize it.

Recommended Posts

Basic knowledge about Linux
About Linux
About Linux
About Linux
About Linux
About Linux ①
Basic knowledge of Linux and basic commands
About Linux commands Super basic edition
[Linux] About export
Linux command <Basic 2>
[Basic] linux command
Basic LINUX commands
[Linux] About PATH
[Linux] Command / Knowledge
Linux (about groups)
Linux command <Basic 1>
Linux (about directory path)
About Linux kernel parameters
Linux basic command memorandum
[Linux] Basic command summary
Basic knowledge of Python
About Linux environment construction (CentOS)
CLI and Linux basic terms
Linux (About adding / removing users)
What I learned about Linux
Summary of basic knowledge of PyPy Part 1
[Python] Basic knowledge used in AtCoder
About the basic type of Go
Linux
Linux Basic Education for Front-end Engineer
Sub-article: GNU, Linux peripheral knowledge organization
Linux command (basic in basic) personal memo
Beginners have learned about Unix (Linux).
Getting Started with python3 # 1 Learn Basic Knowledge
[Linux] Review of frequently used basic commands 2
[Linux] [C / C ++] Notes about Waf build system
Linux operation for beginners Basic command summary
[Linux] Review of frequently used basic commands
Python Basic Memorandum Part 3-About Object Orientation-
I studied about Linux, so I summarized it.