Vote

This tutorial allows you to take charge of your Linux system from basic commands (part 1/2).

cd

The command cd allows the navigation between different folders of the system.

Command to get to the connected user’s directory.

Command to get to directory /path/folder.

Command to get to the disk root.

Command to get to the parent directory of your current location.

Command to come back to the previous directory.

Command which displays the absolute path of the current directory.


mv

The command mv allows to rename and move files and folders.

Argument to move a file/folder and overwrite it if it is already existing.

Argument to move a file/folder and display it.


cp

The command cp allows to copy files and folders.

Argument to copy a folder (recursively).

Argument to copy a file/folder while retaining all the rights (owner, group, chmod, …)


rm

the command rm allows to delete files and folders.

Argument to delete a directory’s content.

Argument to delete a file/folder whether it is existing or not.

Argument to delete a file/folder and display it.

Argument to delete a file/folder with the user’s confirmation (‘y’ or ‘n’).


mkdir

The command mkdir allows to create folders.
It is possible to create several folders with only one command or a complete arborescence.

Argument of creation and displaying of the created folders.

Argument of creation of a folder arborescence.


ls

The command cd allows to list a folder’s content.

To display a folder’s content, including the files starting with a point.

To sort of a folder’s content according to seniority.

Detailed displaying of a folder, including the number of files.

Reversed displaying of a folder.


grep

The command grep allows to conduct research in a file.

To search for the string in a folder’s content.

To indicate the line and the file containing the string.

To count the number of lines containing the string.

To search for without being sensitive to the case (lowercase/uppercase).

To display lines not containing the research.


Categories: SystemTutorials

JN Community

Les Ressources, en particulier les tutoriaux, présupposent que l’Utilisateur qui décide de les mettre en œuvre dispose des connaissances, des compétences et de l’expérience nécessaire pour cette mise en œuvre. L’Utilisateur disposant d’une connaissance, compétence et/ou expérience limitée ou insuffisante doit absolument s’abstenir de mettre en œuvre les Ressources par lui-même.
Jaguar Network décline toute responsabilité quant aux conséquences dommageables de la mise en œuvre des Ressources, notamment sur les infrastructures informatiques de l’Utilisateur, de ses commettants ou préposés ou de tout tiers.
Il est précisé en tant que de besoin que toute intervention de Jaguar Network visant à réparer les dommages causés par la mise en œuvre des Ressources par un Utilisateur ne disposant pas des connaissances, compétences et/ou expériences suffisantes sera facturée et fera l’objet d’un devis préalable et d’un bon de commande aux conditions des contrats Jaguar Network en vigueur.

Related Posts

System

Installation of a web server LEMP (Linux, Nginx, MySQL, PHP)

Vote The installation of a server LEMP Linux + Nginx + MySQL + PHP might be more useful and efficient than an Apache (server LAMP). Articles similaires

System

Operating load-balancing with HAproxy

Vote HAproxy is a software allowing Load-Balancing between several web servers by allocating requests in an almost transparent way for the user. Articles similaires

System

10 tips to write efficient scripts on Linux

Vote The shell script is the most simple type of programming you would write on Linux. Moreover, it is a necessary skill to automate your system administration tasks, to develop new simple features, … In Read more…