Python Basics —————— Linux basic commands

Source: Internet
Author: User

Python Basics:

One

1. Installation and installation of environment

Installing a Linux system on a Windows system

① Installing virtual machines VMware workstation--> Baidu See Tutorial (Virtual machine install Linux (ENTOS7 SSH is installed by default))

②windows install Xshell and SECURECRT 8.1 remote software to operate the Linux system in the virtual machine

2. Install Python

Install the PY environment on the ①win system:

Official website Download puthon3.0

Installing python3.0

Configuring Environment variables

3. Running Code

Python e:\hello.txt

Second, Linux Basic command:

PWD up one step

CD to Directory

Ls View Directory

Ls-l listing the current directory detail file information

Cd.. Return to previous level directory

LS-LH Expand file Information in detail

Ls-a Viewing hidden files

Vim. Text Create a hidden file

Ls-a Show hidden files

Vim For_tao into the black window-"Press the I key to enter the editing mode-" Press ESC exit-"shift+:--" input wq--> Enter to save

Cat For_tao Viewing file contents

More For_tao View file Contents Space Key page

MkDir zu Creating a directory

MV For_tao zu/Move For_tao to the Zu directory.

Cd.. /.. /.. /.. /Once back to level four directory

Mkdir-p cn/hubei/wuhan/huangang/t Creating a directory recursively

Ls CN view CN under Directory

Tree CN Displays the structure of the CN directory

Vim For_tao Open content file editing

Python Basics —————— Linux basic commands

Related Article

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.