Title: Linux and MacOS | x-cmd get-started URL Source: http://x-cmd.com/start Markdown Content: Linux and MacOS | x-cmd get-started =============== [Skip to content](http://x-cmd.com/start#VPContent) [![Image 4: x-cmd-logo](http://x-cmd.com/dark-logo.svg)![Image 5: x-cmd-logo](http://x-cmd.com/light-logo.svg)X-CMD | start](http://x-cmd.com/) Main Navigation * [Get Started](http://x-cmd.com/start/) * [Module 278](http://x-cmd.com/mod/) * [Package 570](http://x-cmd.com/pkg/) * [Install 1310](http://x-cmd.com/install/) * [Theme](http://x-cmd.com/theme/) Resources * [Blog](http://x-cmd.com/blog/) * [Zig](https://zig.x-cmd.com/) * [Go](https://go.x-cmd.com/) * [Manual](https://man.x-cmd.com/man1/arch/) * * * * * [Changelog](http://x-cmd.com/v/0.4.15/) * [Hub](https://hub.x-cmd.com/) * [Pricing](https://hub.x-cmd.com/pricing) SearchK English * * * [简体中文](https://cn.x-cmd.com/start/) [Star us on GitHub](https://github.com/x-cmd/x-cmd "GitHub") Menu Return to top Sidebar Navigation Introduction ------------ [Guide](http://x-cmd.com/start/guide) [Package Man. 📦](http://x-cmd.com/start/pkg-management) [AI/LLM ⭐](http://x-cmd.com/start/ai-llm) [Performance](http://x-cmd.com/start/performance) [Windows UX](http://x-cmd.com/start/windows-ux) [China Boost](http://x-cmd.com/start/china-boost) [\`文\` in x-cmd](http://x-cmd.com/start/wen) Install ------- [Linux & MacOS 🐧](http://x-cmd.com/start/) [Windows](http://x-cmd.com/start/windows) [BSD](http://x-cmd.com/start/bsd) [Termux & iSH](http://x-cmd.com/start/termux-ish) [Zero Dep.](http://x-cmd.com/start/dependency) [x7 - Dev Preview 🏗️](http://x-cmd.com/start/x7) [Upgrade](http://x-cmd.com/start/upgrade) [Uninstall](http://x-cmd.com/start/uninstall) Supported Shell --------------- [Supported Shell](http://x-cmd.com/start/shell) [NuShell](http://x-cmd.com/start/nushell) [Elvish 🧚](http://x-cmd.com/start/elvish) [Xonsh 🐍](http://x-cmd.com/start/xonsh) [fish 🐠](http://x-cmd.com/start/fish) [tcsh](http://x-cmd.com/start/tcsh) Usage & Scenairo ---------------- [Modules](http://x-cmd.com/start/mod) [pkg](http://x-cmd.com/start/pkg) [Docs](http://x-cmd.com/start/docs) Topic ----- [Arsenal](http://x-cmd.com/start/arsenal) [ls](http://x-cmd.com/start/ls) Code Analysis ------------- [Code Analysis](http://x-cmd.com/start/source-code) [Startup Analysis](http://x-cmd.com/start/startup-analysis) Other ----- [FAQ](http://x-cmd.com/start/faq) [Wechat and Telegram](http://x-cmd.com/start/wechat-telegram) [Feedback and Consulting](http://x-cmd.com/start/feedback) [Integrity Guarantee](http://x-cmd.com/start/integrity-guarantee) [License](http://x-cmd.com/start/license) [Target Users](http://x-cmd.com/start/user) [Developer](http://x-cmd.com/start/developer) [Maintainer](http://x-cmd.com/start/maintainer) [CS Student](http://x-cmd.com/start/cs-student) On this page Linux, MacOS, WSL, Git-Bash: [​](http://x-cmd.com/start#linux-macos-wsl-git-bash) ================================================================================= Open your preferred shell (Posix-compatible, Bash, ZSH, ASH, DASH - KSH is currently not supported), and execute the following command to install x-cmd: sh ``` eval "$(curl https://get.x-cmd.com)" ``` If your system doesn't have curl, you can use the installation method with wget: sh ``` eval "$(wget -O- https://get.x-cmd.com)" ``` curl - Install using curl command curl wget Installation in a Linux Container [​](http://x-cmd.com/start#installation-in-a-linux-container) ----------------------------------------------------------------------------------------------- Linux containers are typically minimalistic, so we provide several methods: 1. If your image has curl, you can use the installation method mentioned above. 2. Alpine-based images can use the wget installation method mentioned above. Note that early Alpine images may not support HTTPS in wget. In such cases, you can use the **Container Injection Method** below. 3. Container Injection Method: 1. `x docker run -x -it ` 2. `x docker setup ` xd - container injection Pager [Previous page\`文\` in x-cmd](http://x-cmd.com/start/wen) [Next page Windows](http://x-cmd.com/start/windows) [![Image 6: x-cmd-logo](http://x-cmd.com/dark-logo.svg) X-CMD](http://x-cmd.com/) [AGPL 3.0 Licensed](https://github.com/x-cmd/x-cmd/blob/main/LICENSE/LICENSE.txt "X-CMD License") [](https://github.com/x-cmd/x-cmd "GitHub")[](https://www.reddit.com/r/x_cmd/ "Reddit")[](https://youtube.com/@x-cmd "YouTube")[](https://x.com/xcmd_com "Twitter") Navigation * [Package](http://x-cmd.com/pkg/) * [Module](http://x-cmd.com/mod/) * [Theme](http://x-cmd.com/theme/) * [Install](http://x-cmd.com/install/) * [Zig](https://zig.x-cmd.com/) * [Go](https://go.x-cmd.com/) * [Manual](https://man.x-cmd.com/man1/arch/) About * [About X-CMD](http://x-cmd.com/start/guide) * [About Zhongshan](http://x-cmd.com/about-zhongshan) * [About Us](http://x-cmd.com/about) * [Contact Us](http://x-cmd.com/start/feedback) * [FAQ](http://x-cmd.com/start/faq) * [Changelog](http://x-cmd.com/v/0.4.15/) Resources * [GitHub](https://github.com/x-cmd/x-cmd) * [Gitee](https://gitee.com/x-cmd/x-cmd) * [Codeberg](https://codeberg.org/x-cmd/x-cmd) * [Blog](http://x-cmd.com/blog/) © 2022-2024 Li Junhao. All Rights Reserved.Support by Zhongshan Xuxu Yunsheng Technology Co. [粤ICP备2021166893号-1](https://beian.miit.gov.cn/)