About Linux

Outputs what IT inexperienced school students have learned: smirk:

What is Linux

A type of OS for computers OS is an abbreviation for operating system, which is a basic program that manages the entire computer.

What the OS provides

・ When you enter characters from the keyboard, the entered characters are displayed on the screen. ・ Operate the screen with the mouse ・ When you plug in the earphones, you can hear the sound from the earphones.

In this way, it provides functions that you take for granted.

Features of Linux

・ It is open source and anyone can use it free of charge. ・ A lot of high quality software is available -High reliability because it is widely used as a server in the world ・ Easy to operate the server

Basic commands

If you want to work on a Linux server, use the command using a terminal etc. The software that interprets the commands entered by the user at that time is called *** shell ***.

ls Abbreviation for list, which displays a list of folders and files directly under the current directory.


$ ls
#Show a list of file and folder names directly under your current directory

cp Abbreviation for copy, a command to copy a file as it is

$ cp [Original][Copy to]

mv Move and rename files

mv [What you want to move][Destination]

mv[Original file name][New file name]

rm Delete file

rm[File name you want to delete]

mkdir Create a new directory (folder) on Linux

mkdir[Directory name]

touch If the specified file does not exist, a new file from will be created. It is also possible to change the access time and update time of the specified file to the current time. You can change it at any time

 #Create a new file ・ Change the access time and update time to the current time
touch [file name]

#The access time and last update date of the sample file are set to October 1, 2019 15:Change to 00
touch -t 201910011500 sample

cat A command to combine and display the contents of a file

#Browse files
cat[file name]

#Combine files
cat[File 1][File 2]

Server settings

Linux is built on the assumption that multiple users can log in and operate on one machine at the same time. I want to prevent other users from seeing or editing files that I don't want to see. So, set *** general user *** and *** root user ***

General user and root user

The difference between a regular user and a root user is the level of permissions on the file. While general users can only perform operations that they are allowed to do, root users have all control rights, including files owned by other users.

When logging in to the remote server with SSH, you can adjust the authority on the remote server by logging in by specifying the user name.

$ ssh [email protected]
$ ssh [email protected]

Avoid using the root user with SSH, as the root user can view all files and execute all commands.

Recommended Posts

About Linux
About Linux
About Linux
About Linux
About Linux ①
[Linux] About export
[Linux] About PATH
Linux (about groups)
About Linux kernel parameters
Basic knowledge about Linux
About Linux environment construction (CentOS)
Linux (about files and directories)
Linux (About adding / removing users)
About LINUX files and processes
What I learned about Linux
About LangID
linux memorandum
About virtiofs
Linux commands
About python-apt
Linux commands
About Permission
About sklearn.preprocessing.Imputer
About gunicorn
Linux command # 3
Linux overview
About requirements.txt
About locale
direnv (linux)
About Opencv ②
About axis = 0, axis = 1
linux commands
About Opencv ③
Linux practice
About Linux environment construction (VMware VirtualBOX)
About import
Linux Summary
Linux process
Linux permissions
About numpy
Linux command # 5
About pip
Linux basics
About numpy.newaxis
Forgot linux
About endian
About import
Linux commands
About Opencv ①
About Linux commands Super basic edition
Beginners have learned about Unix (Linux).
About cv2.imread
About _ and __
About wxPython
Linux redirect
[Linux] [C / C ++] Notes about Waf build system
About python slices
Linux command list
About python comprehension
About Docker Volume
About reference type