Social

How to check MTU size in Linux

In networking, maximum transmission unit (MTU) is a measurement representing the largest data packet that a network-connected device will accept. Imagine it as being like a height limit for freeway underpasses or tunnels: Cars and trucks that exceed the height limit cannot fit through, just as packets that exceed the MTU of a network cannot pass through that network.

However, unlike cars and trucks, data packets that exceed MTU are broken up into smaller pieces so that they can fit through. This process is called fragmentation. Fragmented packets are reassembled once they reach their destination. MTU is measured in bytes — a “byte” is equal to 8 bits of information, meaning 8 ones and zeroes. 1,500 bytes is the maximum MTU size.

It is important to check MTU size because the wrong setting can lead to poor network performance. A too-large MTU can cause fragmentation, which can lead to lower throughput and higher latency. A too-small MTU can also cause problems, such as dropped packets and retransmissions.

The best practice for MTU size in Linux is to set the MTU size to the same size as the largest packet size that your network can handle. This will help to ensure that packets are not dropped due to being too large.

check MTU size with ifconfig Command in Linux

The easiest way to check MTU size in Linux is using the ifconfig command. Open the terminal and run ifconfig interface name |grep mtu. This command will list the configuration of a network interface including MTU size.

Replace [interface] with the name of your network interface. For example, if you want to view the MTU size of the eth0 interface, you would use the following command: ifconfig eth0 | grep mtu

To change the MTU size of a network interface, use the following command: ifconfig [interface] mtu [size]

Replace [interface] with the name of your network interface and [size] with the desired MTU size. For example, to change the MTU size of the eth0 interface to 1400 bytes, you would use the following command: ifconfig eth0 mtu 1400

check MTU size with ip Command in Linux

The ip command can be used to show or set various network interface parameters. To view the MTU size of a network interface, use the following command: ip link show dev [interface]

Replace [interface] with the name of your network interface. For example, if you want to view the MTU size of the eth0 interface, you would use the following command: ip link show dev eth0

The output of this command will look something like this:
eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff

As you can see, the MTU size is 1500 bytes for this interface.To change the MTU size of a network interface, use the following command: ip link set dev [interface] mtu [size]

For example, to change the MTU size of the eth0 interface to 1400 bytes, you would use the following command: ip link set dev eth0 mtu 1400.

[mai mult...]

Ce inseamna BIOS, CMOS si UEFI?

BIOS înseamnă sistemul de intrare / ieșire. BIOS-ul este un soft denumit și firmware care este încorporat în placa de bază și care inițializează hardware-ul computerului pe măsură ce computerul este pornit. După ce inițializează hardware-ul, caută un dispozitiv de boot, cum ar fi o unitate optică sau o unitate de stocare, pentru a porni software-ul, cum ar fi un sistem de operare. Așadar, când porniți computerul, acesta execută un auto-test la pornire sau POST. Acest POST (power on self test) este rulat de BIOS.

Bateria CMOS

[mai mult...]

How to install duf on Debian/Ubuntu

duf means Disk Usage/Free utility. It works on Linux and Unix-like systems, including Windows. It comes with the following features:

  • Easy to use
  • Colorful display
  • Adjust height and width as per your terminal resize movement
  • Sorting data as per our need
  • Filters and groups
  • JSON outputs and more

install duf on Ubuntu 20.04

Installing duf

Make sure you have a working Go environment, including a Golang compiler installed for source code installation. Open the terminal app and then use the git command:
git clone https://github.com/muesli/duf.git
cd duf
go build

How to install duf on Debian/Ubuntu Linux (pre built packages)

Use the wget command or curl command to download file:
wget https://github.com/muesli/duf/releases/download/v0.8.1/checksums.txt
wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb
sha256sum --ignore-missing -c checksums.txt

Checksum confirmation:

duf_0.8.1_linux_amd64.deb: OK

Install .deb Packages on your Debian or Ubuntu box:
sudo apt install ./duf_0.8.1_linux_amd64.deb

Example:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'duf' instead of './duf_0.8.1_linux_amd64.deb'
The following NEW packages will be installed:
  duf
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1031 kB of archives.
After this operation, 2486 kB of additional disk space will be used.
Get:1 /tmp/duf_0.8.1_linux_amd64.deb duf amd64 0.8.1 [1031 kB]
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package duf.
(Reading database ... 15411 files and directories currently installed.)
Preparing to unpack /tmp/duf_0.8.1_linux_amd64.deb ...
Unpacking duf (0.8.1) ...
Setting up duf (0.8.1) ...
[mai mult...]