A super introduction to Linux

Overview

Here, I will write down the basic knowledge and commands of Linux after reviewing it.

What is a kernel?

The only software that can communicate with hardware such as CPU, memory, keyboard and disk.

What is a shell

It's like a chat interface that connects directly to the kernel. You can execute commands in the kernel through the shell language. Roughly speaking, it looks like this. Human <=> Shell <=> Kernel

Types of shell languages include sh`` tcsh bash`` zsh.

STDIN and STDOUT

In the LINUX environment, STDIN is a device for controlling input and STDOUT is a device for controlling output. By connecting this device to a terminal, you will be able to use the input and output using the keyboard.

Connecting inputs and outputs in this way is called attaching a tty.

Shell command (basic)

--Directory operation system

#Display directory information(list)
ls [dir]
#Move directory(change dir)
cd [dir]
#Show current directory(print working dir)
pwd
#Creating a directory(make dir)
mkdir [folder name]

--File operation system

#File creation
touch
#Add to file
echo >> [file name]
#File content display(concatenate)
cat test_file

--Task manager system

#View process(process status)
ps
#Start process in background(&)
sleep 60 &
#Bring the process back to the foreground(foreground)
fg

--Help system

#Command help(help) 
ps --help
#Show command save destination(whitch)
whitch ps
#View command manual(manual)
man ps

--Search system

#Find files and folders(find)
find / -type d -name test
#Search for characters
grep "aaa" test.txt -n

#Find the folder name and search for the files in it
find / -type d -name test | xargs grep -r aaa

Recommended Posts

A super introduction to Linux
[Linux] Introduction to Linux
A super introduction to Python bit operations
A quick introduction to pytest-mock
Super introduction to machine learning
A memorandum to change to Manjaro Linux
A light introduction to object detection
Introduction to MQTT (Introduction)
Introduction to Scrapy (1)
Introduction to Scrapy (3)
Introduction to Supervisor
Introduction to Tkinter 1: Introduction
pytorch super introduction
Introduction to PyQt
Introduction to Scrapy (2)
Introduction to Scrapy (4)
Introduction to discord.py (2)
Introduction to discord.py
An Introduction to Object-Oriented-Give an object a child.
[Super Introduction to Machine Learning] Learn Pytorch tutorials
[Introduction to Python3 Day 23] Chapter 12 Become a Paisonista (12.1 to 12.6)
[Super Introduction to Machine Learning] Learn Pytorch tutorials
Try to create a new command on linux
How to create a shortcut command for LINUX
Introduction to Lightning pytorch
Introduce serverspec to Linux
Introduction to Web Scraping
Introduction to Nonparametric Bayes
Introduction to EV3 / MicroPython
Introduction to Python language
Linux commands to remember
Introduction to TensorFlow-Image Recognition
Introduction to OpenCV (python)-(2)
bottle super elementary introduction
Introduction to PyQt4 Part 1
Introduction to Dependency Injection
Introduction to Private Chainer
PyTorch Super Introduction PyTorch Basics
Introduction to machine learning
How to install Linux on a 32bit UEFI PC
[Introduction to python] A high-speed introduction to Python for busy C ++ programmers
How to create a local repository for Linux OS
Introduction to Linear Algebra in Python: A = LU Decomposition
Introducing a desktop environment to Arch Linux (LightDM + Xfce4)
How to build a Python environment on amazon linux 2
[Linux] How to put your IP in a variable
An introduction to machine learning from a simple perceptron
Source compile Apache2.4 (httpd 2.4.43) + PHP7.4 on Linux to build a Web server --3 MySQL 8.0 introduction
AOJ Introduction to Programming Topic # 1, Topic # 2, Topic # 3, Topic # 4
Introduction to electronic paper modules
Introduction to dictionary lookup algorithm
[Windows] RDP to Windows via Linux
A super introduction to Django by Python beginners! Part 6 I tried to implement the login function
[Learning memorandum] Introduction to vim
Introduction to PyTorch (1) Automatic differentiation
opencv-python Introduction to image processing
A memo on how to easily prepare a Linux exercise environment
Introduction to Python Django (2) Win
Kubernetes Scheduler Introduction to Homebrew
A road to intermediate Python
An introduction to machine learning