Python basic commands

  1. What is an operating system?
It is a piece of code. 
The operating system can directly control the hardware and also support applications running on it
Act as an intermediary between hardware and applications! Thus the application calls the hardware indirectly

2. linux basic commands
ctrl shift + increase font size
ctrl - decrease font size
ls ; ls + path; ls + folder list
ls -a shows the current hidden files. All files that start with . are hidden files
ls -l displays the current file as a list, excluding hidden files
ls -l -h Display in appropriate units. . . -h cannot be used alone
ls -a -l -h
ls -alh
Arrow keys up and down to retrieve recently used commands

cd  
cd .. go back to the previous level
..represents the previous path
.represents the current path
../../..upper three floors  
pwd
clear

ctrl c in the terminal means to end the program copy and paste can only be right-clicked
cd - indicates the last path and only jumps between the last two paths
tab can complete initials


touch create file
ls  *.txt
ls *.* show all files with suffix
ls *.t?t * means multiple characters, can be without ? Indicates a character, there must be one but not one
ls *.t[xn]t choose one from brackets x n
ls *.t[af]t between af     
ls \*a Find *a file, at this time * is escaped

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324523647&siteId=291194637