Network
The ethtool command
Shows and adjusts a network card's parameters: speed, duplex and whether the cable is connected.
Syntax
ethtool interfazMost useful options
-sChanges settings such as speedCopy-ready examples
$ ethtool eth0Link statusYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Changing speed on the fly can cut the connection if the other end does not accept it.
FAQ
How do I know if the cable is connected?
Look at the line 'Link detected: yes'.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course