For iOS development, we don’t use many command lines, but there are still some that we need to be familiar with. Recently, I worked with some experts in the company on some things, and there were all kinds of command lines. I was embarrassed that I didn’t know how to use them. In fact, I didn’t know what command lines were. For example, the simplest command of how to check the IP address using the terminal, I even forgot what the command was. So today I am going to learn some common command lines to save myself from embarrassment in the future??
man When we use some programs, we may not know what commands they have. At this time, we can use the man command. Get help for ls
See how many manuals (for different aspects) have the same name
View specific manual
Exit man
help You can tell what help means just by looking at the name. Generally, programs will have this parameter, which will output the simplest and most useful introduction.
cursor
There are no Home, End, Page UP, Page DOWN keys on the keyboard of Apple Mac computers. You can get the same functions by using the Fn key combination: Home key = Fn + left direction, End key = Fn + right direction, Page UP = Fn + up direction, Page DOWN = Fn + down direction Terminate the current program
Tab completion Tab completion is a very useful feature that can be used to automatically complete commands or file names.
After I enter De, I press the Tab key to complete Desktop/, and then press the Tab key twice in succession to view all the directories under Desktop/ cd cd is to find the file according to the path For example, there is a Text file on the desktop
ls
more Generally, when a document is too long, we cannot display it completely on one screen. In this case, we need to use the more command. More displays the content line by line. less Less is similar to more, but less supports scrolling up and down to view the content, while more only supports line-by-line display. Restart Command reboot is the reboot command
Shutdown Command
ping Ping is mainly used to test network connectivity. It sends data packets to the target machine to test whether the two hosts are connected and the delay. Ping is done through the domain name. If the DNS is not set up properly, ping may not be successful. Get network parameters The ifconfig command is used to configure and display the network parameters of the network interface in the Linux kernel. The network card information configured with the ifconfig command will not exist after the network card is restarted and the machine is restarted. If you want to store the above configuration information permanently in the computer, you need to modify the network card configuration file. |
<<: 2017 Mobile Map App Research Report: Which is the best among Amap, Baidu and Tencent?
Recently, the incidence of mycoplasma pneumonia i...
Weibo is a platform with very high user activity,...
LG announced yesterday that it will launch four m...
Xiaomi, which was only founded in 2010, has now g...
The membership system product is a system that in...
In 1899, a Qing Dynasty official named Wang Yiron...
When it comes to who is the greatest director in ...
Ningbo Tea Studio recommends high-end tea SPA in-...
Many people would emphasize that today in the era...
As of press time, LeEco Holdings' public rela...
Author: Huang Yanhong, Huang Xianghong, Duan Yuec...
Expert of this article: Wang Qiuyuan, Beijing Uni...
01 Two advertising people who worked on the brain...
More than 88% of “sea shopping” trademarks are ap...
Windows 10's Wi-FiSense feature has a securit...