Common Linux commands and Example 4: netstat, ping, ifconfig

Source: Internet
Author: User
Tags network function domain name server

Name: netstat

Function Description:Displays the network status.
Syntax:Netstat[-Accefghilmnnoprstuvvwx] [-A <network type>] [-- IP]
Note:The netstat command can be used to show you the network conditions of the entire Linux system.
Parameters:
  -A or -- all  Displays the sockets in all connections.
  -A <network type> or -- <network type>  Lists the related addresses of a network connection.
  -C or -- continuous  Continuously list network statuses.
  -C or -- Cache  Displays the cache information of the vro configuration.
  -E or -- extend  Displays other network-related information.
  -F or -- fib  Displays fib.
  -G or -- Groups  Lists members of multiple broadcast groups.
  -H or -- Help  Online Help.
  -I or -- interfaces  Display the network interface information form.
  -L or -- listening  Displays the socket of the monitored server.
  -M or -- Masquerade  Displays disguised network connections.
  -N or -- numeric  Directly use the IP address instead of the Domain Name Server.
  -N or -- Netlink or -- symbolic  Display the symbolic connection name of the network hardware peripheral device.
  -O or -- timers  Display the timer.
  -P or -- Programs  The program identification code and program name using socket are displayed.
  -R or -- route  Show RoutingTable.
  -S or -- statistice  Displays a statistical table of network work information.
  -T or -- TCP  Displays the connection status of the TCP transmission protocol.
  -U or -- UDP  Displays the connection status of the UDP transmission protocol.
  -V or -- verbose  Displays the instruction execution process.
  -V or -- version  Displays version information.
  -W or -- raw  Displays the raw transmission protocol connection status.
  -X or -- Unix  The effect of this parameter and the specified "-The UNIX parameters are the same.
  -- IP or -- inet  The effect of this parameter and the specified "-The inet parameter is the same.

 

Name: Ping

Function Description:Detects hosts.
Syntax:Ping[-Dfnqrrv] [-C <Number of completions>] [-I <interval seconds>] [-I <Network Interface>] [-L <preload>] [-P <template style>] [-S <packet size>] [-T <survival value>] [host name or IP address
Note:When the ping command is executed, the ICMP transmission protocol is used to send the request response message. If the network function of the remote host is normal, the system returns the response message, so that the host operates normally.
Parameters:
  -D  Use the so_debug function of socket.
  -C <Number of completions>  Set the number of requests to respond.
  -F  Limit detection.
  -I <interval seconds>  Specifies the interval between sending and receiving information.
  -I <Network Interface>  Sends data packets using the specified network interface.
  -L <preload>  Sets the data packet that is sent before the request is sent.
  -N  Only the numeric value is output.
  -P <template style>  Set the pattern for filling data packets.
  -Q  The command execution process is not displayed, except for the information at the beginning and end.
  -R  Ignore normal RoutingTable to directly send data packets to the remote host.
  -R  Record the routing process.
  -S <packet size>  Set the data packet size.
  -T <survival value>  Set the TTL value of the survival value.
  -V  The execution process of the command is displayed in detail.

Name: ifconfig

Function Description:Display or set network devices.
Syntax:Ifconfig[Network device] [downUp-Allmulti-ARP-Promisc] [add <address>] [del <address>] [<HW <network device type> Note:Ifconfig can set the status of the network device or display the current settings.

Parameters:
  Add <address>  Set the IPv6 IP address of the network device.
  Del <address>  Delete the IPv6 IP address of a network device.
  Down  Disable the specified network device.
  <HW <network device type>   Set the network device type and hardware address.
  Io_addr <I/O address>  Set the I/O address of the network device.
  IRQ <IRQ address>  Set the IRQ of the network device.
  Media <network media type>  Set the media type of the network device.
  Mem_start <memory address>  Set the starting address of the network device in the main memory.
  Metric <number>  Specify the number of data packets to be transferred when calculating the number of data packets.
  MTU <byte>  Set the MTU of the network device.
  Netmask <subnet mask>  Set the subnet mask of the network device.
  Tunnel <address>  Create a tunnel communication address between IPv4 and IPv6.
  Up  Start the specified network device.
  -Broadcast <address>  Data packets sent to the specified address are processed as broadcast data packets.
  -Pointopoint <address>  Establish a direct connection with the network device of the specified address. This mode has the confidentiality function.
  -Promisc  Disable or start the promiscuous mode of the specified network device.
  [IP address]  The IP address of the specified network device.
  [Network device]  Name of the specified network device

Name: Telnet

Function Description:Remote login.
Syntax:Telnet[-8 acdeffklrx] [-B Note:Execute the Telnet command to start the terminal job and log on to the remote host.
Parameters:
  -8  8-character data is allowed, including input and output.
  -  Try to automatically log on to the remote system.
  -B   Use an alias to specify the name of the remote host.
  -C  Do not read the. telnetrc file in the user's exclusive directory.
  -D  Start the troubleshooting mode.
  -E <Escape Character>  Set escape characters.
  -E  Filter out the escape characters.
  -F  The effect of this parameter is the same as that of the specified "-F" parameter.
  -F  Use KerberosDuring v5 authentication, you can add this parameter to upload the authentication data of the local host to the remote host.
  -K <Domain Name>  When Kerberos authentication is used, add this parameter to allow the remote host to use the specified domain name instead of the domain name of the host.
  -K  The remote host is not automatically logged on.
  -L <User Name>  Name of the user to log on to the remote host.
  -L  8-character data can be output.
  -N <Record File>  Specify the file record information.
  -R  Use a user interface similar to the rlogin command.
  -S <service type>  Set the IP address required for the telnet connectionToS information.
  -X  If the host supports data encryption, use it.
  -X <authentication form>  Disable the specified authentication form.

Name: httpd

Function Description:ApacheHTTP server program.
Syntax:Httpd[-Hllstvvx] [-C Note:Httpd is ApacheHTTP server program. Directly execute a program to start the server service.
Parameters:
  -C   Before reading the configuration file, run the command in the option.
  -C   After reading the configuration file, execute the command in the option.
  -D <server root directory>  Specify the root directory of the server.
  -D <set file parameters>  Specify the parameters for passing in the configuration file.
  -F <set File>  Specify the configuration file.
  -H  Show Help.
  -L  Displays the modules contained in the server compilation process.
  -L  The description of the httpd command is displayed.
  -S  Displays the settings in the configuration file.
  -T  Test whether the syntax of the configuration file is correct.
  -V  Displays version information.
  -V  Displays the version information and environment.
  -X  Start the server as a single program.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.