Linux Common commands-network commands

Source: Internet
Author: User

Network commands

Command name: Write

Command path:/usr/bin/write

Execute Permissions: All Users

Syntax: Write < user name >

Function Description: Send message to Online user to Ctrl+d save End Example: Write linzhiling

Command name: Wall

Command English original: Write all

Command path:/usr/bin/wall

Execute Permissions: All Users

Syntax: wall [message]

Function Description: Send broadcast message example: Wall He is a honest man!

Command name: Ping

Command path:/bin/ping

Execute Permissions: All Users

Syntax: ping [options] IP address-C Specify the number of times to send

Function Description: Test network connectivity Example: 192.168.1.1

Command name: ifconfig

Command English original meaning: interface configure

Command path:/sbin/ifconfig

Execute permissions: Root

Syntax: ifconfig NIC name IP address

Function Description: View and set NIC Information example: Ifconfig eth0 192.168.1.1

Command name: Mail

Command path:/bin/mail

Execute Permissions: All Users

Syntax: Mail [user name]

Function Description: View Send email example: Mail root

Command name: Last

Command path:/usr/bin/last

Execute Permissions: All Users

Syntax: Last

Function Description: Lists the current and past logged in system User Information example: last

Command name: Lastlog

Command path:/usr/bin/lastlog

Execute Permissions: All Users

Syntax: Lastlog

Function Description: Check the last login time for a specific user example: Lastlog lastlog-u 502 (502 for user ID)

Command name: traceroute

Command path:/bin/traceroute

Execute Permissions: All Users

Syntax: traceroute

Function Description: Displays the path between the packets to the host traceroute www.baidu.com

Command name: netstat

Command path:/bin/netstat

Execute Permissions: All Users

Syntax: netstat [options]-T:TCP protocol;-U:UDP protocol;-L: Listener;-R: Route;-N: Displays IP address and port number

Function Description: Display network-related information example:netstat-tuln View the port of native listening;nestata-an View all network connections on this computer;nestat-rn View native routing table

Restart Network Service Network restart

Command name: Setup

Command path:/usr/bin/setup

Execute permissions: Root

Syntax: Setup

Function Description: Configure Network example: Setup

Command name: Mount (for mounting mobile devices, etc.)

Command path:/bin/mount

Execute Permissions: All Users

Syntax: Mount [-t file system] device file name mount point example: Mount-t iso9660/dev/sr0/mnt/cdrom

Unload mount point : umount/dev/sr0

Linux Common commands-network commands

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.