Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 72
» Latest member: stewartshic
» Forum threads: 342
» Forum posts: 369

Full Statistics

Online Users
There are currently 7 online users.
» 0 Member(s) | 7 Guest(s)

Latest Threads
Test, just a XRumer 23 St...
Forum: Announcements
Last Post: XRumer23lip
09-25-2025, 01:01 AM
» Replies: 0
» Views: 30
Comment créer un sous-dom...
Forum: Cpanel
Last Post: XRumer23lip
10-28-2024, 04:29 AM
» Replies: 1
» Views: 1,188
Tutorial: Create an Onlin...
Forum: Ellohost
Last Post: mikox
08-03-2024, 07:46 AM
» Replies: 0
» Views: 288
Tutoriel : Créer un Site ...
Forum: Ellohost
Last Post: mikox
08-03-2024, 07:45 AM
» Replies: 0
» Views: 314
Tutorial: Create a Profes...
Forum: Ellohost
Last Post: mikox
08-03-2024, 07:13 AM
» Replies: 0
» Views: 220
Tutoriel : Créer un Site ...
Forum: Ellohost
Last Post: mikox
08-03-2024, 07:12 AM
» Replies: 0
» Views: 252
Slither.io - Become the L...
Forum: Others
Last Post: mikox
04-05-2024, 07:30 AM
» Replies: 0
» Views: 310
MooMoo.io - Build, Defend...
Forum: Others
Last Post: mikox
04-05-2024, 07:28 AM
» Replies: 0
» Views: 331
Smash Karts - The Ultimat...
Forum: Others
Last Post: mikox
04-05-2024, 07:26 AM
» Replies: 0
» Views: 712
Dream Chef - A Cooking Ad...
Forum: Others
Last Post: mikox
04-05-2024, 07:24 AM
» Replies: 0
» Views: 305

 
  Créer un fichier avec la commande Linux Touch
Posted by: aaron - 09-08-2023, 12:18 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>
<head>
  <title>Créer un fichier avec la commande Linux Touch</title>
</head>
<body>
  <h1>Créer un fichier avec la commande Linux Touch</h1>
  <p>Si vous utilisez la commande touch sans options, elle créera simplement un nouveau fichier vide. Si le fichier existe déjà, la commande touch mettra à jour l'heure d'accès et de modification avec l'heure actuelle sans modifier le contenu du fichier.</p>
  <pre>touch nom_du_fichier.txt</pre>
  <img src="https://ellohost.com/imageshack/uploads/1694175450_64fb10da95f26.jpeg" alt="Capture d'écran de la commande touch" width="400">
  <br><br>
  <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: white; border: none;">Rejoindre ellohost</button></a>
</body>
</html>

Print this item

  Options de la commande Linux Touch
Posted by: aaron - 09-08-2023, 12:16 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>
<head>
  <title>Options de la commande Linux Touch</title>
</head>
<body>
  <h1>Options de la commande Linux Touch</h1>
  <table border="1">
    <tr>
      <th>Indicateur</th>
      <th>Utilisation</th>
    </tr>
    <tr>
      <td>-a</td>
      <td>Modifier l'heure d'accès</td>
    </tr>
    <tr>
      <td>-m</td>
      <td>Modifier l'heure de modification</td>
    </tr>
    <tr>
      <td>-c</td>
      <td>Empêcher la création d'un nouveau fichier</td>
    </tr>
    <tr>
      <td>-h</td>
      <td>Modifier l'horodatage du lien symbolique</td>
    </tr>
    <tr>
      <td>-h</td>
      <td>Modifier l'horodatage des liens symboliques</td>
    </tr>
    <tr>
      <td>-t &lt;horodatage&gt;</td>
      <td>Modifier l'horodatage. Dans ce cas, &lt;horodatage&gt; suit le format date-heure</td>
    </tr>
    <tr>
      <td>-d=&lt;chaîne&gt;</td>
      <td>Modifier l'horodatage en fonction de la chaîne de date</td>
    </tr>
    <tr>
      <td>-r=&lt;fichier&gt;</td>
      <td>Modifier l'horodatage en fonction du fichier de référence</td>
    </tr>
    <tr>
      <td>-v ou --version</td>
      <td>Afficher la version de la commande touch</td>
    </tr>
    <tr>
      <td>--help</td>
      <td>Afficher le menu d'aide</td>
    </tr>
  </table>
  <p>Horodatage des fichiers : Sous Linux, chaque fichier et dossier possède un horodatage indiquant quand le contenu du fichier ou ses attributs ont été modifiés...</p>
  <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: white; border: none;">Rejoindre ellohost</button></a>
</body>
</html>

Print this item

  Linux Touch Command Options
Posted by: aaron - 09-08-2023, 12:15 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>
<head>
  <title>Linux Touch Command Options</title>
</head>
<body>
  <h1>Linux Touch Command Options</h1>
  <table border="1">
    <tr>
      <th>Flag</th>
      <th>Use Case</th>
    </tr>
    <tr>
      <td>-a</td>
      <td>Change the access time</td>
    </tr>
    <tr>
      <td>-m</td>
      <td>Change the modification time</td>
    </tr>
    <tr>
      <td>-c</td>
      <td>Prevent creating a new file</td>
    </tr>
    <tr>
      <td>-h</td>
      <td>Change the symbolic link timestamp</td>
    </tr>
    <tr>
      <td>-h</td>
      <td>Change the timestamp for symbolic links</td>
    </tr>
    <tr>
      <td>-t &lt;stamp&gt;</td>
      <td>Modify the timestamp. In this case, &lt;stamp&gt; follows the date-time format</td>
    </tr>
    <tr>
      <td>-d=&lt;string&gt;</td>
      <td>Change the timestamp based on the date string</td>
    </tr>
    <tr>
      <td>-r=&lt;file&gt;</td>
      <td>Change the timestamp based on the reference file</td>
    </tr>
    <tr>
      <td>-v or --version</td>
      <td>Display the touch command version</td>
    </tr>
    <tr>
      <td>--help</td>
      <td>Display the help menu</td>
    </tr>
  </table>
  <p>File Timestamps: In Linux, every file and folder has a timestamp that shows when a file’s content or attributes were modified...</p>
  <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: white; border: none;">Rejoindre ellohost</button></a>
</body>
</html>

Print this item

  Comment installer Docker Compose sur CentOS 7
Posted by: aaron - 09-08-2023, 12:13 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html lang="fr">
<head>
    <title>Comment installer Docker Compose sur CentOS 7</title>
</head>
<body>
    <h1>Comment installer Docker Compose sur CentOS 7</h1>
    <p>Docker Compose est un utilitaire qui nous permet d'afficher des images dans Docker. Il a été créé car de nombreux programmes nécessitent d'autres services pour fonctionner. Par exemple, avec WordPress ou un autre CMS, nous avons besoin, avant tout, d'un serveur web fonctionnel, de l'image d'un gestionnaire de base de données et enfin de l'image de l'application.</p>
    <p>Nous devrions les déployer un par un et les configurer. Avec Docker Compose, nous pouvons tout définir dans un fichier, avec toutes les images dépendantes de l'image principale, et les charger normalement.</p>
    <p>Pour installer Docker Compose sur CentOS 7, nous devons exécuter cette commande :</p>
    <pre><code>curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose</code></pre>
    <p>Si nous n'avons pas curl installé, nous pouvons le faire avec la commande suivante :</p>
    <pre><code>yum install curl</code></pre>
    <p>Ensuite, nous devons attribuer des permissions d'exécution au binaire Docker Compose :</p>
    <pre><code>chmod +x /usr/local/bin/docker-compose</code></pre>
    <p>Et maintenant, pour éviter tout problème lors de l'utilisation de l'utilitaire dans le terminal, nous devons créer un lien symbolique vers le système :</p>
    <pre><code>ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose</code></pre>
    <p>Enfin, vérifiez la version installée :</p>
    <pre><code>docker-compose --version</code></pre>
    <p>Et nous sommes prêts à utiliser à la fois Docker et Docker Compose.</p>
</body>
</html>

Print this item

  How to Install Docker Compose on CentOS 7
Posted by: aaron - 09-08-2023, 12:11 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html lang="en">
<head>
    <title>How to Install Docker Compose on CentOS 7</title>
</head>
<body>
    <h1>How to Install Docker Compose on CentOS 7</h1>
    <p>Docker Compose is a utility that allows us to display images in Docker. It was created because many programs require other services to run. For example, with WordPress or another CMS, we require, first of all, a functional web server, and the image of a database manager and finally the image of the application.</p>
    <p>We would have to deploy them one by one and configure them. With Docker Composer we can define everything in a file, with all the images dependent on the main one and load them normally.</p>
    <p>To install Docker Compose on CentOS 7, we need to run this command:</p>
    <pre><code>curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose</code></pre>
    <p>In case we do not have curl installed, we can do it using the following command:</p>
    <pre><code>yum install curl</code></pre>
    <p>Then we have to assign execution permissions to the Docker Compose binary:</p>
    <pre><code>chmod +x /usr/local/bin/docker-compose</code></pre>
    <p>And now, to ensure there are no problems when using the utility in the terminal, we will have to make a symbolic link to the system:</p>
    <pre><code>ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose</code></pre>
    <p>Finally, check the installed version:</p>
    <pre><code>docker-compose --version</code></pre>
    <p>And we’re ready to use both Docker, and Docker Compose.</p>
</body>
</html>

Print this item

  Principes de base de Docker
Posted by: aaron - 09-08-2023, 12:10 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html lang="fr">
<head>
    <title>Principes de base de Docker</title>
</head>
<body>
    <h1>Principes de base de Docker</h1>
    <p>Tout d'abord, exécutons la commande "Hello World" de Docker pour commencer. Pour ce faire, nous devons exécuter la commande suivante :</p>
    <pre><code>docker run hello-world</code></pre>
    <p>Cette image de test est celle que Docker recommande de vérifier à chaque réinstallation de l'utilitaire.</p>
    <p>Nous pouvons vérifier toutes les images que nous avons dans notre système avec cette commande :</p>
    <pre><code>docker images</code></pre>
    <p>Ou recherchez un image disponible dans le référentiel Docker avec la commande de recherche.</p>
    <pre><code>docker search [recherche]</code></pre>
    <p>Par exemple, nous pouvons rechercher une image liée à CentOS 7 :</p>
    <pre><code>docker search centos7</code></pre>
    <p>Et si nous voulons la télécharger, nous pouvons le faire avec la commande suivante :</p>
    <pre><code>docker pull [nom_de_l'image]</code></pre>
    <p>Enfin, pour l'exécuter, nous utiliserons la commande run. Nous pourrons appeler l'image par son ID ou directement par son nom.</p>
    <pre><code>docker run -t -i [ID_de_l'image ou nom_de_l'image]</code></pre>
    <p>L'option -i signifie que nous rendrons l'image interactive, tandis que l'option -t signifie que nous aurons accès à un terminal et pourrons en simuler un.</p>
    <p>Pour quitter une image, nous devons appuyer sur CTRL+D.</p>
</body>
</html>

Print this item

  Docker Basics
Posted by: aaron - 09-08-2023, 12:09 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html lang="en">
<head>
    <title> Docker Basics </title>
</head>
<body>
    <h1>Docker Basics</h1>
    <p>First, let us run Docker’s “Hello World” command as a start. To do it, we need to run the following command:</p>
    <pre><code>docker run hello-world</code></pre>
    <p>This test image is the one that Docker recommends checking every time you reinstall the utility.</p>
    <p>We can verify all the images we have in our system with this command:</p>
    <pre><code>docker images</code></pre>
    <p>Or search the Docker repository for an available image with the search command.</p>
    <pre><code>docker search [search]</code></pre>
    <p>For example, we can search for an image related to CentOS 7.</p>
    <pre><code>docker search centos7</code></pre>
    <p>And if we want to download it, we can do it with the following command:</p>
    <pre><code>docker pull [image_name]</code></pre>
    <p>Finally, to execute it we will use the run command. We will be able to call the image by its ID or directly by its name.</p>
    <pre><code>docker run -t -i [image_id or image_name]</code></pre>
    <p>The option -i means that we will make the image interactive, while the option -t means we will have access to a terminal and can simulate one.</p>
    <p>To exit from an image, we need to press CTRL+D.</p>
</body>
</html>

Print this item

  Comment installer Docker sur CentOS 7
Posted by: aaron - 09-08-2023, 12:08 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html lang="fr">
<head>
    <title>Comment installer Docker sur CentOS 7</title>
</head>
<body>
    <h1>Comment installer Docker sur CentOS 7</h1>
    <p>L'installation de Docker sur CentOS 7 est simple. Pour ce faire, il est nécessaire de se connecter à notre serveur en utilisant SSH :</p>
    <pre><code>ssh votre-utilisateur@votre-serveur</code></pre>
    <p>Ensuite, nous devons installer une série de packages avant d'installer Docker. Nous devons être l'utilisateur root et exécuter la commande suivante dans la ligne de commande :</p>
    <pre><code>yum install -y yum-utils device-mapper-persistent-data lvm2</code></pre>
    <p>La manière la plus simple et la plus sûre de mener à bien le processus est via les dépôts officiels de Docker. Pour ce faire, il est nécessaire d'exécuter cette commande :</p>
    <pre><code>yum-config-manager --add-repo https://download.docker.com/linux/centos...code></pre>
    <p>Après cela, nous pouvons installer Docker sur CentOS 7 en exécutant la commande suivante :</p>
    <pre><code>yum install docker-ce</code></pre>
    <p>Nous savons maintenant comment installer Docker sur CentOS. Mais il n'est pas encore en cours d'exécution ! Pour activer et démarrer Docker, exécutez les commandes suivantes :</p>
    <pre><code>systemctl enable docker</code></pre>
    <pre><code>systemctl start docker</code></pre>
    <p>Enfin, nous pouvons vérifier l'état du service pour nous assurer que tout s'est bien passé :</p>
    <pre><code>systemctl status docker</code></pre>
    <p>Dans la sortie, nous devrions voir une ligne verte indiquant que Docker est en cours d'exécution.</p>
</body>
</html>

Print this item

  How to Install Docker on CentOS 7
Posted by: aaron - 09-08-2023, 12:07 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html lang="en">
<head>
    <title>How to Install Docker on CentOS 7</title>
</head>
<body>
    <h1>How to Install Docker on CentOS 7</h1>
    <p>Installing Docker on CentOS 7 is simple. To do this, it is necessary to connect to our server using SSH:</p>
    <pre><code>ssh your-user@your-server</code></pre>
    <p>Then, we have to install a series of packages prior to installing Docker. We need to be the root user and run the following line in the command line:</p>
    <pre><code>yum install -y yum-utils device-mapper-persistent-data lvm2</code></pre>
    <p>The easiest and safest way to complete the process is through Docker’s official repositories. To do this, it is necessary to execute this line:</p>
    <pre><code>yum-config-manager --add-repo https://download.docker.com/linux/centos...code></pre>
    <p>After that, we can install Docker on CentOS 7 by running the following command:</p>
    <pre><code>yum install docker-ce</code></pre>
    <p>We now know how to install Docker on CentOS. But it’s not running yet! To enable and start docker, execute the following commands:</p>
    <pre><code>systemctl enable docker</code></pre>
    <pre><code>systemctl start docker</code></pre>
    <p>Finally, we can check the status of the service to check that everything has gone well:</p>
    <pre><code>systemctl status docker</code></pre>
    <p>In the output, we should see a green line indicating that Docker is up and running.</p>
</body>
</html>

Print this item

  How to Delete Lines From a Particular File Using the sed Command
Posted by: aaron - 09-08-2023, 12:04 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html lang="en">
<head>
    <title>How to Delete Lines From a Particular File Using the sed Command</title>
</head>
<body>
    <h1>How to Delete Lines From a Particular File Using the sed Command</h1>
    <p>The delete command removes lines from the current input file without opening the content. There are five sed scripts available:</p>
    <ul>
        <li>Deleting a particular line of input using the d subcommand:</li>
    </ul>
    <pre><code>sed '#d' samplefile.txt</code></pre>
    <p>For example, to remove the first line from the cities.txt file, run the following:</p>
    <pre><code>sed '1d' cities.txt</code></pre>
    <ul>
        <li>Deleting multiple lines within a specific range:</li>
    </ul>
    <pre><code>sed '#,#d' samplefile.txt</code></pre>
    <p>Replace the # symbols with the start and end of the line range. For example, to delete the first, second, and third line from the cars.txt file, enter the following:</p>
    <pre><code>sed '1,3d' cars.txt</code></pre>
    <ul>
        <li>Deleting a file content’s last line:</li>
    </ul>
    <pre><code>sed '$d' samplefile.txt</code></pre>
    <p>For example, to remove the last line from the computers.txt file, run the following:</p>
    <pre><code>sed '$d' computers.txt</code></pre>
    <ul>
        <li>Deleting from the nth to the last line:</li>
    </ul>
    <pre><code>sed 'nth,$d' samplefile.txt</code></pre>
    <p>For example, to remove the second to the last input line from the books.txt file, enter:</p>
    <pre><code>sed '2,$d' books.txt</code></pre>
    <ul>
        <li>Deleting the pattern matching line:</li>
    </ul>
    <pre><code>sed '/pattern/d' samplefile.txt</code></pre>
    <p>For example, to remove the “oabo” pattern from the filestrings.txt file, run:</p>
    <pre><code>sed '/oabo/d' filestrings.txt</code></pre>
    </body>
</html>

Print this item