Python Full Stack road _01

Source: Internet
Author: User
Tags clear screen

Python Full Stack Road
    • Preface: Since Python is primarily used on Linux and Widows operating systems, first introduce the installation of Pyhton on these two platforms and some basic knowledge
Linux system installation Pyhton1. Tools
    • Virtual machine: VMware workstation Pro
    • Linux system: CentOS 64-bit

      VMware Virtual machine installation is simply not explained.
      Installing CentOS on a virtual machine is important to note:

    • Run memory allocation around 1G

    • You can press F2 to enter the BIOS interface boot directory to select Boot device select hard drive to the priority boot location after F10 save

    • If the CPU does not have virtualization enabled, you can switch to the advanced option in the BIOS interface and find the secure virtualmachine mode option, set to Enabled.

    • Remember the root user password you set

    • When the system configuration partition is installed, it is generally divided into/boot,/swap,/ Three partitions. The main thing here is swap partition: Linux swap partition, if the physical memory of the Linux system is not enough, the system will move the low-frequency storage objects in physical memory into swap, and generate the new object in physical memory that is linked to the swap. (The difference between virtual memory in Windows is that Windows is a collaborative call)

2.Linux Basic Command Introduction
  • Linux systems follow the GPL terms and source code. is a multi-user, multi-tasking, multi-threaded and multi-CPU operating system based on POSIX and UNIX. Linux systems are primarily used for servers, especially Web servers.

  • Linux Terminal: Also called Virtual Console, the Linux operating system mainly uses the command line to work, through the Linux terminal to control the system.

  • Simple command and use of Linux systems

    1. Switch Virtual Terminal: Ctrl+alt+f (1-6)

    2. Command prompt for normal user and system user login: ¥ and #.

    3. Shut down the system: Init 0

    4. Exit Command: Exit

    5.Linux command format: Command + options + parameters

    6.who command: Lists the users who are currently logged on to the system

    7.ls: Lists the files in the current directory.

    8.date: Show Current date

    9.date ' Month Day Year ': Modify system date

    10.cal: View System Calendar

    11.clear=ctrl+l: Clear Screen

    12.hwlock-s: Synchronizing Hardware time

    13.useradd+ User name: Create user

    14.PASSWD: Set User password (modify current user password)

    15.ctrl+c: Terminates the previous command

    16.su-User name: Switch user

    17.man+ command name: Display Help information (equivalent to command +--help)

    18.PWD: Show Current path

    19.cd.. : Switch to Parent directory

    20.TAB: If you forget the command, you can complete the command you entered

    21.ls-a: Show hidden Files (hidden files starting with.)

    22.CD ~: Go directly to the current user's home directory

    23.CD-: Returns the last directory in which it was located

    24.CP file directory + Space + destination file directory: Copy the file to the target path

    25.CP file directory + Space + destination file directory +new_name: Rename after copy to destination path

    26.alias + Custom character = ' command ': Custom character is the alias of the command

    27.cp-r: File directory recursive copy

    28.MV Current directory destination directory: Move files from the current directory to the target directory

    29.MV current file name target file name: rename

    30.mkdir: Create a file or directory

    31.mkdir-p: Recursive creation of file directories

    32.touch: Create a text document (you can add a table of contents above)

    33.rm-f: Delete directly (without prompting for information)

    34.RM-RF: Deleting the library and running does not explain (use cautiously)

    35.cat+ file path: View command to display file contents directly

    36.head+ file path: Displays the first few lines of the destination file (the first 10 lines of the default file)

    37.tail+ file path: Display the destination file after a few lines (default after 10 lines)

    38.tail-f: Dynamically view file contents (can be used to view logs)

    39.more: Percent View file (Ebter page Down)

    40.less: View the contents of the file (page up and down)

  • Absolute path: Must/start to traverse each directory from the root of the system until the object to be found. is the full path to the file location, so the absolute path always finds the corresponding file, regardless of the situation.

  • Relative path: The object that is not/begins to traverse each directory to find relative to the current path.

  • The file structure of a Linux system: Tree structure (only one tree) root:/.

    1.bin directory: Used to store frequently used executables (binary)

    2.sbin Directory: The executable file used to store the system

    3.dev Catalog: Device Files Directory

    4.ETC Catalog: Configuration file directory

2018/8/9 21:32:52

Python Full Stack road _01

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.