Common commands of Ubuntu for IMX6ULL development board (2)

IMX6ULL development board Ubuntu common commands (2)-based on Xunwei-i.MX6ULL Terminator development board
2.5.10 View file content command cat
"cat" is a text output command under the Linux system, usually used to view The contents of the file. The format of the "cat" command is as follows:
cat [options] [file] The
options are described as follows:
-n start from 1, number
the output lines -b number the output lines (except blank lines)
-s when encountering continuous When the two blank lines are merged into one blank line. For
example, if we use the "cat" command to view the contents of the system file "/ etc / hosts", the result is as follows:
<ignore_js_op> 
2.5.11 Network configuration command ifconfig
ifconfig is the configuration and view network status of a commonly used commands can be configured by changing the command ip address, mac address of the card, you can also check
to see current configuration information network, the command format is as follows:
ifconfig interface Options | address
parameters as follows:
interface card name, for example, eth0 etc.
up Start the network card
down Close the network card
add Set the network card IP address to
view the current network card configuration, use the "ifconfig" command, as shown below:
<ignore_js_op> 
In the above figure we can see that the Ubuntu system has two network cards "ens33 "And" lo ", ens33 is the actual network card of the Ubuntu system,
lo is used for loopback testing. We can see that the IP address of ens33 is 192.168.0.20. Next, we use ifconfig to modify the
IP of ens33 to 192.168.0.23. The running result is shown in the following figure:
<ignore_js_op> 
2.5.12 Help command man
Linux provides a rich help manual When we need to check the usage of a certain command, we don't need to search online, we only need to
click this command. man command format:
man [command names]
For example, we want to view the "mkdir" Create Folder use this command, we can enter a terminal "man mkdir", run the results
shown below:
<ignore_js_op> 
by us on FIG. you can see the specific use of the man command, we can press the keyboard's "q" key to exit the man command mode, return
back to the terminal.
2.5.13 reboot system restart command
in front of "2.3.3 Ubuntu system shutdown" shutdown ubuntu chapter we have said, we click the left button shutdown interface can be achieved
now restart Ubuntu system, we can also enter commands via the terminal "reboot ", And then press the Enter button to restart the Ubuntu system, the
operation results are shown in the following figure:
<ignore_js_op> 
2.5.14 System shutdown command poweroff
In the previous" 2.3.3 Ubuntu system shutdown "chapter we talked about the shutdown of ubuntu, we can also Enter the "poweroff" command in the terminal,
Then press the Enter key on the keyboard to shut down the Ubuntu system. The operation result is shown in the following figure:
<ignore_js_op> 
More content: Follow Xunwei Electronics

Guess you like

Origin www.cnblogs.com/liyue3/p/12712447.html