Python's basic commands for learning--01linux basics

Source: Internet
Author: User

    • There are two things to know about doing Linux:
      • First know where you are (desktop ...). )
      • Case sensitive
    • PWD: View your current directory
"/" stands for: root directory
    • Cd:
      • CD (change directory) + Space +/: switch to the root directory.
      • CD +a: Switch to the A directory.
      • Cd.. : Switch to the previous level directory
    • ls: View all files in the current directory
      • File color Meaning:
        • White or black: normal file
        • red : Compress files
        • Blue : Catalog file
        • light blue : Link file (soft link)
        • Yellow : Device file (/dev)
        • cyan : Removable file (/bin;/sbin)
        • Pink : Picture file
      • Ls-l: Lists the current directory detail file information. (Default byte representation)
    • First column: D, directory;-: file.
    • LS-LH: A list of humanized display files. Human
    • Ls-a Show hidden files
      • Vim. Test writes a file to create a hidden file (dot, add "." in front of the file.) means to create a hidden file)
    • Create folders, and even empty will account for capacity.
    • Vim Name: Edit file name--Press i/a key to enter insert mode, after writing the file, press ESC, then press shift+ Colon, then enter wq--carriage return, the file is saved and exited.
    • 4 L: New modified file added 4 lines, 131 characters.
    • Cat filename: Viewing the contents of a file
    • More filename: Split-screen view of the contents of the file (space: by page, carriage return by row) is displayed as a percentage.
    • mkdir (make directory) name: Create directory Name
    • MV A/b: Move file A to Folder B (Directory B)
      • The file cannot be moved to a file, MV File1 file2 b/: Two files exist file 1 replaces file 2. That is, the file 2 name does not change, but the content becomes the file in the file.
    • Mkdir-p dir1 dir2 dir3 dir4 dir5:-p recursive creation of directories.
    • Tree dirname: Displays the dirname of the directory
    • Tree: Displays the current directory tree structure (points: represents the current directory)

Python's basic commands for learning--01linux basics

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.