Terminal

The exploration is not terminating, we are just getting started.

If you already know how to work with terminals, skip to the Installation step.

What is a Terminal

A terminal can be described as an interface for users to communicate with the computer.

They are our command-line interface, a place where we type commands and the computer process it.

Let's open our terminal:

Opening the terminal on Linux

TODO

Opening the terminal on Windows (WSL2)

TODO

Opening the terminal on MacOS

TODO

Opening the terminal on Windows

TODO

if you are using Linux or Windows your terminal would probably look like this:

If you are using MacOS your terminal would probably like this:

You can customize your terminal the way you want and feel most comfortable with.

Command-lines in a terminal follow a "left to right" hierarchy, the left side always come first and the computer interprets them in this order.

Before explaining terminal commands to you, there is a very important command that you need to understand, the sudo command. sudo is the abbreviation of "super user do" that, when used, allows a user to get privileges of another user (usually the super user) to securely perform specific tasks within the system in a administrator controllable manner. You will need to use the sudo command in a lot of cases.

Terminal Commands

When double clicking a folder in order to open it, your computer basically understand and does the cd folder command; the same happens when renaming a file, the computer will understand it as using the command mv oldfilename.kind2 newfilename.kind2.

The terminal is simply a command line where you type those commands directly to your computer. As this is extensively used in this guide book, it is recommended that you get familiar with this by playing with the commands below (just be careful with some of them, like rm).

For now, let's take a look at a few of the most used terminal commands. Even though everything that is used in this guide will be explained, if you want to dive deeper into terminal commands, look up to this this link.

List of Commands

cd
ls
mkdir
rm
mv
touch
clear
  • The command cd stands for "Change Directory", and it navigates through them.
Command                Description
cdHome: Goes back to your base folder (main folder).
cd ..Back: Moves to the previous folder.
cd 'folderName'Through Files: Will take you to that folder specified.
  • The command ls stands for "List Files", and lists the content of the current folder.
Command                Description
lsListing: Will show you a list of the files and folders
in the current folder that you are in.
ls -laDeeper Listing: Will show a more detailed version of
the ls command, with it's hidden files or folders.
  • The command mkdir , that stands for "Make Directory", creates a new folder.
Command              Description
mkdir folderNameCreating: Works by creating a folder with the specified
name. For example:
mkdir exampleFolder creates it with the name
"exampleFolder"
  • The command rm stands for "Remove", and removes the specified file or folder.
Command                Description
rm fileNameRemoving Files: Removes the file specified in it.
rm -r folderNameRemoving Folders: Removes a folder in the same way
as mkdir creates it, you need to specify which
folder you want to remove.
    • This command is VERY DANGEROUS! If possible, DO NOT USE IT, there are a lot of memes on the internet from people using rm to delete important folders. Avoid everything that has the rm command on internet, otherwise, use it by your own discretion and responsibility!
  • The command mvstands for "Move", and has two functionalities, to move and rename files or folders.

CommandDescription
mv fileName /folderNameMoving things: Using command moves the fileName
file to the folderName folder. In order for this command
to work, it is needed to write the file name
followed by the name of the directory that you want to
send the file to. For example:
mv kindFile.kind2 /newDirectory to move a file to a
folder inside the current folder.
mv kindFile.kind2 ../folderName to take a file to a
folder in a previous folder by using "../" before the name
of the folder.
mv oldFileName newFileNameRenaming things: The command changes the name of a
file or folder to the name specified in the second
parameter. For example:
mv oldName.kind2 newName.kind2 to rename a file from
"oldName.kind2" to "newName.kind2".
mv oldKindFolder newKindFolder to rename a folder
from "oldKindFolder" to "newKindFolder".
  • The command touch can do a couple of complicated things, such as update file access and it's modification time. But, right now we are only gonna use it to create new files.
Command                Description
touchCreating Flies: The command creates (if this file do
not exists yet) a new file. For example:
touch newfile.kind2 will create a .kind2 file with the
specified name.
  • The command clear will clear your command line.
Command                Description
clearCleaning up the mess: The command will clear the
command line window. Use it when your terminal is
just a giant text wall and you will have a fresh new
terminal. It's very refreshing,
trust me!.

The command will clear the command line window. Use it when your terminal is just a giant text wall and you will have a fresh new terminal. It's very refreshing, trust me!

With this basic commands, proceed to the Kind Installation, as we are using the terminal to do so. If you already have Kind installed in your computer, proceed to the section Text Editors.