DEV Community

Cover image for Terminal
CODETOPIA-COMMUNITY
CODETOPIA-COMMUNITY

Posted on • Updated on

Terminal

Getting a terminal for windows (cmder)

Before we proceed with this blog article, I would want to inform you that there is a video about this article on Codetopia’s YouTube channel. You can watch it or read this post or preferably do both.

What is a terminal?

From experience, I can tell that about 90% of learners who begin their way into the development world or into computing often know nothing about the terminal and often get confused when anything about it is mentioned. What is the terminal? one may ask. The terminal is actually an interface where instructions known as commands could be given to the computer to carry out. Unlike the normal GUI (Graphical User Interface) where the mouse is used to click buttons and other graphical elements in order to issue commands, we have another interface called the CLI (short for Command-Line Interface) of which the terminal happens to fall under, and it is through the terminal that commands are written to give out a task. Let us take for instance, a shutdown operation. Using the normal way, a user would click a few buttons in order to achieve that. That same task (shutdown) could be carried out with the terminal but within a short amount of time. Since this tutorial is actually not dedicated to the deep stuffs about the terminal, we’ll not go deep into it. But below is just a glance of what a linux terminal looks like.

ubuntu terminal

ubuntu terminal

For the unix and linux users, a terminal is no news because most of the operations on these operating systems require the use of terminals. But for some windows users, it’s a big pool of confusion and fear. Windows terminals have proven to be insufficient as it is very inefficient and slow in accomplishing some computational and development task. But in recent times, developers have contributed to developing terminal tools to aid windows users and developers complete their computational and development task with ease. So lets get straight into it. We’ll not be using windows’ default terminal (command prompt) but a terminal tool called cmder (commander). But first We’ll need to install it. Cmder is a software package created out of pure frustration over the absence of nice and efficient console emulators on Windows. It is based on amazing software, and spiced up with the Monokai color scheme and a custom prompt layout, looking sexy from the start. Follow the instructions below to install Cmder.

  1. Go to this link -> https://cmder.net/ and scroll down till you see something like the picture below

    cmder download page

    cmder download page


    N.B: There are two options to download from namely the Mini and Full. If you choose the Mini, you would have limited features and would have to install git with cmder manually (don’t worry, will show you how very soon). But if you choose the full setup with git, then you don’t need to install git again. In this case it is recommended to go in for the full version.
    After hitting the download button, Wait for it to finish downloading

  2. After downloading, you have to extract the zipped file into the Program Files directory in your local C drive.
    If you don’t have an extraction tool or software for the extraction, I recommend winrar.
    Before you extract the files into your Program Files, you first have to create a new folder in the Program Files directory. Let’s do that together.

  3. First open a new file explorer
    windows file explorer

  4. click on This PC located on the left pane of your file explorerThis PC

  5. Double click on Local Disk (C:) to openLocal Disk (C:)

  6. locate Program Files and launch it (it’s just Program Files not Program Files (x86))program files
    After opening the Program Files directory, create a new folderyou can create a new folder by simply using the shortcut Ctrl+Shift+n or using the GUI way which is right clicking on an empty space in the directory (folder), selecting new and then folder. Grant administrative permissions if you are being asked by your computer by clicking yes, continue or ok.new folder

  7. Now rename that folder to any name you want. But due to pratical reasons, I recommend you name it commander
    To rename a folder, you have to right click on that folder and choose rename from the pop-up menu. After selecting rename, type the name you want to give to your folder and press enter
    commander folder Now that we are done creating our folder in the Program Files directory, Its time to extract the cmder zipped files to our commander folder,

  8. Locate the cmder downloaded zipped file. (Which should be in your downloads directory or folder.).
    After locating it, right click on it and select Open with WinRAR (if only you have winrar installed)
    open cmder with winrar
    After opening with winrar, you should see something like this
    cmder launched with winrar
    After opening cmder with winrar, go back to your program files directory and open the commander folder we created.
    commander folder
    Now open the cmder zipped folder and the commander folder side by side on your windows
    open folder side by side

  9. Now highlight all the files and folders in the cmder winrar directory
    highlight files and folder in the cmder winrar folder
    To highlight on your windows, press and hold the left button of your mouse and drag the mouse over the object you want to hightlight

  10. After highlighting all the files and folders in the cmder winrar directory, drag all the files and folders and drop it into the commander folder (which is opened by the side of the cmder winrar directory). After droping the files and folders into the commander folder, your should see something like this
    extraction in progress
    since we are extracting to the commander directory which is located in the Program Files directory in our Local Disk (C:), we may need to grant administrative rights. To do this, click on Do this for all current items, click on continue and wait for it to complete the extraction
    granting administrative rights
    After the extraction you should see these bunch of files and folders in your commander directory
    extraction complete

  11. Now double click on the cmder icon in the commander directory to begin the installation
    cmder icon in commander directory

  12. After launching cmder, cmder will begin to run some script for the installation
    cmder running scripts

We finally now have a very powerful and cool terminal on our windows that we can use to perform command line tasks.

You might want to do this

Some of you might realize that after you install cmder and try to find it by searching it name in your windows search box, it’s nowhere to be found on your windows.
windows search box

It is on your windows alright but you just have to do a couple of configurations to make it searchable. Like editing your environment variables or pinning it to your start menu. The formal is quite complicated for beginners so we will focus on the latter. To make cmder searchable on your windows, just follow these simple steps to get it done

  • Navigate to the commander folder which contains the extracted cmder files and launch it (which is located in your Program Files directory which is also located in your C local disk)
  • After launching it, locate and right click on the cmder icon

right click on the cmder icon

  • click on Pin to Start from the pop-up menu
  • Now go to your start menu and you will now find cmder in there cmder on start menu

Good job! Cmder is now searchable on your windows. You can confirm that by doing a quick search in your windows search box

searching cmder in windows search box

BOUNUS ROUND

The cmder terminal also has some cool settings that you can play around with. You can alter changes to the font, the color scheme, font family, font style etc. To access these settings, you have to right click on either the top-most or bottom section of your terminal and click on settings.
cmder terminal settings

In the pop-up dialog box, you can make a couple of changes and select “save settings” after you are done.
cmder settings

Since we are not focusing on altering changes to cmder in this blog post, we won’t dive further. But you can make your own changes to suit your taste and preference.

:-) Good luck on your new journey with your cool windows terminal

Top comments (0)