85% of businesses are basically using linux!. Introduce some of his orders today!

Source: Internet
Author: User
Tags touch command

Today we'll lay the groundwork for writing Python on Linux systems and introduce a few of the Linux commands we'll use.

1. ls command

ls command format:

ls [options] [file or directory]

Common options are:

-a displays all files, including hidden files (in dots ".") Files that begin with)

Python is easy to learn! Small series have a communication, mutual ask each other, resource sharing exchange Learning base, if you are also a Python learner or Daniel welcome you to!?:548+377+875! Learn together to progress together!

The leftmost set of data, which is composed of several characters of drexr-, represents the file permissions. d The directory of the beginning of the presentation;-The beginning of the ordinary file

2. CD command

CD command format:

CD [options] [parameters]

The file location will open the directory directly after the CD

We opened the video directory, using LS to see that there is a file called PYTHONVIP.

After CD Add ~ will return home directory

We first use the command CD in the '/usr/share/wordlists ' directory: Return to the top level, to the/usr/share directory

3. Touch command

Touch is used to build files, and this is simple. For example, we create a new call python.py file, directly in the terminal input touch python.py and then enter the good.

The first LS does not python.py this file, the second LS will have python.py this file.

4. mkdir command

mkdir English is the use of make Directory,mkdir command and the same as the Touch command, the direct command after the directory name can be, create a new directory called Woaipython.

As for the other copies of the Cut command or the graphical interface to be friendly, here is not a repeat.

Learn a little every day.

85% of businesses are basically using linux!. Introduce some of his orders today!

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.