sudo: apt-get: command not found

I am really struggling to get my head around terminal i keep getting commands not found what am i doing wrong? I am trying to install ruby on the mac using this tutorial. http://www.ruby-lang.org/en/downloads/ but i keep getting the error sudo: apt-get: command not found Can some please help me or give me an option to … Read more

commands not found on zsh

It’s evident that you’ve managed to mess up your PATH variable. (Your current PATH doesn’t contain any location where common utilities are located.) Try: Alternatively, for “resetting” zsh, specify the complete path to the shell: or

How to mkdir only if a directory does not already exist?

Try mkdir -p: Note that this will also create any intermediate directories that don’t exist; for instance, will create directories foo, foo/bar, and foo/bar/baz if they don’t exist. Some implementation like GNU mkdir include mkdir –parents as a more readable alias, but this is not specified in POSIX/Single Unix Specification and not available on many common platforms like macOS, various BSDs, and various commercial … Read more