Thanks alot my man i had just bought Macbook and was trying to learn programming . i had changed nano and path while installing mysql watching some random video from youtube not knowing anything. and after i restarted my MAC simple commands would not work and i searched but could not find any good resource on how to fix those problems. Then i found this GOLDEN video thanks alot man
damn it not working my man shows this error: Last login: Mon Dec 26 02:43:38 on ttys000 /etc/zshrc:7: command not found: locale /etc/zshrc_Apple_Terminal:104: command not found: mkdir
@@mariadahbi9911 Last login: Thu Aug 24 14:55:04 on ttys001 /Users/aadi/.zshrc:export:5: not valid in this context: /Library/Java/JavaVirtualMachines/jdk-20.jdk/Contents/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
Thanks a lot sir, I was recently installing mysql and guess what I messed up the environment variables. was hunting for the default path and here I got it. This video is lifesaver ❤
were you facing this after installing mysql server? Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) even after giving right password??? if yes then how to fix this
To make the change permanent, you need to add the export command to your shell’s configuration file. Since you’re using zsh, the configuration file is ~/.zshrc. Here’s how you can add the line: Open Terminal. Type or just copy the whole below line echo 'export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"' >> ~/.zshrc and press Enter. This command appends the export line to the end of the .zshrc file.
At 2:18 as I enter nano ~/.zsh_profile I am getting zsh: command not found: nano and none of the basic commands works even though I have installed all necessary tools. > clear = zsh: command not found: clear > which java = java not found > java -version = zsh: command not found: java > appium -v = zsh: command not found: appium > npm -v = zsh: command not found: npm > node -v = zsh: command not found: node > nano ~/.zshrc = zsh: command not found: nano So far I have watched atleast 100 videos and no luck. Any idea how do I fix this ? Please help!
In 2:23 - 2:28; After Pressing 'y' for yes, TAB Complete appears. and then I pressed the 'Tab' button but that doesn't work for me. What should I do then?
John, thank you for the detailed video. I am sure that it will resolve en issue. But, I am having the issue of not recognizing commands in the recovery mode. The nasty thing is that also the command 'nano' is not recognized. I have temporarily reset the PATH but can't save it. Further even after setting a temp PATH there are no commands found. And strange enough, the shell is 'bash' in recovery whilst I use 'zsh' in working mode.many commands are not found: nano, jl, chsh, etc Having said all that, I don't see any possibility to rest PATH in recovery. Would you pls try to advise? Many thanks in advance, André
@@lesedi44 after u export the path, before closing the terminal type vi ~/.zshrc and check if u have anyother paths exported(coz that was the issue in my case)
@@shreyanstawada9891 yeah you have to add :$PATH in each export line.I added 1 export line without adding $PATH and it caused the issue. Solution: Check your file after temporary fixing PATH issue. run export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" in terminal.Then sudo nano ~/.zshrc. it will open your file in nano editor. check all the export paths carefully. you must have missed $PATH in one of the exports. you should add :$PATH to every export line in this file if missing. save it using ctrl+x and select Y.
First of all thank you they both work...but then when i quit the terminal and open it again i literally have the same issue and have to repeat the steps you provided. Any idea why?
@@mustafizurrahmanshadhin6335I actually got straight. Instead of nano zsh_profile I had to do nano zshrc (something like that, I can’t remember exactly right now. Hopefully you can search and get sorted out based on that 🙏🏿)
you have to do one more step tonAsh vim ~/.zshrc type this line in command and press 'i' then paste that directory line and press ESC then type :wq Hope this will help or for more help reply again thanks
@@mustafizurrahmanshadhin6335 yea bro I got it fixed a couple days ago. The methods in those video didn’t solve it completely. I had to edit the path with “nano ~/.zshrc” this did it permanently for me.
I was trying to install brew on my M2 macbook air, but it seems it didn't like it to my laptop. So I did your steps correctly, but it didn't work as expected. The problem came up on every single terminal I opened, then I did the export command thing you showed us, and then go into the command "nano .zshrc" (no quotes) and hit enter. Then I deleted all the previous lines for homebrew and saved the changes. The problem was fixed finally!. P.S. please consider this is a brand new mac, but this may be helpful if you are programming and you need to delete specific entries into this file.
dude thanks alot i wasted 2 days installing flutter after i reach this error you are a saver and those who still getting the same error when opening a new terminal set the given path on.zshrc file also so copy the same path on both the file .zshrc and zsh_profile i dont which worked but it solved the error for me
i dont know if youre still replying to this video, but every step worked except for saving the path to the profile. it keeps saying cannot open writing: is a directory
@@shxdyshot1933 Check your file after temporary fixing PATH issue. run export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" in terminal.Then sudo nano ~/.zshrc. it will open your file in nano editor. check all the export paths carefully. you must have missed $PATH in one of the export. you should add :$PATH to every export line in this file if missing. save it using ctrl+x and select Y.
Hello Sir..my macbook terminal showing this error([forkpty: Device not configured] [Could not create a new process and open a pseudo-tty.] ) i can i figure out this ..m not able to type anything on it
it is unclear. Control - O .. "writeOut" will save the file then hit Enter to save to the listed file name OR change the file name if you want to but not in this case... this will take you back to the terminal screen. I had the same problem as the advice didn't work because he SAID .... (exit and then save). So I was hitting Ctrl - X
@@paulstaden968hello I’m getting the same problem I don’t know to save and exit and I try to do what you wrote but still being lost. Could you help me please? Tell me how to save it
If anyone in the comment section reading this comment, please help.. I made some changes to the path using terminal with the help of chatgpt.. after that whatever command i run, the terminal only shows "Process Completed", then doesnot let me write any other command..I have to quit the terminal and open again to write another command.. but whatever i write it shows process completed only.. How can I fix this issue? please help. this week is my project submission deadline..😣
I am able to fix it. Check your file after temporary fixing PATH issue. run export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" in terminal.Then sudo nano ~/.zshrc. it will open your file in nano editor. check all the export paths carefully. you must have missed $PATH in one of the export. you should add :$PATH to every export line in this file if missing. save it using ctrl+x and select Y.
Hey man, whenever I try to do a "npm run command" I get this error "/var/folders/j6/w6_lmkks2rg1trf884sh1lx00000gn/T/compile-sass-83ea1f62.sh: line 1: node-sass: command not found" , I even formatted my mac but still not fixed, you have any idea how to fix this?
I am able to fix it. Check your file after temporary fixing PATH issue. run export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" in terminal.Then sudo nano ~/.zshrc. it will open your file in nano editor. check all the export paths carefully. you must have missed $PATH in one of the export. you should add :$PATH to every export line in this file if missing. save it using ctrl+x and select Y.
this worked thank you ! he forgot to add :$PATH when you are exporting in the editor in the video, thats why its not fixed permanently. @@archananegi9647
before closing the terminal type vi ~/.zshrc (this opens the .zshrc file in the vi text editor) and check for other paths inside it, iff present try to remove them (edit that folder) which are not relevant to ua application. how to edit: 1) type i ( insert mode -- INSERT --) add or modify content in the file, 2) press Esc to go back to normal mode 3)Type :w to write/save the changes OR save and exit at the same time, type :wq 4) restart your terminal and check again(eg: ls)
Thank you so much!!!! I was completely lost and I contacted Apple support, who asked me to reinstall my entire Mac!!!! Thank you so much!!!!
Same problem I have right now but I could not able to fix it. Can you help me to fix?
mad props to you, thanks buddy, this is my first ever mac os lol and i messed up really bad trying to install flutter
Don’t tell anyone…but me too
You and me both my man💀
@@MoonDesignDev Same Here 😜
Dude...I'm in the same boat. Tried to install flutter and messed it up. How's everything running for you?
@@Abhishekkumar-zl2rb Did ya fix it? same happened to me :(
Thanks alot my man i had just bought Macbook and was trying to learn programming .
i had changed nano and path while installing mysql watching some random video from youtube not knowing anything.
and after i restarted my MAC simple commands would not work and i searched but could not find any good resource on how to fix those problems.
Then i found this GOLDEN video thanks alot man
damn it not working my man
shows this error:
Last login: Mon Dec 26 02:43:38 on ttys000
/etc/zshrc:7: command not found: locale
/etc/zshrc_Apple_Terminal:104: command not found: mkdir
@@ramromanxey1295 bro same error, have you found any one solution, i had watched 100+ video
@@manthanpatel2024 u made it ? I have the same prob
@@mariadahbi9911 Last login: Thu Aug 24 14:55:04 on ttys001
/Users/aadi/.zshrc:export:5: not valid in this context: /Library/Java/JavaVirtualMachines/jdk-20.jdk/Contents/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
how it can be fixed bro?
no code in the description ...
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Thanks a lot sir, I was recently installing mysql and guess what I messed up the environment variables. was hunting for the default path and here I got it. This video is lifesaver ❤
exactly same situation - part2
were you facing this after installing mysql server? Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) even after giving right password???
if yes then how to fix this
how did you select the exit option at 2:25
CONTROL + X
I encountered the "zsh: command not found: ls" issue, and thanks to this video, I was able to resolve it. 🙌
To make the change permanent, you need to add the export command to your shell’s configuration file. Since you’re using zsh, the configuration file is ~/.zshrc. Here’s how you can add the line:
Open Terminal.
Type or just copy the whole below line
echo 'export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"' >> ~/.zshrc
and press Enter.
This command appends the export line to the end of the .zshrc file.
thank you very much
You solved my issueeee hopefully i dont mess up again
Bro how to exit from zsh file I can't exit 😢
Thank you so much bro, You saved my computer.
Thanks man....I was banging my head trying to reset the terminal.
Fantastic video. Short and to the point. Very well explained!! :)
THANKS A LOTTTTTT....YOU ARE REALLY GREAT, NO INTERNET HELPED ME BUT YOUR VIDEO DID
At 2:18 as I enter nano ~/.zsh_profile I am getting zsh: command not found: nano and none of the basic commands works even though I have installed all necessary tools.
> clear = zsh: command not found: clear
> which java = java not found
> java -version = zsh: command not found: java
> appium -v = zsh: command not found: appium
> npm -v = zsh: command not found: npm
> node -v = zsh: command not found: node
> nano ~/.zshrc = zsh: command not found: nano
So far I have watched atleast 100 videos and no luck. Any idea how do I fix this ?
Please help!
right click on the terminal screen got inspector , stop the .cat/ whatever then paste : export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
@@goodboyreaction Solved. Thank you! :)
@@goodboyreaction Thanks ❤
where bro please reply
@@goodboyreaction
Right click(mouse ) on terminal ….
In 2:23 - 2:28; After Pressing 'y' for yes, TAB Complete appears. and then I pressed the 'Tab' button but that doesn't work for me. What should I do then?
After pressing TAB I press enter
still it didn,t changed permanently@@BlackCat-mk6uc
John, thank you for the detailed video. I am sure that it will resolve en issue. But, I am having the issue of not recognizing commands in the recovery mode. The nasty thing is that also the command 'nano' is not recognized. I have temporarily reset the PATH but can't save it. Further even after setting a temp PATH there are no commands found. And strange enough, the shell is 'bash' in recovery whilst I use 'zsh' in working mode.many commands are not found: nano, jl, chsh, etc Having said all that, I don't see any possibility to rest PATH in recovery. Would you pls try to advise? Many thanks in advance, André
Thank you bro, you saved me from heartache🙏🏾
temporary it works but permanently not worked when i close terminal and again type - ls its shows "zsh command not found" please help me out.
Did you ever find the solution to this? I have the same problem.
@@lesedi44 after u export the path, before closing the terminal type vi ~/.zshrc and check if u have anyother paths exported(coz that was the issue in my case)
@@shreyanstawada9891 yeah you have to add :$PATH in each export line.I added 1 export line without adding $PATH and it caused the issue.
Solution: Check your file after temporary fixing PATH issue. run export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" in terminal.Then sudo nano ~/.zshrc. it will open your file in nano editor. check all the export paths carefully. you must have missed $PATH in one of the exports. you should add :$PATH to every export line in this file if missing. save it using ctrl+x and select Y.
First of all thank you they both work...but then when i quit the terminal and open it again i literally have the same issue and have to repeat the steps you provided. Any idea why?
same here.. using mac m1
@@mustafizurrahmanshadhin6335I actually got straight. Instead of nano zsh_profile I had to do nano zshrc (something like that, I can’t remember exactly right now. Hopefully you can search and get sorted out based on that 🙏🏿)
you have to do one more step tonAsh
vim ~/.zshrc type this line in command and press 'i' then paste that directory line and press ESC then type :wq
Hope this will help or for more help reply again thanks
@@mustafizurrahmanshadhin6335 yea bro I got it fixed a couple days ago. The methods in those video didn’t solve it completely. I had to edit the path with “nano ~/.zshrc” this did it permanently for me.
can u please post that Export command in description not able to find it , this problem happened when i tried to set the java path
tab botton not responding after exiting please help
I was trying to install brew on my M2 macbook air, but it seems it didn't like it to my laptop.
So I did your steps correctly, but it didn't work as expected.
The problem came up on every single terminal I opened, then I did the export command thing you showed us, and then go into the command "nano .zshrc" (no quotes) and hit enter.
Then I deleted all the previous lines for homebrew and saved the changes.
The problem was fixed finally!.
P.S. please consider this is a brand new mac, but this may be helpful if you are programming and you need to delete specific entries into this file.
can you elaborate a little bit more please? I am having problems with every command
thank you so much. Being a first time in using Mac OS, you helped me fix the .zsh command not found problem.
how do you exit from the profile menu ?
superb bro thanku so much finally I got a video reset my terminal
I just got a doubt. I have upgraded my mac os version to ventura using Open Core legacy patcher so will doing this affect my mac?
what should i do after pressing exit ?
how do u exit?
I encountered the "zsh: command not found" issue, and thanks to this video, I was able to resolve it.
dude thanks alot i wasted 2 days installing flutter after i reach this error you are a saver and those who still getting the same error when opening a new terminal set the given path on.zshrc file also so copy the same path on both the file .zshrc and zsh_profile i dont which worked but it solved the error for me
its worked for me, thanks for again srtarting my terminal
Thanks Mr Higgins, you a life saver!
Where is cod in the description? 1:57?
in his ass probably, cause I don't see it too
It's working 😍........ Thanks a lot, man🤝
Thank you so much!! Thought I was going to have to reinstall the OS.
Tha'ts scary :/ I thought I was going to do the same
i dont know if youre still replying to this video, but every step worked except for saving the path to the profile. it keeps saying cannot open writing: is a directory
after opening the profile on the text editor, paste the line of code then save by pressing control+o then enter, then exit by pressing control x
Most underrated video for ~/.zshrc error.
Thanks a lot man.
Now i can sleep😅.
Wow I was loosing my mind , thank you ❤
How to exit from the terminal ..what the shortcut you used ?
Save using Ctrl - O (letter o) and then hit enter to save to file name just above letters at bottom of screen
I have to define input and output file path which in Document folder but getting 'error: unrecognized arguments:'
how do you save at the end ??
hey man, you did it! I messed up with my first m2 trying to install f*cking flutter :D love you
i installed brew before, after setting path to default, I can't use brew now. what is the solution? sorry for this I am completely new to this :)
@moondesigndev or anyone who could save me? @MoonDesignDev
Quitting terminal and reopen again ls command not found.
you didnt leave the code on the description!!!
You saved my life man!
hey I followed all your steps but it still is showing ls zsh command not found
Thanks 🙏 it’s work for me
cant get terminal right to write on usb got the elcapitan downloaded its in applications
omg tysm u saved my life
Can some one put the code in the description
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
@@shxdyshot1933 Check your file after temporary fixing PATH issue. run export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" in terminal.Then sudo nano ~/.zshrc. it will open your file in nano editor. check all the export paths carefully. you must have missed $PATH in one of the export. you should add :$PATH to every export line in this file if missing. save it using ctrl+x and select Y.
it says nano is command not found ..
You won’t even let me type anything in there it says process completed but you can’t type nothing in there
How can you exit , what bottun. Do I need to push ?
Hello Sir..my macbook terminal showing this error([forkpty: Device not configured]
[Could not create a new process and open a pseudo-tty.]
) i can i figure out this ..m not able to type anything on it
man when i exit and save its not saving asking me to name the file which i did and then when i press complete nothing happens.. what can i do
GREAT VIDEO. If it can work for me, it can work for anyone.
how do you exit and save ?
Thank You bro. Amazing!!
Thanks my issue got resolved
Please help me how to exit from the terminal
HOW DID you exit through that?
nothing: "zsh: command not found:" ls is working but I can't install npm for example
how do I exit from the operation pls?
its showing command not found even after saving and exiting it what to do
it helps a lot! tysm!
thank u man, God bless you
you saved my life
Tried to open my terminal and it did a pop up and went to the Apple logo?
How do I exit and save? Which keys to use? Please help, I’m working now. I need urgent help.
it is unclear. Control - O .. "writeOut" will save the file then hit Enter to save to the listed file name OR change the file name if you want to but not in this case... this will take you back to the terminal screen. I had the same problem as the advice didn't work because he SAID .... (exit and then save). So I was hitting Ctrl - X
@@paulstaden968hello I’m getting the same problem I don’t know to save and exit and I try to do what you wrote but still being lost. Could you help me please? Tell me how to save it
after quoting and reopening the terminal it does not work agin
Thank u so much for your help
Thank u homie🤲🏾
Please give the code in description.....its not working for me😭
If anyone in the comment section reading this comment, please help..
I made some changes to the path using terminal with the help of chatgpt.. after that whatever command i run, the terminal only shows "Process Completed", then doesnot let me write any other command..I have to quit the terminal and open again to write another command.. but whatever i write it shows process completed only.. How can I fix this issue? please help. this week is my project submission deadline..😣
HOW DO U EXIT I KEEP PRESSING X
Im still not able to fix it permanentaly, once I close the termianl again the ls command is not found
can someone help
same problem did you solved that please help
@@RahulKumar-on6hs yes, I fixed it. Check your path and verify all the paths are added correctly.
@@alanbosco7174 thank you for responding, the issue was solved I messed up with path source edited that and problem solved. 😁
I am able to fix it. Check your file after temporary fixing PATH issue. run export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" in terminal.Then sudo nano ~/.zshrc. it will open your file in nano editor. check all the export paths carefully. you must have missed $PATH in one of the export. you should add :$PATH to every export line in this file if missing. save it using ctrl+x and select Y.
@@archananegi9647thanks a lot
You're a lifesaver
you are a saviourrrrrrrrr
❤ u are prooooof ❤❤
Life saver video
Bro how to exit
Hey man, whenever I try to do a "npm run command" I get this error "/var/folders/j6/w6_lmkks2rg1trf884sh1lx00000gn/T/compile-sass-83ea1f62.sh: line 1: node-sass: command not found" , I even formatted my mac but still not fixed, you have any idea how to fix this?
How to exit from the terminal
I am able to fix it. Check your file after temporary fixing PATH issue. run export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" in terminal.Then sudo nano ~/.zshrc. it will open your file in nano editor. check all the export paths carefully. you must have missed $PATH in one of the export. you should add :$PATH to every export line in this file if missing. save it using ctrl+x and select Y.
this worked thank you ! he forgot to add :$PATH when you are exporting in the editor in the video, thats why its not fixed permanently. @@archananegi9647
Thank you man!!!!
why can't i enter the code?
TAB key not working
Thanks a lot!!!
appreciate it🙏
nano ~/.zshrc
Use this Instead of nano ~/.zsh_profile from the video
this worked for me
Thanks alot it worked for me
Thanks helped it
bro it I did everything you said and its still the same😭
before closing the terminal type vi ~/.zshrc (this opens the .zshrc file in the vi text editor) and check for other paths inside it, iff present try to remove them (edit that folder) which are not relevant to ua application.
how to edit:
1) type i ( insert mode -- INSERT --) add or modify content in the file,
2) press Esc to go back to normal mode
3)Type :w to write/save the changes OR save and exit at the same time, type :wq
4) restart your terminal and check again(eg: ls)
Thank you!
THANKS MAN
nice video...
thank you thank you thank you
And, where's the PATH code?
Thanks
its not permanent
NANO NOT FOUND
WOW
A command from the video: export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:sbin
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Still cant get it to work, when I save it to the profile
Here you go!:
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
In case you are looking for: export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
First:
nano ~ /.zsh_profile
Then:
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Press Control +Y
Press Tab
Press Inter
Done
it worked