Python-based basic linux commands, pythonlinux

Source: Internet
Author: User

Python-based basic linux commands, pythonlinux
# Pwd viewing the current directory/root directory is equivalent to windows 'computer '# cd (change directory) change the directory # ls view the file ls file name under the current directory view the file directory # ls-l list the details of the current directory (the first column of the letter is d is directory-Is directory) # cd .. back to the upper-level directory cd .. /.. /return multiple directories # ls-lh humanized conversion file size (converted from minimum bite bytes to size) h = human # ls-a shows the hidden file # vim file name create a file press I to enter the insert mode Press esc, then press shift +:, then enter wq, then press enter, exit and save. # Edit the vim file name again # view the content of the cat file name (until the end) # view the file name more slowly, and press ENTER for a line to view the space page. # Vim. create a hidden file # mkdir directory name create a directory # mv file name directory move the file to the directory # mv file name 1 overwrite the file # mkdir-p directory name/directory name recursively create directory #. indicates the current directory # tree file name. The tree structure under the file is displayed. You only need to enter the yum install tree-y command on the terminal to download and install the tree.

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.