2024-07-03
Vim Learnings
Keybindings
Put command:
p
: put/paste the deleted text, after the text cursor
Replace Command:
r<character>
: replace command, for example the wordtypod
whereo
has to be replaced withe
to make ittyped
, move the cursor to the start of the character to be placed(until o) and typere
to replaceo
withe
.
Change Command: delete all the characters from the cursor till the end of the word.
ce
:VNKLO
, move the cursor to the right ofV
and inputce
,which deletes all the characters till the end, and type in the required characters.
Internet Protocol
IPV4
32bit integers,represented in 4 numbers separated by .
and the numbers are ranging from 0-255.
192.168.1.1
: example of IPV4 address.
Drawbacks:
- Limited Address space
- Complex configuration: IPv4 requires mannual configuration or DHCP to assign address.
- Fragmentation: IPv4 allows to fragment packets,chances of packets getting lost.
IPV6
To support increased use of computer networks, internet enabled devices, ipv6 was invented.
- Enhanced packet header for efficient routing.
- Data security through IPSec header field.
Ipv6 address representation as x:x:x:x:x:x:x:x
,where x is the hexadecimal values of eight 16digit pieces.
Ipv6 addresses ranges from:
0000:0000:0000:0000:0000:0000:0000:0000
to ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
Shorthand formats of IPV6 addresses.
-
Omit leading zeros Specify IPv6 addresses by omitting leading zeros. For example, IPv6 address 1050:0000:0000:0000:0005:0600:300c:326b can be written as 1050:0:0:0:5:600:300c:326b.
-
Double colon Specify IPv6 addresses by using double colons (::) in place of a series of zeros. For example, IPv6 address ff06:0:0:0:0:0:0:c3 can be written as ff06::c3. Double colons can be used only once in an IP address.