Linux Video Learning 3 (shell and Network)

Source: Internet
Author: User

1.shell of learning.

There are three types of shells:/bin/sh,/bin/csh,/bin/ksh.

See what kind of shell is currently in use: Command env (displays the environment variables for the current operating system).

Change the shell type: chsh-s/bin/csh

Shell command Completion function: Tab key. Two times the TAB key can complete the command, once the TAB key can fill the full file name.

Man commands: Man command. You can display the command's usage

History command: View historical commands. History 5: Shows the 5 most recently used commands. 5: Execute the historical command numbered 5. LS: The last command to start with LS.

2.TCP/IP protocol.

The computer communicates directly through the TCP/IP protocol.

The TCP/IP protocol is a protocol group that contains many protocols that are the basis of UNIX communication.

OSI Protocol: Seven layer physical layer (physical), Data link layer (link), Network layer (IP), Transport layer (transport), Session layer (sessions), Presentation layer (presention), Application layer (APPLI)

TCP/IP protocol: four-layer link layer (network interface layer), network layer, Transport layer, application layer.

TCP/IP Detailed three volumes

IP Address: Each computer and router on the Internet has an IP address, including the network number and host number. All IP addresses are 32 bits.

Classification of IP: five classes.

Class A: 0+ 7-bit network number + host number 1.0.0.0~127.255.255.255

Class B: 10+14 bit network number + host number 128.0.0.0~191.255.255.255

Class C: 110+21 bit network number + host number 192.0.0.0~223.256.256.256

Class D: 1110 + multi-demand delivery address 224.0.0.0~239.255.255.255

Class E: 11110 reserved for future use 240.0.0.0~247.255.255.255

Ping www.baidu.com/ping IP address: Test the connectivity of two computers

Ipconfig display the IP information of this machine under window

Ifconfig View the IP information of this machine under Linux and UNIX

Tracert www.baidu.com Show routing information for the ping process

Special IP:

1. LAN Broadcast: 32 x 1.

2. Subnet Broadcast: Network number + host number is all 1

3. Test circuit: 127 + Any value (remove all 0 full 1)

Routing Transport: the division of subnets.

Linux Network Environment Configuration: (Three kinds)

1.root User Login. Run the Setup command network configuration,dynamic ip/static IP.

Run the/ect/rc.d/init.d/network restart to make the NIC settings effective.

Linux Video Learning 3 (shell and network)

Related Article

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.