Windows' built-in command line programs aren't that great on their own. To make them better, we like to use third-party terminal programs, our favorite being the customizable and free Console.
This is a command line tutorial primarily conducted in in the OS X command line. Because of OSX’s unix heritage, much of the info here is also useful in other unix inspired systems, like the Linux command line. The command line can be a scary place when you first encounter it. Mac keyboard shortcuts. By pressing certain key combinations, you can do things that normally need a mouse, trackpad, or other input device. Open the Downloads folder. Shift-Command-N: Create a new folder. Shift-Command-O: Open the Documents. Move the insertion point to the beginning of the current line. Command–Right Arrow: Move the. 10 Terminal Commands That Every Mac User Should Know. Here you can select different voices and download new ones from Apple's servers if you fancy. A command line prompt is a way of interacting with your computer without a graphical interface. While your modern Mac uses a graphical user interface, (GUI) older computers used only command prompts. The command line usually gives you more options than the GUI.
Note: For this App Directory entry, we're talking about separate terminal programs, not shells. Windows' Command Prompt, PowerShell, and Cygwin are all different shells that come with their own programs. The programs we're talking about today are separate programs that use shells already on your system, which is why you won't find PowerShell and Cygwin among the competitors.
Advertisement
Command prompt free download - Prompt teleprompter, Command & Conquer Generals Zero Hour Update, Command & Conquer Update, and many more programs. How to Get to the Command Line on a Mac. This wikiHow teaches you how to open the Terminal (command prompt) application in macOS using Launchpad, Spotlight, or Finder. Open3DALIGN is a command-line tool which is operated by means of a few commands which can be entered interactively from a command prompt, read from a batch script. ISSH for Mac OS v.3.0 A front-end application to the command line application 'sssh'.
Platform: Windows
Price: Free
Download Page
Advertisement
Console is simple and easy to use while at the same time being much more configurable than any single-shelled program, while holding the ability to run any of those shells in a new tab—whether it be the UNIX-like Cygwin, Windows' very useful PowerShell, SSH king PuTTY, or the standard Windows Command Prompt. You can configure what the window looks like, open multiple tabs, and even run a number of different shells at once in the same window. It also has quite a few options for tweaking the behavior of the app, like how it selects text, which hotkeys and mouse buttons do what, and so on. If you ever do any work in a terminal on Windows, this program will make your life a little bit easier.
Advertisement
Resume download for free. Free Resume Templates for MAC. Large numbers of applications are received by the employers for a single job post and screening each application in detail is practically not possible and here lies the importance of a well framed resume. A well drafted, neat and impressive resume will surely catch the attention of the potential employer and thus.
If you're a very heavy or very advanced terminal user, you may want something even more powerful than Console. Console isn't the most feature-filled terminal on the block, but that's a good thing—most other terminal programs are way more powerful, cluttered, and expensive than most users need. So, if you're looking for something with built-in search or line numbers, you may want to check out the competition section below.
Advertisement
The competition for apps like this is pretty thin on Windows. If you don't like Console, you'll probably want to check out PowerCmd as your next option. It's a bit pricier at $30, but it contains a few extra features like the ability to search your consoles, view multiple sessions in one big window, line numbering, and add bookmarks on certain lines. It's definitely not an app that most terminal users will need, and it's a bit slower than something like Console, but advanced users will probably prefer it.
Advertisement
If you're a really advanced user that requires a powerful terminal every day, you might want to try out Take Command. It's very expensive ($99), but also insanely powerful, adding more than 140 new commands and 460 internal functions and variables to the standard Windows command prompt (not to mention a built-in file manager and debugger). It's definitely geared more toward developers than end users, but it's worth a mention for its sheer power alone.
Lastly, if the only shells you use are Cygwin or MSYS/MinGW, you might prefer Mintty over Console. Cygwin's default program isn't very great, and Mintty gives you a few extra options over Console, but doesn't let you run other shells (like the Command Prompt or PowerShell), so it isn't quite as useful. Mintty is also free.
Advertisement
Do you have a favorite terminal program we didn't mention? Be sure to let us know about it in the comments.
Lifehacker's App Directory is a new and growing directory of recommendations for the best applications and tools in a number of given categories.
Advertisement
Estimated reading time: 16 minutesWelcome to Docker Desktop for Mac! Docker is a full development platform for creatingcontainerized apps, and Docker Desktop for Mac is the best way to get started withDocker on a Mac.
See Install Docker Desktop for Mac forinformation on system requirements and stable & edge channels.
Ensure your versions of docker
, docker-compose
, and docker-machine
areup-to-date and compatible with Docker.app
. Your output may differ if you arerunning different versions.
Open a command-line terminal and test that your installation works byrunning the simple Docker image,hello-world:
Start a Dockerized web server. Like the hello-world
image above, if theimage is not found locally, Docker pulls it from Docker Hub.
In a web browser, go to http://localhost/
to view the nginx homepage.Because we specified the default HTTP port, it isn’t necessary to append:80
at the end of the URL.
Early beta releases used
docker
as the hostname to build the URL. Now,ports are exposed on the private IP addresses of the VM and forwarded tolocalhost
with no other host name set.
View the details on the container while your web server is running (withdocker container ls
or docker ps
):
Stop and remove containers and images with the following commands. Use the“all” flag (--all
or -a
) to view stopped containers.
Choose → Preferences from themenu bar and configure the runtime options described below.
General settings are:
Start Docker when you log in: Uncheck this option if you don’t want Dockerto start when you open your session.
Automatically check for updates notifies you when an update is available.Click OK to accept and install updates (or cancel to keep the currentversion). If you disable this option, you can still find out about updatesmanually by choosing → Checkfor Updates.
Include VM in Time Machine backups backs up the Docker Desktop for Mac virtualmachine. (Disabled by default.)
Securely store Docker logins in MacOS keychain stores your Docker logincredentials. (Enabled by default.)
Send usage statistics — Send diagnostics, crash reports, and usagedata to Docker. This information helps Docker improve the application and getmore context for troubleshooting problems. (Enabled by default.)
Choose which local directories to share with your containers. File sharing isrequired for volume mounting if the project lives outside of the /Users
directory. In that case, share the drive where the Dockerfile and volume arelocated. Otherwise, you get file not found
or cannot start service errors atruntime
.
File share settings are:
Add a Directory: Click +
and navigate to the directory you want to add.
Apply & Restart makes the directory available to containers using Docker’sbind mount (-v
) feature.
There are some limitations on the directories that can be shared:
For more information, see:
/Users
.)On the Advanced tab, you can limit resources available to Docker.
Advanced settings are:
CPUs: By default, Docker Desktop for Mac is set to use half the number of processorsavailable on the host machine. To increase processing power, set this to ahigher number; to decrease, lower the number.
Memory: By default, Docker Desktop for Mac is set to use 2
GB runtime memory,allocated from the total available memory on your Mac. To increase RAM, set thisto a higher number; to decrease it, lower the number.
Swap: Configure swap file size as needed. The default is 1 GB.
Specify the Disk image location of the Linux volume, where containers andimages are stored.
You can also move the disk image location. If you attempt to move the disk imageto a location that already has one, you get a prompt asking if you want to usethe existing image or replace it.
Docker Desktop for Mac detects HTTP/HTTPS Proxy Settings from macOS and automaticallypropagates these to Docker and to your containers. For example, if you set yourproxy settings to http://proxy.example.com
, Docker uses this proxy whenpulling containers.
When you start a container, your proxy settings propagate into the containers.For example:
You can see from the above output that the HTTP_PROXY
, http_proxy
, andno_proxy
environment variables are set. When your proxy configuration changes,Docker restarts automatically to pick up the new settings. If you havecontainers that you wish to keep running across restarts, you should considerusing restart policies.
You can configure options on the Docker daemon that determine how yourcontainers run.
Select Basic to configure the daemon with interactive settings, or selectAdvanced to edit the JSON directly.
Both Docker Desktop for Mac Stable and Edge releases have experimental features enabledon Docker Engine, as described Docker Experimental FeaturesREADME. If you uncheck experimental mode, Docker Desktop for Macuses the current generally available release of Docker Engine.
Don’t enable experimental features in production
Experimental features are not appropriate for production environments orworkloads. They are meant to be sandbox experiments for new ideas. Someexperimental features may become incorporated into upcoming stable releases,but others may be modified or pulled from subsequent Edge releases, and neverreleased on Stable.
You can see whether you are running experimental mode at the command line. IfExperimental
is true
, then Docker is running in experimental mode, as shownhere. (If false
, Experimental mode is off.)
You can set up a custom and insecure registry to store your public or private images (instead ofusing Docker Hub orDocker Trusted Registry). Add URLs foryour insecure registries and registry mirrors on which to host your images.
See also:
Click the Advanced tab to configure the daemon from the JSON file. For afull list of options, see the Docker Engine dockerd commandlinereference.
Click Apply & Restart to save your settings and reboot Docker. Or, to cancelchanges, click another preference tab, then choose to discard or not applychanges when asked.
In Docker Desktop for Mac 17.12 Edge(mac45)and higher, and 18.06 Stable(mac70)and higher, a standalone Kubernetes server is included that runs on your Mac, sothat you can test deploying your Docker workloads on Kubernetes.
The Kubernetes client command, kubectl
, is included and configured to connectto the local Kubernetes server. If you have kubectl
already installed andpointing to some other environment, such as minikube
or a GKE cluster, be sureto change context so that kubectl
is pointing to docker-for-desktop
:
If you installed kubectl
with Homebrew, or by some other method, andexperience conflicts, remove /usr/local/bin/kubectl
.
To enable Kubernetes support and install a standalone instance of Kubernetesrunning as a Docker container, select Enable Kubernetes, choose thedefaultorchestratorand click the Apply button.
An Internet connection is required. Images required to run the Kubernetesserver are downloaded and instantiated as containers, and the/usr/local/bin/kubectl
command is installed on your Mac.
When Kubernetes is enabled and running, an additional status bar item displaysat the bottom right of the Docker Desktop for Mac Preferences dialog.
The status of Kubernetes shows in the Docker menu and the context points todocker-for-desktop
.
By default, Kubernetes containers are hidden from commands like dockerservice ls
, because managing them manually is not supported. To make themvisible, select Show system containers (advanced) and click Apply andrestart. Most users do not need this option.
To disable Kubernetes support at any time, deselect Enable Kubernetes. TheKubernetes containers are stopped and removed, and the/usr/local/bin/kubectl
command is removed.
For more about using the Kubernetes integration with Docker Desktop for Mac, seeDeploy on Kubernetes.
Select -> Preferences from themenu bar, then click Reset to reset factory defaults, restart the Dockerdaemon, or uninstall.
Reset settings are:
Restart - Select to restart the Docker daemon.
Remove all data - This option removes/resets all Docker data without areset to factory defaults (which would cause you to lose settings).
Reset to factory defaults - Choose this option to reset all options onDocker Desktop for Mac to its initial state, the same as when it was first installed.
Uninstall Docker Desktop for Mac from the commandline
To uninstall Docker from Mac from a terminal, run: <DockerforMacPath>--uninstall
. If your instance is installed in the default location, thiscommand provides a clean uninstall:
You might want to use the command-line uninstall if, for example, you find thatthe app is non-functional, and you cannot uninstall it from the menu.
You can add trusted Certificate Authorities (CAs) (used to verify registryserver certificates) and client certificates (used to authenticate toregistries) to your Docker daemon.
All trusted CAs (root or intermediate) are supported. Docker Desktop for Mac creates acertificate bundle of all user-trusted CAs based on the Mac Keychain, andappends it to Moby trusted certificates. So if an enterprise SSL certificate istrusted by the user on the host, it is trusted by Docker Desktop for Mac.
To manually add a custom, self-signed certificate, start by adding thecertificate to the macOS keychain, which is picked up by Docker Desktop for Mac. Here isan example.
Or, if you prefer to add the certificate to your own local keychain only (ratherthan for all users), run this command instead:
See also, Directory structures forcertificates.
Note: You need to restart Docker Desktop for Mac after making any changes to thekeychain or to the ~/.docker/certs.d
directory in order for the changes totake effect.
For a complete explanation of how to do this, see the blog post AddingSelf-signed Registry Certs to Docker & Docker Desktop forMac.
You can put your client certificates in~/.docker/certs.d/<MyRegistry>:<Port>/client.cert
and~/.docker/certs.d/<MyRegistry>:<Port>/client.key
.
When the Docker Desktop for Mac application starts up, it copies the ~/.docker/certs.d
folder on your Mac to the /etc/docker/certs.d
directory on Moby (the Dockerfor Mac xhyve
virtual machine).
You need to restart Docker Desktop for Mac after making any changes to the keychainor to the ~/.docker/certs.d
directory in order for the changes to takeeffect.
The registry cannot be listed as an insecure registry (see DockerDaemon). Docker Desktop for Mac ignores certificates listedunder insecure registries, and does not send client certificates. Commandslike docker run
that attempt to pull from the registry produce errormessages on the command line, as well as on the registry.
If you have this directory structure, you do not need to manually add the CAcertificate to your Mac OS system login:
The following further illustrates and explains a configuration with customcertificates:
You can also have this directory structure, as long as the CA certificate isalso in your keychain.
To learn more about how to install a CA root certificate for the registry andhow to set the client TLS certificate for verification, see Verify repositoryclient with certificates in the Docker Enginetopics.
Docker Desktop for Mac comes with scripts to enable completion for the docker
,docker-machine
, and docker-compose
commands. The completion scripts may befound inside Docker.app
, in the Contents/Resources/etc/
directory and can beinstalled both in Bash and Zsh.
Bash has built-in support forcompletion To activate completion for Docker commands, these files need to becopied or symlinked to your bash_completion.d/
directory. For example, if youinstalled bash via Homebrew:
Add the following to your ~/.bash_profile
:
OR
In Zsh, the completionsystem takes care of things. To activate completion for Docker commands,these files need to be copied or symlinked to your Zsh site-functions/
directory. For example, if you installed Zsh via Homebrew:
To get help from the community, review current user topics, join or start adiscussion, log on to our Docker Desktop for Macforum.
To report bugs or problems, log on to Docker Desktop for Mac issues onGitHub,where you can review community reported issues, and file new ones. See Logsand Troubleshooting for more details.
To give us feedback on the documentation or update it yourself, use the Feedbackoptions at the bottom of each docs page.
You can access your Docker ID account from within Docker Desktop for Mac.
From the Docker Desktop for Mac menu, sign in to Docker Hub with your Docker ID, orcreate one.
Then use the Docker Desktop for Mac menu to create, view, or navigate directly to yourCloud resources, including organizations, repositories, and swarms.
Check out these Docker Hub topics to learn more:
Try out the walkthrough at Get Started.
Dig in deeper with Docker Labs examplewalkthroughs and source code.
For a summary of Docker command line interface (CLI) commands, see Docker CLIReference Guide.
Check out the blog post, What’s New in Docker 17.06 Community Edition(CE).