Introductory tutorial for using linux system

王林
Release: 2020-09-05 17:42:59
Original
25542 people have browsed it

Introductory tutorial for using linux system

The most common thing we do under Linux is to perform some operations on the terminal. There are many ways to open the terminal. Right-click the mouse and select Open Terminal, or shortcut Ctrl Alt T. Next we Introducing the commonly used commands in Linux:

(1) View directory: ls is used to view all file information under the current path

Introductory tutorial for using linux system

(2) Create directory: mkdir creates a folder

Introductory tutorial for using linux system

(3) Switch directory: cd switches to the specified file

Introductory tutorial for using linux system

Online learning video tutorial sharing : linux video tutorial

(4) Copy files and directories: cp (source file) (target file)

  • cp-r can be specified Copy any specified directory (including subdirectories and files)

  • cp- f Delete the existing target file without prompting.

  • cp-i Contrary to the f option, a prompt will be given asking the user for confirmation before overwriting the target file. When you answer y, the target file will be overwritten, which is an interactive copy.

Introductory tutorial for using linux system

(5) Delete files and directories: rm (file or directory)

  • rm-rf You can specify to delete any directory or file, use with caution.

  • rm dir delete empty folder

Introductory tutorial for using linux system

(6) Rename files and directories mv(file or directory name) (new name)

Introductory tutorial for using linux system

(7) The reading command cat

cat has two uses. One is to display all the file contents in cat temp.py on the screen; the second is to put the contents of one file into another file, which is equivalent to the cp command cattemp.py temp1.py

Introductory tutorial for using linux system

Recommended related article tutorials: linux tutorial

The above is the detailed content of Introductory tutorial for using linux system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!