Ask Your Question
1

nmcli only lists current connection

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

mb3 gravatar image

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

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 networks...as 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

Comments

1

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

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

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 -0600 )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 -0600 )edit

@fcomida thanks! The rescan worked!

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

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 82 times

Last updated: Oct 06 '18