♥♥♥Easy and simple to learn the most detailed Linux

Learn the most detailed Linux easily and simply. Continuously updated.


Preface reminder:

Learning Linux is a process that requires strong practice and multiple operations. A word of caution: Many people would rather suffer for a lifetime than struggle for 3-5 years. People, only bloody results can prick their ignorance. You have thought about and determined who you really want to be. Spend a certain amount of practice and keep doing it. When you don’t want to do something, think about your original intention and possible future. come on! Learn to be flexible and sometimes you need to explore on your own and sometimes it is better to ask for help.


1. Setting up the environment

1. You can go to Alibaba Cloud or other platforms to purchase servers directly.
2. You can use your own computer to build a virtual machine. There are two things you can do.
①VMwareWorkstationPro
②VirtualBox

3. It is best to install these two softwares Xshell7 + xftp7, which will make the operation more convenient. It is okay not to install it at the beginning
. Example: ①Installation process of VMware Workstation Pro

2. Linux commands

1. cd to switch directories
2. ls to view files under the file
3. ls -a to view all files under the file including hidden files

3. Linux directory structure

[You don’t need to memorize it to know it]
– The Linux file system adopts a hierarchical directory structure. The top level of the substructure is the root directory “/”. Then create other directories under the directory next time

Remember the classic saying: Everything under Linux is a file.

1. bin – commonly used (/usr/bin \ /usr/local/bin) directory stores the most frequently used commands 2.
/sbin – commonly used (/usr/sbin \ /usr/local/sbin) directory stores the most commonly used commands System management program
3. /home – Commonly used kitchen directory for ordinary users. In Linux, each user has his or her own directory. Generally, the directory name will be named after the user’s account name. 4. /
root – Commonly used directories are System administrator, also known as super privileged user.
5. /etc - Commonly used for all configuration files and subdirectories my.conf required for system management.
6. /usr - Commonly used. This is a very important directory. Many applications and files of users are housed in this directory. Similar to the directory under window
7. /boot – commonly used to store some core files used when starting Linux, including some link files and image files
8. /media – commonly used Linux systems will automatically recognize some devices such as U disks, optical drives, etc. After recognition, Linuxbuild will hang the recognized files in the directory.
9. /mnt – Commonly used systems provide this directory to allow users to temporarily mount other file systems. We can mount external storage on /mnt/, and then enter the directory to view the contents. d:/myshare

10./dev------Similar to the device manager under Windows, all recommendations are stored in the form of files.
11./opt------This is the directory where additional software is installed for the host. . If you install the Oracle database, you can put it in this directory. Default is empty.
12. /lib------The most basic dynamic link library required for system startup. (If you delete many programs, it will not be used.) Its function is similar to the dll file under Windows. Almost all applications require these shared libraries.
13. /lost+found----This directory is generally empty. When the system is shut down abnormally, some files are stored here (usually invisible and require the ls -a command) 14. /proc [cannot be moved
] ------This directory is a virtual directory, which is a mapping of system memory. To access this directory, you need to obtain system information
14. /srv service abbreviation [cannot be moved] ------
14. /sys [cannot be moved] 】------
14./tmp【Cannot be moved】------This directory stores some temporary files

4. Three modes of vi and vim

Insert image description here

1. Import the library

The code is as follows (example):

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
import  ssl
ssl._create_default_https_context = ssl._create_unverified_context

2. Read data

The code is as follows (example):

data = pd.read_csv(
    'https://labfile.oss.aliyuncs.com/courses/1283/adult.data.csv')
print(data.head())

The data requested by the url network used here.


Summarize

提示:这里对文章进行总结:

For example: The above is what I will talk about today. This article only briefly introduces the use of pandas, and pandas provides a large number of functions and methods that allow us to process data quickly and conveniently.

おすすめ

転載: blog.csdn.net/zhangjianfu2222/article/details/132389219