Get the local IP address method through Shell, directly on the code:
IP=`ifconfig |
Grep 'inet addr:' |
Grep -v '127.0.0.1' |
Cut -d: -f2 |
Awk '{ print $1}'`;echo $IP;
If you want to get the first IP address, you can add the parameter -m 1 to grep ‘inet addr:’
What is the boot process for Linux? How to complete the system startup through grub boot? These pro
In todays increasingly prominent network security issues, how to ensure the security of Ubuntu syste
With the rapid development of the Internet, more and more people use computers to obtain information
First, the Linux system startup process About the Linux system startup process we can divide into th
Linux switch path usage guide guide
How to modify ssh default 22 port number
Linux shell flow control (condition if, loop [for, while], select [case] statement instance
The difference between wire and reg in verilog HDL
Data transfer on the link layer of the linux protocol stack (add interface to the bridge (4))
PC and NB running the lowest processing of modern desktop Linux
USB image acquisition driver installation under Linux operating system
How to modify the computer name in Linux
TCP server and client implementation under Linux tutorial
Docker private repository creation and mirror push
Graphical tutorial for adding language packs to Win8.1 system
Solve the method of StarCraft in Windows7 aero under the screen! Inadvertently found
Solve the Windows 7 Ultimate system U master production u disk boot disk always fails to have a coup
How to solve the win7 command prompt can not open the fault
Open Windows To Go in the Win8 app store to take advantage of Group Policy
How to adjust win8 resolution?
Linux installation vagrant process encountered problems
Retrieve the input method icon in the lower right corner of Windows7