I have an algorithm that starts with a file. From this file, it generates several others. I need to get all the names of these generated files, to from them, rerun my algorithm.
Basically I wanted to know how to do in Shell Script to go through...
My system has two monitors so the main one is in the middle (or right) and the secondary one on the left.
The problem is that Linux always seems to take the left one to be the main one. The taskbar and menu are in it and the windows also open...
I would like to change the log of my GIT server using a hook.
The situation is as follows, when someone commits and the local machine has the wrong date, the log shows the local machine time. I would like that through a hook it would change...
I use a script that is run by cron every 1 hour to find updates and update the system.
I wanted the user to be warned that he started the update so that he would not turn off the computer, and when he finished updating another message, he war...
I know that in Linux or Windows I can redirect the output of a program to be saved to a file instead of being displayed on the end with the command > :
./a.out > arqSaida.txt
Or write at the end of the file instead of replacing...
Currently I have two network cards on my Ubuntu 16.04 server, configured as follows in the interfaces file:
auto lo eno1 enp2s0
iface lo inet loopback
#Rede Externa que vai para antena de Internet
iface eno1 inet static
address 192.168.0.100...
I've been deleting all the files and directories in a specific directory on a Linux CentOS 7 and I came across the following situation: the danger of changing the command
sudo rm -fR ./*
by
sudo rm -fR /*
(Forgetting the endpoint bef...
I'm wanting to check for disk crashes and through some searches I found the fsck command. When I tried to verify, this message appeared:
$ fsck /dev/sda1
fsck de util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
/dev/sda1 is mounted.
WARNING...