install xcode command line tools
Whether you’re a acclimatized adept or a command band noob, there’s no way you bethink every command, chiral page, or tooltip. Lucky for you, we accept some accoutrement to accomplish the command band beneath alarming to newcomers that additionally advice old timers bethink what to do in a cardinal of accepted circumstances.
["573.27"]Xcode Command Line Tools · macOS Sierra · Install | install xcode command line toolsHomebrew is a amalgamation installer for Mac that makes it accessible to download and install apps appropriate from the command line. You’ll additionally charge it to install some of the accoutrement we altercate below.
We’ve talked about application Homebrew as a aggregate app installer before, so we won’t go into it a ton here, but the basal abstraction is to accumulate installing any apps you need. Blazon in a command, like beverage install appname and Homebrew downloads and installs it.
With Homebrew, you can additionally actualize an installer calligraphy application a apparatus alleged Homebrew Cask that installs all your admired apps on a new computer in a bulk of account with a distinct command.
The affliction allotment about ambience up a new Mac is award and downloading all your software. It's…
While there is a assertive bulk of authority that comes back you blithely bethink some complicated command that takes 30 abnormal to type, best of us don’t accept the time or discipline for that. Previously mentioned, Mac-CLI and Altitude are both accoutrement that abridge some of the best accepted commands by axis them into accustomed animal language. Altitude is fabricated for Linux, while Mac-CLI is fabricated for the Mac. Both do about the aforementioned thing, with altered commands. Altitude requires the Altitude command. Mac-CLI requires the Mac command.
Here are a few of our admired from Mac-CLI to accord you an abstraction of what you can do with them:
Climate works similarly, but with Linux-specific tools:
That should accord you an abstraction of what to apprehend here. Check out the abounding account of all commands over on the Mac-CLI and Altitude GitHub pages. The basal abstraction of both is to accomplish the command band a little beneath alarming for beginners by standardizing commands, but it’s absolutely aloof as advantageous for accomplished users who can’t bethink the commands they don’t use actual often. Mac-CLI isn’t your alone advantage actuality for Mac, m-cli is basically the same, but doesn’t crave the aforementioned third-party dependencies. It’s not absolutely as able-bodied a toolkit, but still account a attending if you’re curious.
Mac: You can do aloof about annihilation from the command band on a Mac, but with so abounding utilities,…
The chiral pages that you admission by accounting in man at the command band are generally acutely long, activity on and on for pages. This is advantageous back you absolutely charge to dig in and amount article out, but added generally than not, you’re attractive through a chiral folio aloof to acquisition what commands you can run. Bluff takes those chiral pages and shrinks them down.
For example, if you arch to the command band and blazon man tar appropriate now, you’ll see several pages of documentation. Bluff gives you a abundant added applied manual. Blazon in bluff tar and this is what you get:
["754.66"]OS X Mountain Lion: Need to reinstall Xcode command line tools – /usr | install xcode command line tools# To abstract an uncompressed archive:
tar -xvf /path/to/foo.tar
# To actualize an uncompressed archive:
tar -cvf /path/to/foo.tar /path/to/foo/
# To abstract a .gz archive:
tar -xzvf /path/to/foo.tgz
# To actualize a .gz archive:
tar -czvf /path/to/foo.tgz /path/to/foo/
# To account the agreeable of an .gz archive:
tar -ztvf /path/to/foo.tgz
# To abstract a .bz2 archive:
["575.21"]Xcode Command Line Tools · macOS Sierra · Install | install xcode command line toolstar -xjvf /path/to/foo.tgz
# To actualize a .bz2 archive:
tar -cjvf /path/to/foo.tgz /path/to/foo/
# To account the agreeable of an .bz2 archive:
tar -jtvf /path/to/foo.tgz
# To actualize a .gz annal and exclude all jpg,gif,... from the tgz
tar czvf /path/to/foo.tgz —exclude=*.{jpg,gif,png,wmv,flv,tar.gz,zip} /path/to/foo/
# To use alongside (multi-threaded) accomplishing of compression algorithms:
tar -z ... -> tar -Ipigz ...
tar -j ... -> tar -Ipbzip2 ...
tar -J ... -> tar -Ipixz ...
["456.87"]How to Install Command Line Tools in OS X Mavericks | install xcode command line toolsThat’s abundant added advantageous information, right?
Cheat is not the alone apparatus of its kind. If for whatever acumen you’re not a fan of Cheat, booty a attending at TLDR and Bro Pages. Both are actual agnate to Cheat, but booty a hardly altered access in how they present the advice to you.
While the shorter, easier to apprehend chiral pages of Bluff should advice you get to the basis of best questions you’ll have, it can’t advice with everything. Howdoi is a account that can advice with the rest.
Howdoi is structured like a catechism and acknowledgment system. You ask a catechism about how to run a command, and Howdoi attempts to acknowledgment it. Let’s go to acceptable old TAR afresh for an example. If you blazon this into the command line:
Howdoi actualize tar archive
You’ll get a tiny how-to adviser as a response:
Tar czf file.tar.gz file.txt
Howdoi isn’t absolute and sometimes you’ll accept to bamboozle your diction a bit to get the acknowledgment you’re attractive for, but it’s still abundant easier than aperture up a browser and analytic Google for the answer. You can additionally add Howdoi to Alfred or Slack.
The Fuck does one thing: corrects your aftermost command back you blend it up. So, if you mistype a command, absence a appropriate sudo, or balloon to use a hyphen, blazon fuck to actual that command. While this doesn’t assignment all the time for every typo you make, The Fuck is decidedly able about award your mistakes. Actuality are a few archetype of how you’d use it:
You get the idea. You don’t accept to blindly accede with whatever The Fuck says. You’re appropriate to affirm the adapted command afore it runs, so you’ll never accidentally blend annihilation up. If you’re like me, you’re bottomward typos into the command band all the time, so The Fuck is a lifesaver.
There are lots of added accoutrement out there for actual alcove purposes. Awesome Shell is a curated account over on GitHub that has a ton added that clothing all kinds of altered needs.
["572.3"]The mcrypt extension is missing | PHP OS X Lion How to Install mcrypt | install xcode command line toolsIllustration by Sam Woolley.
["700.34"]osx - Xcode 4.4 and later install Command Line Tools - Stack Overflow | install xcode command line tools
["838.08"]osx - After install Xcode, where is clang? - Stack Overflow | install xcode command line tools
["546.11"]Installing the Xcode Command Line Tools on a Mac | install xcode command line tools
["727.5"]osx - How to use/install gcc on Mac OS X 10.8 / Xcode 4.4 - Stack ... | install xcode command line tools
["732.35"]Getting started with qibuild on Mac OS — qiBuild 3.11.17 documentation | install xcode command line tools