Stupid way to learn Python (exercise 0)

Source: Internet
Author: User

First, learn to use terminal to create a directory

Mkdir--make Directory Creation

Usage: $ mkdir <directory>

Example:

1, $ mkdir Test001

Create a "Test001" directory under the current directory

2, $mkdir test001/test002

Create the directory "test001/test002" under the current directory, and generate the appropriate directory if the directory "test001/test002" does not exist.

3. If a file (or folder) named Test001 is present in the current directory, the $ mkdir Test001 command cannot be completed.

Second, learn to use the terminal into a directory

Usage: CD Path

Example:

1. A directory CD directory name under the current directory

2. A directory CD full path not in the current directory

3. Return to the parent directory CD.

Third, back to terminal, use the command to see the new file, the contents of the file list

Usage: get-content [-path] <String[]> [-readcount<int6 ...

Example: Get-content text001.txt

Stupid way to learn Python (exercise 0)

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.