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.
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.
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.
** 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 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.
** 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.
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.
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.
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