I was entering command to solve permissions denied. So i used nano made some edit in a file that I don't remember due to which everytime I open bash it displays ^X: command not found. Please help how to correct this?
One of your shell's startup files contains a command that is not found. The error message indicates that the command is
aliases.. Since this looks like the end of a sentence of text (not shell code) I'm assuming this is due to accidentally deleting a comment character (
#) on some line in the file.
Have a look at either
~/.bashrc or whatever other shell startup file that you have recently edited and look for the string
aliases. in them, this may help you pinpoint the issue.