I want some applications to run on my OS X. But they cant be ran due to they are only for Linux. How can I have a Linux shell on my OS X? I mean how can I have a seperate Linux shell and a OS X terminal on OS X?
It depends on your use specific use case:
To run GNU utilities (as found on Linux systems) alongside the mostly BSD-based OS X utilities on OS X, install them via Homebrew; note that installing alongside entails that the GNU utility names are
g-prefixed to avoid shadowin the stock OS X utilities; e.g., GNU
ls is installed as
gls; also note that OS X's Bash is still
brew install coreutils... most of the GNU utilities (installed
brew install gawk... GNU Awk (installed as
brew install findutils... the
findutliity (installed as
brew install gnu-sed... GNU Sed (installed as
To run commands in an isolated, bona fide Linux environment inside a VM (using Bash
v4.x), install Docker and then install, e.g., an Ubuntu image (
docker pull ubuntu).
Docker QuickStart Terminal.app), you can then run
docker run -it ubuntu bashto enter an interactive Bash shell on Linux.