For the first time, I learned about Unix (Linux).

This article

Since a beginner learned Unix for the first time, I will summarize the important points and output it as well as fixing it. I hope that similar beginners will get used to it with a little effort.

What is Unix? What is the difference from Linux?

If you study with Unix, you will also see the word Linux. It's basically the same ** OS **. If you are a beginner here, what is "OS" in the first place? I think it's like that, so I'd like to start with that explanation.

There are various types of ** OS **, which are summarized in the table below.

OS name Use
android Use a smartphone as hardware
iOS iphone as hardware
Windows Use a PC as hardware
Mac OS Use a PC as hardware
Unix Use the server as hardware
Linux Use a PC or server as hardware

I think I've heard a few of them. One of these includes Unix and Linux. Each has its own characteristics.

CUI, which was one of the two introductions, is an interface, and there are two types of GUI. ** GUI **: An interface that graphically represents file operations. It can be operated using a mouse, track board, touch panel, etc.

** CUI **: An interface that displays information in characters and performs all operations using the keyboard. Command By typing a command, you can operate files and start applications.

To summarize the commonalities of the two features mentioned so far

You can see that. What is the last difference? But the big thing is

It turned out that the point can be mentioned.

Kernel and shell

I explained that Unix is a CUI-based OS, but it operates in a cycle of entering commands and then entering commands again from the results displayed there. It is the kernel that performs these various processes. Users can do many things with the features managed by the kernel. But the kernel is just doing the work, not interpreting or executing it. That is the ** shell **.

It is called a shell because it exists between the user and the kernel and wraps around the kernel. What they are doing is that the command that the user operates and inputs is once received and interpreted by the shell, and the command is executed so that the kernel can understand it and request processing. And it has the role of interpreting the result and outputting it to the screen.

Users and groups

Unix is available to multiple users on a single computer and must be logged in first. Therefore, there is a ** user ID ** to identify a particular user. It is then assigned a login name or account name, which can also identify the user. Users are also divided into ** admin users ** and ** general users **. The ** admin user ** has maximum computer privileges and can execute all commands, access directories, manage the system, and configure settings. Therefore, it is common to set ** general users ** for each role so as not to make mistakes.

As mentioned above, there are multiple users. In addition, each user has different privileges and can use different directories. Therefore, there is a function called ** group ** to make it easier to manage on the system. Users always belong to one group, and can also belong to multiple groups.

Access right

Access rights are settings for which users can perform what operations on all files and directories.

$ ls -l :Check access rights

Recommended Posts

For the first time, I learned about Unix (Linux).
Let's try Linux for the first time
I tried using scrapy for the first time
I tried python programming for the first time.
I tried Mind Meld for the first time
Kaggle for the first time (kaggle ①)
Kaguru for the first time
What I learned about Linux
What I got into Python for the first time
I tried Python on Mac for the first time.
I tried python on heroku for the first time
I will install Arch Linux for the time being.
AI Gaming I tried it for the first time
[For self-learning] Go2 for the first time
See python for the first time
Start Django for the first time
Beginners have learned about Unix (Linux).
I tried the Google Cloud Vision API for the first time
If you're learning Linux for the first time, do this!
MongoDB for the first time in Python
What I learned by writing a Python Pull Request for the first time in my life
I tried logistic regression analysis for the first time using Titanic data
For the first time in Numpy, I will update it from time to time
How to use MkDocs for the first time
I played with Floydhub for the time being
Try posting to Qiita for the first time
Looking back on the machine learning competition that I worked on for the first time
GTUG Girls + PyLadiesTokyo Meetup I went to machine learning for the first time
Register a task in cron for the first time
After attending school, I participated in SIGNATE's BEGINNER limited competition for the first time.
I want to create a lunch database [EP1] Django study for the first time
I want to create a lunch database [EP1-4] Django study for the first time
I want to move selenium for the time being [for mac]
I tried running PIFuHD on Windows for the time being
Summary of stumbling blocks in Django for the first time
Introducing yourself at Qiita for the first time (test post)
I want to create a Dockerfile for the time being.
About the need for the first slash in the subscriber name and publisher name
Differences C # engineers felt when learning python for the first time
Code that I wish I had remembered when I participated in AtCoder for the first time (Reflection 1 for the next time)
I tried to create serverless batch processing for the first time with DynamoDB and Step Functions
I learned about processes in Python
For the time being, I want to convert files with ffmpeg !!
[Hi Py (Part 1)] I want to make something for the time being, so first set a goal.
I measured the run queue wait time of a process on Linux
A note about the functions of the Linux standard library that handles time
Impressions and memorandums when working with VS code for the first time
A useful note when using Python for the first time in a while
Since I'm free, the front-end engineer tried Python (v3.7.5) for the first time.
I will talk about my first experience
Qiita's first post (the reason for starting)
Python Master RTA for the time being
I see, I will read the UNIX process
Understand the "temporary" part of UNIX / Linux
I wrote the code for Gibbs sampling
Real Time Clock (RTC) Drivers for Linux
I studied about Linux, so I summarized it.
I bought Sipeed Lichee Zero so I set it up for the time being
About Linux
Let's display a simple template that is ideal for Django for the first time
About Linux