List Files and Folders in a Directory in Linux or Windows

List Files and Folders in a Directory in Linux or Windows

Tiempo de lectura: 2 minutos To list files and folders in a directory in Linux or Windows, you need to use the tree command. Of course, here’s a tutorial that explains several options and variants of the tree command on Windows systems. The tree command allows you to visualize the directory and file structure in a directory and its subdirectories … Read more

Fixing SSH Key Permission Issue: Permissions 0644 for ‘*.key’ are too open

Fixing SSH Key Permission Issue: Permissions 0644 for ‘*.key’ are too open

Tiempo de lectura: < 1 minuto html Copy code Reading Time: < 1 minute Today, we are going to learn how to fix the error: Permissions 0644 for ‘*.key’ are too open. It is required that your private key files are NOT accessible by others.This private key will be ignored.Load key “*.key”: bad permissionsPermission denied (publickey). This problem is due to … Read more

Bash Script Example of a Console Menu

Bash Script Example of a Console Menu

Tiempo de lectura: < 1 minuto EnlighterJSRAW”>#!/bin/bash Function to print “Hello” function hello() { echo “Hello” } Function to print “Goodbye” function goodbye() { echo “Goodbye” } Menu echo “Select an option:” echo “1. Print Hello” echo “2. Print Goodbye” echo “3. Print Hello and Goodbye” read option case $option in 1) hello ;; 2) goodbye ;; 3) hello goodbye ;; … Read more

Linux Space Issue (Inodes)

Linux Space Issue (Inodes)

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If we have enough disk space and still encounter errors like No space left on device or Write failed. The first thing we need to do is check if there is space on the machine using the command: df -a As we can see, there is 30% available space and ... Read more

Configure your SSH connections with the .ssh folder for Windows and Ubuntu

Configure your SSH connections with the .ssh folder for Windows and Ubuntu

Tiempo de lectura: 2 minutos Reading time: 2 minutes In order to connect to remote servers, we can use the .ssh folder configuration and the config file that Ubuntu and Windows use to create SSH connections. This tool is presented as an alternative to Putty. The first thing we need to do is create our .ssh directory: In Ubuntu, it … Read more

Executing a Command in a Docker Compose Container Using the Ubuntu Console

Executing a Command in a Docker Compose Container Using the Ubuntu Console

Tiempo de lectura: 2 minutos Reading time: 2 minutes Continuing with the Docker tutorials, I will explain how we can execute a command inside a Docker container using the Ubuntu console. If we have this example Docker Compose taken from the tutorial Deploying Apache Web Server with PHP using Docker Compose version: “3” # Indicate the Docker Compose version we … Read more

Scripts to deploy Docker Compose

Scripts to deploy Docker Compose

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Today I bring you some scripts that can help us deploy our Docker Compose automatically. These scripts are programmed in Bash and can be used in Ubuntu (.sh) Script to deploy Docker Compose in the background #!/bin/bash # -*- ENCODING: UTF-8 -*- echo "Deploying Docker container" echo "1. Closing container ... Read more