software:linux:usefullcommands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:linux:usefullcommands [2015/05/28 04:34] – superwizard | software: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 | ||
+ | | ||
+ | \* F1 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== 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, | ||
+ | |||
+ | ip link set DEVICE up or ip link set DEVICE down | ||
+ | |||
+ | From < | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ====== command line to list dns servers used by my system ====== | ||
+ | |||
+ | From: https:// | ||
+ | |||
+ | < | ||
+ | Ubuntu >= 15 | ||
+ | |||
+ | nmcli device show < | ||
+ | |||
+ | Ubuntu <= 14 | ||
+ | |||
+ | nmcli dev list iface < | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== sysbench ====== | ||
+ | |||
+ | From: https:// | ||
+ | |||
+ | < | ||
+ | 2 CPU Benchmark | ||
+ | 3 File IO Benchmark | ||
+ | 4 MySQL Benchmark | ||
+ | </ | ||
+ | |||
+ | ====== How To Run Gedit And Nautilus As Root With pkexec Instead Of gksu ====== | ||
+ | |||
+ | From: http:// | ||
+ | |||
+ | < | ||
+ | The recommended replacement for gksu is pkexec. Applications like Synaptic, Ubuntu Software Center, | ||
+ | Software & Updates and others use it for some time but what if you want to use pkexec with applications | ||
+ | like Gedit or Nautilus? | ||
+ | </ | ||
+ | |||
+ | ====== list of hardware ====== | ||
+ | |||
+ | From: http:// | ||
+ | |||
+ | < | ||
+ | ubuntu | ||
+ | lshw | ||
+ | |||
+ | Other commands | ||
+ | dimdecode | ||
+ | lspci | ||
+ | |||
+ | </ | ||
+ | ====== Find Out BIOS Version Using a Command Line Option ====== | ||
+ | |||
+ | From: https:// | ||
+ | |||
+ | |||
+ | < | ||
+ | sudo dmidecode -s bios-version | ||
+ | dmidecode | less | ||
+ | </ | ||
+ | |||
+ | |||
====== Linux Force fsck on the Next Reboot or Boot Sequence ====== | ====== Linux Force fsck on the Next Reboot or Boot Sequence ====== | ||
software/linux/usefullcommands.1432787687.txt.gz · Last modified: 2015/05/28 04:34 by superwizard