24

Is there a file or something that holds the data for the internet connections?

Brett Leaver
  • 241
  • 1
  • 2
  • 3
  • 2
    Says it's a duplicate of "How to connect and disconnect to a network manually in terminal?" but not really: this is Ubuntu, there ought to be a way to do it without a terminal. – Arnaud Sep 17 '22 at 06:21

2 Answers2

35

In Ubuntu, take a look at the following folder: /etc/NetworkManager/system-connections/.

The files in here should contain the network connections' settings Network Manager has saved: network card used to connect to the network, SSID name, wireless key/passphrase, IP configuration method, etc.

Of course, the files can only be read as root. Using your normal account, you cannot open the files and read the settings.

The files cannot be deleted by another user than root. To delete a settings file, an administrator would execute the following commands in a terminal:

cd /etc/NetworkManager/system-connections
rm <filename>

where <filename> would be replaced by the actual filename. To delete all the settings files in one time, an administrator would use the * joker as the filename.

Alexandre P.
  • 1,031
  • 2
    They need to make this better. It should be easier. some one should make it a right click "forget network". Why is this not a thing? i sudo nano this file and it's empty. this is so frustrating. – Patrick W. McMahon May 19 '19 at 14:37
  • 2
    @PatrickW.McMahon get used to do thing with the terminal. It will help you get over your frustation and you'll learn a valuable skill – PythoNic Dec 12 '20 at 01:45
  • In my case I had to restart the computer before it applied the change – spencer.sm Oct 03 '22 at 18:20
12

You can click on the Network Icon --> Edit Connections, this will let you delete previous Wireless or Wired configurations.

Kai
  • 121
  • 2