The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 9,957β€…    Votes:  4β€…
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1081484
Title: Formatting Ubuntu 18.04
ID: /2018/10/06/Formatting-Ubuntu-18.04
Created: October 6, 2018
Upload: April 8, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


You may not have to reinstall. First thing is to ascertain what you did to your bash and if it was system wide or just for your user ID.

Create a new user ID and see if it works normally. If so there is no damage done to 18.04 just for your old user ID.

Ubuntu keeps a β€œskeleton” of most configurations that get copied to when a new user ID is created. For .bashrc it is in /etc/skel/.bashrc:

$ llocate .bashrc
ACCESS      OWNER  GROUP  SIZE  MODIFIED      NAME (updatdb last ran: 2018-10-06 10:30:06)
-rw-r--r--  root   root   2188  Aug 31  2015  /etc/bash.bashrc
-rw-r--r--  root   root   3771  Aug 31  2015  /etc/skel/.bashrc
-rw-r--r--  rick   rick   7522  Sep 30 10:10  /home/rick/.bashrc
-rw-r--r--  rick   rick   7492  Sep 30 10:09  /home/rick/.bashrc~

If you modified .bashrc and damaged it there may be a backup called .bashrc~ which you can copy over top.

⇧ How to add /usr/bin to path after I mistakenly removed it (sudo and nano are no longer in path) How to determine which python modules were installed with `pip` and which with `apt`?  β‡©