When I open terminal now I get always this error message. Any ideas how to fix this?
mkdir: /Users/me/.bash_sessions: Permission denied touch: /Users/me/.bash_sessions/9F11525D-3E4C-45B5-8FA7-D69A4D2CC5B3.historynew: No such file or directory
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
~/.bash_sessions is a folder used to store the history of past bash sessions. Apparently the permissions are wrong (however this happened), there are several ways to tackle this:
rm -r ~/.bash_sessionsDeletes the whole folder, should get recreated with the next Terminal tab/window you open
sudo chown -R $USER ~/.bash_sessions; chmod 700 ~/.bash_sessionsTries to fix permissions (
sudoonly works if you have an account with admin privileges)