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, NIO disclosed in its prospectus that th...
If you think of an APP as a car, then the operato...
Recently, I saw an optimizer complain in a group:...
Hey, look up, I'm here! Hello everyone, I am ...
Possible reasons why a woman has not had her peri...
Since 2012, IPTV has experienced the "wild g...
According to the latest forecast report from mark...
Source: Dr. Curious The cover image and the images...
To this day, chronic problems such as APPs excess...
Although Intel is a leader in processor innovatio...
Recently, many hospitals in Beijing, Shanghai, Ch...
Li Xiang, founder of Ideal Auto, recently pointed...
In October 2019, Pinduoduo's market value sur...
Among all kinds of minerals, those named in the f...
In the previous article "WeChat Mini Program...