I noticed i couldn't do mkdir after trying to install github. so i navigated the forums for a solution. I believed i messed it up. i tried to trash the apple.Terminal.plist, but that didn't work. i have my directories messed up and i may have deleted some important stuff. please help
I tried this export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin" for a temporary use of mkdir and what not
but i think i did something really bad when i tried rm ~/.bash_profile; touch ~/.bash_profile; echo 'export PATH=$PATH:/(name of some important file that i forget)>> ~/.bash_profile
:~[102] > export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
:~[104] > cat ~/.profile
cat: /Users/mycomp/.profile: No such file or directory
:~[105] > ~/.bashrc file
-bash: /Users/mycomp/.bashrc: No such file or directory
:~[106] > /root/.bashrc
-bash: /root/.bashrc: No such file or directory
:~[107] > /root/.profile
-bash: /root/.profile: No such file or directory
:~[108] > ~/.profile
-bash: /Users/mycomp/.profile: No such file or directory
:~[109] > /etc/profile
-bash: /etc/profile: Permission denied
:~[110] > /etc/bash.bashrc
-bash: /etc/bash.bashrc: No such file or directory
:~[111] > echo $SHELL; echo $PATH; which dirname basename
/bin/bash
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
/usr/bin/dirname
/usr/bin/basename
I tried this export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin" for a temporary use of mkdir and what not
but i think i did something really bad when i tried rm ~/.bash_profile; touch ~/.bash_profile; echo 'export PATH=$PATH:/(name of some important file that i forget)>> ~/.bash_profile
:~[102] > export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
:~[104] > cat ~/.profile
cat: /Users/mycomp/.profile: No such file or directory
:~[105] > ~/.bashrc file
-bash: /Users/mycomp/.bashrc: No such file or directory
:~[106] > /root/.bashrc
-bash: /root/.bashrc: No such file or directory
:~[107] > /root/.profile
-bash: /root/.profile: No such file or directory
:~[108] > ~/.profile
-bash: /Users/mycomp/.profile: No such file or directory
:~[109] > /etc/profile
-bash: /etc/profile: Permission denied
:~[110] > /etc/bash.bashrc
-bash: /etc/bash.bashrc: No such file or directory
:~[111] > echo $SHELL; echo $PATH; which dirname basename
/bin/bash
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
/usr/bin/dirname
/usr/bin/basename