---
defaults: &defaults
A: 1
B: 2
mapping:
<< : *defaults
A: 23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.allowall=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> https://stackoverflow.com/questions/59895/how-to-get-the-source-directory-of-a-bash-script-from-within-the-script-itself | |
DIR=$(dirname "${BASH_SOURCE[0]}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tracert - Windows | |
traceroute - Linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Конструкция &> позволяет объединить стандартные потоки вывода stdout и ошибок stderr в рамках одного потока данных (причем данные будут сохраняться в файле). | |
paul@debian7:~$ rm file42 &> out_and_err |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
По умолчанию вы не можете использовать утилиту grep для обработки данных стандартного потока ошибок stderr приложения при использовании программных каналов в рамках строки команды, так как данная утилита получает данные исключительно из стандартного потока вывода stdout приложения. | |
paul@debian7:~$ rm file42 file33 file1201 | grep file42 | |
rm: невозможно удалить "file42": Нет такого файла или каталога | |
rm: невозможно удалить "file33": Нет такого файла или каталога | |
rm: невозможно удалить "file1201": Нет такого файла или каталога | |
С помощью конструкции 2>&1 вы можете переправить данные из стандартного потока ошибок stderr в стандартный поток вывода stdout приложения. Это обстоятельство позволяет обрабатывать передаваемые посредством программного канала данные из обоих потоков с помощью следующей команды. | |
paul@debian7:~$ rm file42 file33 file1201 2>&1 | grep file42 | |
rm: невозможно удалить "file42": Нет такого файла или каталога |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Для перенаправления данных как из стандартного потока вывода, | |
так и из стандартного потока ошибок в один и тот же файл следует использовать конструкцию 2>&1. | |
[paul@RHELv4u3 ~]$ find / > allfiles_and_errors.txt 2>&1 | |
[paul@RHELv4u3 ~]$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=wildfly | |
After=network.target | |
After=syslog.target | |
[Install] | |
WantedBy=multi-user.target | |
[Service] | |
Type=simple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=tomcat | |
After=network.target | |
After=syslog.target | |
[Install] | |
WantedBy=multi-user.target | |
[Service] | |
Type=forking |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> https://docs.gradle.org/current/samples/sample_building_kotlin_applications.html | |
gradle init |