How to use linux commands

angryTom
angryTomOriginal
2019-11-07 10:07:333233browse

How to use linux commands

How to use Linux commands

Tips for learning terminal commands:

● Not required Memorize common commands by rote. If you use them more, you will naturally remember them

● Don’t try to learn all the commands at once. Some commands are very uncommon. If you encounter them temporarily, you can use Baidu temporarily

● To view the usage of a command, you can use the man command, for example: man ls

##serial numbercommand Corresponding Englishfunction##010203040506##07clearclearClear the screen (shortcut key ctrl l)Tips
ls list View current Contents under the folder
pwd print wrok directory View the current folder
cd [directory name] change directory Switch folder
touch [file name] touch If the file does not exist, create a new file
mkdir [Directory name] make directory Create directory
rm [File name] remove Delete the specified file name
● ctrl shift = Enlarge the font display of the terminal window

● ctrl - Reduce the font size of the terminal window Display

Autocomplete

After typing out the first few letters of the file/directory/command, press the tab key. If there is no ambiguity in the input, the system will automatically complete if there are other file/directory/command, press the tab key again, the system will prompt you for possible commands

Tips

● Press the up/down cursor keys to go back and forth between previously used commands Switch

● If you want to exit the selection and do not want to execute the currently selected command, you can press ctrl c

Recommended:

Linux Getting Started

The above is the detailed content of How to use linux commands. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn