The basic commands on the related shell

From GEST-S482 Digital Business
Jump to navigation Jump to search

1. What can a terminal be used for?

Before the graphic interfaces appeared, only the terminal existed. At present, most computer users do not know the presence and purpose of the terminal present on their machines. To delete, create, move, rename or even download files, any user will go through these new graphic interfaces. But the terminal is just as effective for carrying out these kinds of actions. For developers, the terminal is a key tool for their activities. In short, many basic computer actions can be performed using the terminal, and that is why it is interesting to study a few basic, easy-to-use commands. First of all, it is important to specify that the terminal allows access to the shell. And the shell is the set of commands in cascades, it is a program that acts as an interface between the system and the user. But the terminal commands will depend on the shell used on the computer because the different shells work with an appropriate language. In the beginning there was only Msdos for Windows but now there is also bash or zshell for MacOS and Linux. So, there will be a different vocabulary for the use of commands depending on which terminal is used. Moreover, it is important to underly that the terminal carries out only the actions at the precise location where it is located.

2. Translations of command :

Conversion table of the commands.png

3. Explanations of the different commands :

  • DIR or LS : Ls to list everything (folders and files) in the user folder you are in.
  • HELP or INFO LS : To receive all information about possible commands.
  • CD : To enter in a file. It allows to change the directory.
  • CD.. or CD .. : To go back. To get out of the folder you are in.

It is possible to go back higher than the user's backrest. By applying this command several times, it is possible to go from a folder to the main user, to the user and finally to the root. Afterwards it is no longer possible to go higher and it will be indicated by a "/".

  • MKDIR : To create a new file inside the folder.
  • RMDIR : To delete a file. Reverse effect of MKDIR.
  • EXIT : To exit the terminal, complete and close all the actions.
  • CLS or CLEAR : To put the terminal line back on top and no longer see the history of our actions, but without deleting it. (To empty your terminal).
  • PWD : To view the current folder you are in and display the full path.

4. Examples of certain commands :

Command LS.png

LS shows all files present on the computer user in the name of laureanckaert.

Command CD.png

Thanks to cd, you enter the music folder.

Command MKDIR.png

With MKDIR, a new file with the name "hello" has been created in the music folder.

Command ls after mkdir.png

With them, you can see where you are. And you can see our new 'hello' file created in the music folder.

Command rmdir.png

Here we delete the 'hello' file we created.

Command ls after rmdir.png

Again, we use ls to see where we are and we can see that the 'hello' file has been deleted.


Here you can see the backtracking. You can go from music, to user, to user and finally to root.

5. How to make a copy-paste :

Copy and paste is only done by selecting the text and to paste by clicking on the chosen place.