Mac Terminal Command not Found - macos

I've been using my mac and I realized that some basic commands seem to be missing. I have tried commands including : ping, traceroute, reboot, halt
and they all show
-bash: [SomeCommand]: Command not found
I have installed Xcode and the CommandLineTools package as well. Can somebody help me resolve this problem? Thank you!
Below are some informations of my terminal:
HenrydeMacBook-Air:~ bumpwymac$ $PATH
-bash: /opt/local/bin:/opt/local/sbin:/Applications/XCrySDen-1.5.24-bin-semishared:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/opt/X11/bin:/usr/texbin:/Applications/XCrySDen-1.5.24-bin-semishared/scripts:/Applications/XCrySDen-1.5.24-bin-semishared/util: No such file or directory
Thank you!

ping , halt and reboot are all in /sbin. I think your PATH lacks of "/sbin". Here are mine :
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/go/bi‌​n:.:/Users/frank/work/bin/:/Users/frank/work/bin/:/usr/local/go/bin:
No such file or directory

Related

Unable to figure out the issue with Cygwin aliases

I installed cygwin today on my windows system. I tried to create an alias for my desktop to avoid typing the lengthy command everytime. In the /home/sunde/.bashrc, I inserted the below alias statement and saved it.
alias DSKP='cd /cygdrive/c/Users/sunde/Desktop'
Then, I gave DSKP command but I am seeing this error -bash: DSKP: command not found.
I tried searching the issue but wasn't able to figure out what the issue was. Can someone please help. Thanks in advance.

MJML run and watch error

I'm following the tutorial on https://mjml.io/documentation/#basic-layout-example
And followed these instructions to install https://mjml.io/download
But whenever I want to use ./node_modules/.bin/mjml index.mjml or mjml index.mjml I get the following error:
Command 'sed' is available in '/bin/sed'
The command could not be located because '/bin' is not included in the
PATH environment variable.
sed: command not found
/usr/bin/env: 'node': No such file or directory
I have no idea what I'm doing wrong and Google hasn't been helpful so far.
Any idea why this is happening? Thanks for your time :(
Seems you have messed your PATH environment variable. The sed program is there as is part of the core packages. You can try to do something like the mentioned here.
Also try to reach the mjml support group in slack
I think you have not installed node properly. Try reinstalling it.
If you reinstalled the node and then also you are facing the problem then there is some problem with Windows because a few days ago I was facing a problem when I was running the npm run build command then I switch to my Virtual box Linux OS there it works fabulously.

Basic terminal commands not working after trying to install Composer

My mac terminal is completely dysfunctional! Every time I open terminal I get this message:
-bash: export: `/Applications/MAMP/bin/php/php5.5.10/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin': not a valid identifier
The problem came about a while ago, I believe I was attempting to install composer to work with MAMP.
Today I started a beginner tutorial on how to use the Terminal and almost every command does not work such as the basic mkdir , ls , and touch (to make folder, list items, and make a file respectively), (screenshot attached).
I have already tried deleting the ~/Library/Preferences/com.apple.Terminal.plist file. Your help is greatly appreciated.
I am working with Mac OS X 10.10.2
screenshot of terminal after making basic commands
It looks like you have an error in your .bash_profile or other startup script. Open it on terminal using vi ~/.bash_profile or some other editor of your choice and comment out that line, then type source .bash_profile to reload it.

Pycharm install fail with "Invalid Log Path"

I downloaded a Pycharm community mac OSX version. But after installation, each time I try to open it. It gives me this error. I can't find any information about this error after I google the error.
Thank you.
OK. It turn out be a permission problem. Just chmod 777 the directory(mkdir before). Then this problem is solved
Start --> Search "idea.log". In this file change the path.

.local/share/autojump/autojump_errors: No such file or directory

I've got autojump installed but, after upgrading homebrew, every time I issue a shell command (e.g. ls) I now get this:
-bash: /Users/snowcrash/.local/share/autojump/autojump_errors: No such file or directory
Any ideas on how to fix this?
I believe this used to be an issue but according to this GitHub Issue it should be fixed.
Otherwise I recommend you quit your current terminal application and restart. It took that for mine to stop throwing the error after I upgraded.

Resources