24

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

1
  • 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, 2022 at 6:21

2 Answers 2

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.

3
  • 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. May 19, 2019 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, 2020 at 1:45
  • In my case I had to restart the computer before it applied the change
    – spencer.sm
    Oct 3, 2022 at 18:20
12

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

1

Not the answer you're looking for? Browse other questions tagged .