User Tools

Site Tools


software:linux:usefullcommands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:linux:usefullcommands [2018/08/06 21:40] superwizardsoftware:linux:usefullcommands [2022/09/10 17:05] (current) – [command-line client for NetworkManager] superwizard
Line 1: Line 1:
 +
 +====== command-line client for NetworkManager ======
 +
 +nmcli is a command-line client for NetworkManager. It allows controlling NetworkManager and reporting its status. For more information please refer to nmcli(1) manual page.
 +
 +The purpose of this manual page is to provide you with various examples and usage scenarios of nmcli.
 +
 +$ nmcli device wifi list
 +
 +  \*  SSID               MODE    CHAN  RATE       SIGNAL  BARS  SECURITY
 +     netdatacomm_local  Infra       54 Mbit/ 37      ▂▄__  WEP
 +  \*  F1                 Infra   11    54 Mbit/ 98      ▂▄▆█  WPA1
 +     LoremCorp          Infra       54 Mbit/ 62      ▂▄▆_  WPA2 802.1X
 +     Internet           Infra       54 Mbit/ 29      ▂___  WPA1
 +     HPB110a.F2672A     Ad-Hoc  6     54 Mbit/ 22      ▂___  --
 +     Jozinet            Infra       54 Mbit/ 19      ▂___  WEP
 +     VOIP               Infra       54 Mbit/ 20      ▂___  WEP
 +     MARTINA            Infra       54 Mbit/ 32      ▂▄__  WPA2
 +     N24PU1             Infra       11 Mbit/ 22      ▂___  --
 +     alfa               Infra       54 Mbit/ 67      ▂▄▆_  WPA2
 +     bertnet            Infra       54 Mbit/ 20      ▂___  WPA1 WPA2
 +
 +https://developer-old.gnome.org/NetworkManager/stable/nmcli-examples.html#:~:text=nmcli%20is%20a%20command%2Dline,and%20usage%20scenarios%20of%20nmcli.
 +
 +
 +
 +
 +====== ifconfig has been largely replaced by the ip command ======
 +
 +<WRAP center round box >
 +2021-01-03
 +
 +Following some improvements in the kernel and the gradual move to driving network things via netlink; ifconfig has been largely replaced by the ip command.
 +Running just ip yields the following:
 +
 +I understand this may look complicated to some people, but the jist of it is to understand that with ip, you interact with objects, and apply some kind of function to it. For example:
 +
 +    ip address show
 +
 +This is the main command that would be used in place of ifconfig. It will just display the IP addresses assigned to all interfaces. To be precise, it will show you the layer 3 details the interface: the IPv4 and IPv6 addresses, whether it is up, what are the different properties related to the addresses…
 +
 +Another command will give you details about the layer 2 properties of the interface: its MAC address (ethernet address), etc; even if it is shown by ip address:
 +
 +    ip link show
 +
 +Furthermore, you can set devices up or down (similar to ifconfig eth0 up or ifconfig eth0 down) simply by using:
 +
 +    ip link set DEVICE up or ip link set DEVICE down
 +
 +From <https://ubuntu.com/blog/if-youre-still-using-ifconfig-youre-living-in-the-past> 
 +
 +</WRAP>
 +
 +
 ====== command line to list dns servers used by my system ====== ====== command line to list dns servers used by my system ======
  
software/linux/usefullcommands.1533591606.txt.gz · Last modified: 2018/08/06 21:40 by superwizard