Ask Your Question

nmcli only lists current connection

asked 2018-10-05 01:34:20 -0500

mb3 gravatar image

updated 2018-10-05 01:35:23 -0500

I am running Fedora 28 with the i3 window manager; thus, I need to use nmcli or some terminal-based way for connecting to wifi. I heard about nmcli, so I tried it. The problem is that when I try to run

nmcli device wifi list

I am only shown the wifi network I am currently connected to. It does not display any other if they don't exist. Any tips on what might be going on? General tips on using nmcli are also welcome.

edit retag flag offensive close merge delete



@mb3 , what about nmcli connection show??? -> NetworkManager, -> network-connections-using-nmcli-tool

hhlp gravatar imagehhlp ( 2018-10-05 05:44:40 -0500 )edit

It works for me, I can see other APs nearby. There shouls be an option for doing a scanning. Try that first. man nmcli.

fcomida gravatar imagefcomida ( 2018-10-05 07:29:39 -0500 )edit

@hhlp Those just show the wifi networks I have connected to in the past. It does not show new ones.

mb3 gravatar imagemb3 ( 2018-10-06 02:36:02 -0500 )edit

@fcomida thanks! The rescan worked!

mb3 gravatar imagemb3 ( 2018-10-06 02:37:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-06 02:38:28 -0500

mb3 gravatar image

As stated by @fcomida in the comments, I just rescanned and that did the trick.

nmcli device wifi rescan

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-10-05 01:34:20 -0500

Seen: 122 times

Last updated: Oct 06 '18