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.