AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-173648

Dimitrios Desyllas's questions

Martin Hope
Dimitrios Desyllas
Asked: 2025-03-28 03:53:41 +0800 CST

为什么在 test.md 上附加了控制字符?

  • 5

我正在使用对话框来将单个值修改到文件中:

#!/usr/bin/env bash

prompt_and_save() {
    local file=$1
    local message=$2
    local value=""

    # Check if file exists and read value
    if [ -f "$file" ]; then
        value=$(cat "$file")
    fi

    # Prompt user with dialog
    value=$(dialog --inputbox "$message" 8 50 "$value" 3>&1 1>&2 2>&3)

    # Save the value if not empty
    if [ ! -z "$value" ]; then
        echo "$value" > "$file"
    fi

    clear

    # Return the value
    echo "$value"
}

UPSTREAM_VERSION=$(prompt_and_save "VERSION" "Bump the version (or keep it the same)")
clear
NEW_ENTRY="# Version $UPSTREAM_VERSION $DATE"
RELEASE_NOTES=$(cat RELEASE_NOTES)

echo -e "$NEW_ENTRY\n${RELEASE_NOTES}" > test.md

但运行这个脚本我得到了test.md这些值:

# Version ^[[H^[[2J^[[3J0.2.0 
1. Split codebase into multiple files.
2. Use a seperate version file and define built version upon compile.
4. [BUGFIX] If input file is same as output file copy input file into a temporary one.
5. Improved Documentation
6. [BUGFIX] Out of bounds argument parsing
7. [BUGFIX] Values should not be an Argument

我怎样才能从文件中删除它UPSTREAM_VERSION之前的所有控制字符?echo

bash
  • 2 个回答
  • 38 Views
Martin Hope
Dimitrios Desyllas
Asked: 2025-03-11 02:26:57 +0800 CST

为什么在我的脚本中我无法在 Debian 上放置多行文本变更日志条目?

  • 9

我正在使用这个 bash 脚本自动升级我的项目版本:

#!/usr/bin/env bash

CHANGELOG="Changelog.md"
DEBIAN_CHANGELOG="debian/changelog"
UPSTREAM_VERSION=$(cat VERSION)

# Updating entries in rpm files

DEB_RELEASE_NOTES=$(awk '{print "  * " $0}' < RELEASE_NOTES)

echo "Adding new Debian changelog entry for version $UPSTREAM_VERSION."
dch -D unstable -m "$DEB_RELEASE_NOTES" --newversion "$UPSTREAM_VERSION-0debian1-unstable1"

# Prompt user to edit Debian changelog
$EDITOR_CHOICE "$DEBIAN_CHANGELOG"

echo "Version updated successfully: $UPSTREAM_VERSION"

它的作用是同步并将版本放在 rpm 和 debian 包中。但是这个命令:

dch -D unstable -m "$DEB_RELEASE_NOTES" --newversion "$UPSTREAM_VERSION-0debian1-unstable1"

给我带来了一些麻烦,因为在 debian/changelog 中存在以下内容:

mkdotenv (0.2.0-0debian1-unstable1) unstable; urgency=medium

  *   * 1. Split codebase into multiple files.   * 2. Use a seperate
    version file and define built version upon compile.   * 4. [BUGFIX]
    If input file is same as output file copy input file into a
    temporary one.   * 5. Improved Documentation

 -- Dimitrios Desyllas <[email protected]>  Mon, 10 Mar 2025 20:08:00 +0200

该RELEASE_NOTES文件包含:

1. Split codebase into multiple files.
2. Use a seperate version file and define built version upon compile.
4. [BUGFIX] If input file is same as output file copy input file into a temporary one.
5. Improved Documentation

您知道为什么所有行都卡在单个项目符号中吗?

shell-script
  • 2 个回答
  • 371 Views
Martin Hope
Dimitrios Desyllas
Asked: 2023-10-06 19:42:54 +0800 CST

如何通过 grep 值聚合 find 命令中的匹配项?

  • 6

我正在寻找<source_model>.*</source_model>位于以下位置的任何文件的所有出现./vendor/magento/*/etc/adminhtml/system.xml:

find ./vendor/magento/ -type f -path */etc/adminhtml/system.xml -exec grep -P "<source_model>.*</source_model>" {} +

但输出的形式是:

./vendor/magento/module-authorizenet-cardinal/etc/adminhtml/system.xml:                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>

我想提取值:

<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<source_model>Magento\Captcha\Model\Config\Mode</source_model>
...

这样我就可以排序了。我怎样才能做到这一点?

bash
  • 1 个回答
  • 25 Views
Martin Hope
Dimitrios Desyllas
Asked: 2023-09-14 21:14:07 +0800 CST

使用 find 来检测 magento 模块

  • 5

在magento路由位于adminhtml/routes.xml每个模块都有一个以adminhtml文件命名的文件夹routes.xml每个模块都有自己的文件夹。换句话说,我有以下文件结构:

vendor
+ MyModule
++ etc
+++ adminhtml
++++ routes.xml
+ AnotherModule
++ etc
+++ adminhtml
++++ routes.xml
....

我想扫描vendor目录并查看哪些文件路径route.xml具有特定单词:

$ find ./vendor -name adminhtml\/routes.xml -exec grep "sales" {} + 

但我没有得到任何价值,而且还收到以下警告:

find: warning: ‘-name’ matches against basenames only, but the given pattern contains a directory separator (‘/’), thus the expression will evaluate to false all the time.  Did you mean ‘-wholename’?

如何找到位于特定文件夹模式中且具有特定单词的文件?

grep
  • 2 个回答
  • 15 Views
Martin Hope
Dimitrios Desyllas
Asked: 2023-09-08 15:40:16 +0800 CST

为什么我无法将数据库从一个容器传输到另一个容器?

  • 5

就我而言,我有 2 个 mariadb 容器,运行着 2 个独立的卷:

CONTAINER ID   IMAGE                                 COMMAND                  CREATED          STATUS                    PORTS                                                                                                                                                 NAMES
952988c62c2c   mariadb:10.4                          "docker-entrypoint.s…"   22 minutes ago   Up 22 minutes             3306/tcp                                                                                                                                              php_dev_db_1
799f2226367f   mariadb:10.4                          "docker-entrypoint.s…"   4 days ago       Up 30 minutes (healthy)   0.0.0.0:3306->3306/tcp, :::3306->3306/tcp                                                                                                             test_magento-db-1

我尝试通过管道将数据库从一个数据库传输到另一个数据库:

docker exec 799f2226367f mysqldump -u magento -pmagento magento > docker exec 952988c62c2c mysql -u magento -pmagento magento

但我收到错误:

mysqldump: Couldn't find table: "exec"

我不知道为什么。

docker
  • 1 个回答
  • 26 Views
Martin Hope
Dimitrios Desyllas
Asked: 2023-04-06 22:07:55 +0800 CST

为什么作为参数提供的命令不在我的脚本中循环运行?

  • 7

我做了一个简单的脚本,每分钟执行一条命令:

#!/usr/bin/env sh

while true; do
    exec "$@"
    sleep 60
done

我的想法是让它成为一个Docker 入口点,让我可以运行 Laravel 调度程序。但在构建图像之前,我想对其进行测试:

$ ./entrypoint/entrypoint_cron.sh echo "Hello"
Hello

但该命令只执行一次。为什么?以及如何使参数中提供的命令在连续循环中运行,直到我用Ctrl+终止它C?

shell-script
  • 1 个回答
  • 145 Views
Martin Hope
Dimitrios Desyllas
Asked: 2022-09-23 05:37:45 +0800 CST

如何使用 diff 从 a.txt 文件中获取缺失的行?

  • 0

我有以下文件:

一个.txt

1
2
11
22
33
444

b.txt

1
2
3
11
22
33
555

我想从 a.txt 中检索 b.txt 上不存在的行。

我试过了:

diff a.txt b.txt -d
2a3
> 3
6c7
< 444
---
> 555

但我希望输出是

444

仅有的。有没有办法在差异上放置某种过滤器?

diff
  • 2 个回答
  • 23 Views
Martin Hope
Dimitrios Desyllas
Asked: 2019-06-30 07:25:15 +0800 CST

Docker 吃 /var 空间我怎么能节省一些?

  • 1

因为对这个问题有一些很好的评论,所以我认为在这个特定的问题中它们可能是很好的答案和有益的。

所以为了能对社区更有利,我想能在这里得到解答。

在我的 gnu/linux 系统中,我有/var20G 大,但由于使用 docker 和自定义 docker 映像的开发,/var占用了 90% 的空间,那么我如何才能在其中保留一些空间/var?

我最初想像这个问题所说的那样做一些备份,然后重新分区/var. 但对我来说似乎太费力了。有没有更安全、更省时的替代方案?

docker disk-usage
  • 2 个回答
  • 199 Views
Martin Hope
Dimitrios Desyllas
Asked: 2019-04-16 08:29:36 +0800 CST

sudo rm -rf 不删除非空文件夹

  • 1

/media/pcmagas/Backup disk我已经安装了一个包含文件夹的外部硬盘dimitrios。当我尝试使用以下命令将其删除时:

/media/pcmagas/Backup disk
sudo rm -rf ./dimitrios

我收到此错误:

rm: cannot remove './dimitrios/Kwdikas/Javascript/data_map/node_modules/random-bytes': Directory not empty

挂载的磁盘是ntfs,我已经挂载到了Ubuntu GNU/Linux系统中。

当我运行时,ls -l ./dimitrios/Kwdikas/Javascript/data_map/node_modules/random-bytes我收到以下错误:

ls: reading directory './dimitrios/Kwdikas/Javascript/data_map/node_modules/random-bytes': Input/output error
ubuntu mount
  • 1 个回答
  • 1031 Views
Martin Hope
Dimitrios Desyllas
Asked: 2019-04-16 04:40:16 +0800 CST

Rsync 保留在文本文件中失败的传输

  • 0

为了备份我的文件,我执行rsync了一些文件,但由于 rsync 显示的输出量很大,我想将失败的传输保存到一个文件中,以便更好地区分它们。

你知道怎么做吗?

backup rsync
  • 1 个回答
  • 268 Views
Martin Hope
Dimitrios Desyllas
Asked: 2018-09-29 13:25:04 +0800 CST

Sed 无法将结果存储到变量中

  • 0

我尝试把这个命令的结果值:

sed "s/\$ip/${ip}/g" xdebug.conf

从此文件提供xdebug.conf:

zend_extension = xdebug.so
xdebug.remote_enable = 1
xdebug.remote_host = $ip
xdebug.remote_port = 9091
xdebug.max_nesting_level = 1000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
xdebug.remote_log=xdebug.log

放入一个名为$conmfiguration.

为了实现这一点,我尝试:

ip="125.12.22.1"
$configuration=$(sed "s/\$ip/${ip}/g" xdebug.conf)

但我得到以下奇怪的结果:

=zend_extension: 找不到命令

你知道为什么会这样吗?

shell-script shell
  • 1 个回答
  • 1127 Views
Martin Hope
Dimitrios Desyllas
Asked: 2018-09-13 12:16:41 +0800 CST

Homestead 以 root 身份运行命令

  • 0

在我的 Homestead 配置中,我尝试让我的after.sh脚本自动配置 xdebug,以便通过框更新或重新创建能够为它实施我的配置,而无需一直手动重做。

脚本如下:

#!/bin/sh

echo "Configuring Xdebug"
ip=$(netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10)
xdebug_config="/etc/php/$(php -v | head -n 1 | awk '{print $2}'|cut -c 1-3)/mods-available/xdebug.ini"

echo "IP for the xdebug to connect back: ${ip}"
echo "Xdebug Configuration path: ${xdebug_config}"
echo "Port for the Xdebug to connect back: ${XDEBUG_PORT}"
echo "Optimize for ${IDE} ide"
first_line=$(head -n1 ${xdebug_config})

if [ $IDE=='atom' ]; then
  echo "Configuring xdebug for ATOM ide"
  sudo cat <<EOL >${xdebug_config}
${first_line}
xdebug.remote_enable = 1
xdebug.remote_host=${ip}
xdebug.remote_port = ${XDEBUG_PORT}
xdebug.max_nesting_level = 1000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
xdebug.remote_log=xdebug.log
EOL
fi

我Homestead.yml的如下:

ip: 192.168.10.10
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
timeout: 120

keys:
    - ~/.ssh/id_rsa
folders:
    -
        map: /home/pcmagas/Kwdikas/php/apps/ellakcy_member_app/
        to: /home/vagrant/code
sites:
    -
        map: homestead.test
        to: /home/vagrant/code/web
        type: symfony

databases:
    - homestead
    - homestead-test

variables:
  - key: database_host
    value: 127.0.0.1
  - key: database_port
    value: 3306
  - key: database_name
    value: homestead
  - key: database_user
    value: homestead
  - key: database_password
    value: secret
  - key: smtp_host
    value: localhost
  - key: smtp_port
    value: 1025
  - key: smtp_user
    value: [email protected]
  - key: IDE
    value: atom
  - key: XDEBUG_PORT
    value: 9091

name: ellakcy-member-app
hostname: ellakcy-member-app

我已经设置了以下额外的环境变量:

  - key: IDE
    value: atom
  - key: XDEBUG_PORT
    value: 9091

所以我可以为 xdebug 提供一个细粒度的配置。

但是当我运行Iget 时vagrant provision出现以下错误(为了节省空间我做了 nbot 把整个输出):

ellakcy-member-app:/tmp/vagrant-shell:37:/tmp/vagrant-shell:无法创建/etc/php/7.2/mods-available/xdebug.ini:权限被拒绝

这是由他的命令引起的:

sudo cat <<EOL >${xdebug_config}
${first_line}
xdebug.remote_enable = 1
xdebug.remote_host=${ip}
xdebug.remote_port = ${XDEBUG_PORT}
xdebug.max_nesting_level = 1000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
xdebug.remote_log=xdebug.log
EOL

所以我想知道如何自动配置 Homestead Vagrant box 的设置?(例如 xdebug 配置一)

shell-script sudo
  • 1 个回答
  • 525 Views
Martin Hope
Dimitrios Desyllas
Asked: 2018-09-13 11:18:39 +0800 CST

替换除第一行以外的所有内容

  • 0

我有以下 shell 脚本:

#!/bin/sh
echo "Configuring Xdebug"
ip=10.0.2.2
xdebug_config="/etc/php/7.2/mods-available/xdebug.ini"

echo "IP for the xdebug to connect back: ${ip}"
echo "Xdebug Configuration path: ${xdebug_config}"
echo "Port for the Xdebug to connect back: ${XDEBUG_PORT}"
echo "Optimize for ${IDE} ide"

if [ $IDE=='atom' ]; then
  echo "Configuring xdebug for ATOM ide"
  config="xdebug.remote_enable = 1
xdebug.remote_host=${ip}
xdebug.remote_port = ${XDEBUG_PORT}
xdebug.max_nesting_level = 1000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
xdebug.remote_log=xdebug.log"
 # replace the file in $xdebug_config var except first line
fi

我想要的是替换$xdebug_config变量EXCEPT第一行中提到的文件中的第一行。例如,如果文件是:

line 1
line 2
somethig else
lalala

我想像这样转换:

line 1
xdebug.remote_enable = 1
xdebug.remote_host=${ip}
xdebug.remote_port = ${XDEBUG_PORT}
xdebug.max_nesting_level = 1000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
xdebug.remote_log=xdebug.log

我怎样才能做到这一点?

编辑 1

根据评论的要求,$xdebug_config可以包含以下可能的值:

 /etc/php/7.2/mods-available/xdebug.ini
 /etc/php/5.6/mods-available/xdebug.ini
 /etc/php/7.0/mods-available/xdebug.ini

一般会采用以下格式:

 /etc/php/^number^.^number^/mods-available/xdebug.ini

编辑 2

为了更清晰,我完善了 shell 脚本。

shell-script text-processing
  • 4 个回答
  • 182 Views
Martin Hope
Dimitrios Desyllas
Asked: 2018-06-07 03:25:20 +0800 CST

即使我阅读了手册,我也无法理解 -c 参数在 Ubuntu GNU/Linux 的 tr 命令中的作用

  • 2

我尝试根据它说的命令来理解命令-c中的选项:trman tr

-c, -C, --complement 使用 SET1 的补码

但我无法理解文档中“补充”的含义,所以我做了以下示例来理解它:

我创建了以下名为trance.txt:

ILOVE YOU
I HATE YOU
i WANNA EAT APPLE PIE

我跑:tr -C A-Za-z "\n" < trance.txt

这给出了输出:

ILOVE
YOU
I
HATE
YOU
i
WANNA
EAT
APPLE
PIE

但我仍然不明白-c选项的实际作用。你能给我解释一下吗?

tr
  • 1 个回答
  • 437 Views
Martin Hope
Dimitrios Desyllas
Asked: 2018-05-06 12:58:41 +0800 CST

Alpine Linux 运行启动脚本来更改 /etc/issue

  • 13

我已经完成了以下 shell 脚本,它/etc/issue使用所有非环回接口的当前 ip 更新:

#!/bin/sh
echo "You can use one of the following ip addresses in order to look the page or even ssh into the machine" > /etc/issue
ip -4 -o addr show up  scope global | awk '{print $2,":",$4}'| sed -e "s/\/[1-9]*//" >> /etc/issue

现在我想让它在启动时运行,以便/etc/issue使用网络 ips 更新。在基于 Debian 的发行版上,我会把它放在上面,/etc/rc.local但 alpine 没有这个文件。我将如何使这个脚本以等效的方式运行/etc/rc.local?

编辑 1

我试着穿上它,/etc/local.d但它未能正确改变/etc/issue

shell-script startup
  • 1 个回答
  • 14794 Views
Martin Hope
Dimitrios Desyllas
Asked: 2018-05-04 13:21:45 +0800 CST

Alpine Linux 有时 DNS 无法解析

  • 8

有时当我运行命令时:

sudo apk update && sudo apk upgrade

即使连接到互联网,Alpine linux 也无法更新软件包。但如果我这样做,sudo su "echo 'nameserver 8.8.8.8' > /etc/resolv.conf"我会设法下载它们。但是这个解决方案:

  • 让我感到沮丧,我需要一直设置 dns。
  • 有时/etc/resolv.conf会被自己覆盖。

我怎样才能有一个更永久的解决方案?

alpine-linux resolv.conf
  • 3 个回答
  • 21880 Views
Martin Hope
Dimitrios Desyllas
Asked: 2018-05-03 07:04:44 +0800 CST

在 alpine 上安装 php7:缺少 libcrypto 和 libssl

  • 3

我尝试在没有 docker 的 VM 上运行的 Alpine GNU/Linux 发行版上设置 LEMP堆栈。

然后我尝试php7-mysqli通过社区存储库安装 over:

sudo apk add php7-mysqli

但我收到以下错误:

ERROR: unsatisfiable constraints:
  so:libcrypto.so.43 (missing):
    required by: php7-openssl-7.2.5-r0[so:libcrypto.so.43] php7-openssl-7.2.5-r0[so:libcrypto.so.43]
  so:libssl.so.45 (missing):
    required by: php7-openssl-7.2.5-r0[so:libssl.so.45] php7-openssl-7.2.5-r0[so:libssl.so.45]

我已经安装了libressl,但错误仍然存​​在。知道为什么会这样吗?请记住,我已将存储库设置为社区的存储库:

http://dl-2.alpinelinux.org/alpine/edge/community

编辑1:

我按照https://www.cyberciti.biz/faq/how-to-install-php-7-fpm-on-alpine-linux/中提到的说明进行操作

编辑2:

我尝试libressl2.6-libcrypto-2.6.3-r0通过以下命令安装:

sudo apk add libressl2.6-libcrypto-2.6.3-r0

我得到以下输出:

ERROR: unsatisfiable constraints:
  libressl2.6-libcrypto-2.6.3-r0 (missing):
    required by: world[libressl2.6-libcrypto-2.6.3-r0]

如果我尝试安装libressl软件包,我会收到以下响应:

sudo apk add libressl
(1/2) Installing libressl2.6-libtls (2.6.3-r0)
(2/2) Installing libressl (2.6.3-r0)
Executing busybox-1.27.2-r8.trigger
OK: 119 MiB in 53 packages

问题仍然存在。

我也尝试libressl2.7-libcrypto通过以下方式安装:

sudo apk add libressl2.7-libcrypto

我收到以下错误:

ERROR: unsatisfiable constraints:
  libressl2.7-libcrypto (missing):
    required by: world[libressl2.7-libcrypto]
alpine-linux php7
  • 3 个回答
  • 7125 Views
Martin Hope
Dimitrios Desyllas
Asked: 2018-04-07 03:57:47 +0800 CST

删除 .gitignore 中提到的任何文件

  • 5

我在文件中有以下条目,.gitignore我想删除它们。原因是因为这些文件是在 TeX 编译期间创建的临时垃圾文件,我希望能够删除它们。

我怎么能这样做?

git rm
  • 3 个回答
  • 2912 Views
Martin Hope
Dimitrios Desyllas
Asked: 2018-03-18 04:58:42 +0800 CST

aireplay:我找不到数字模式的文档

  • 0

我已经设置了一个 wep wi-fi,我尝试破解它,但我已经搜索了网络,但我找不到aireplay-ng模式的支持文档。我的意思是,我设法嗅探数据包,airodump-ng但找不到找出正确模式的方法aireplay-ng。

aircrack-ng
  • 1 个回答
  • 18 Views
Martin Hope
Dimitrios Desyllas
Asked: 2017-12-30 12:38:13 +0800 CST

查找包含十六进制和随机字符串的字符串有多少十六进制值

  • 0

我有~/dummy_hex.txt包含十六进制和随机字符串的文件:

\x12\xA1\xF1\xE3somegibberigh

我想计算上面的字符串有多少个十六进制值(\x^hex_digit^^hex_digit^ 组)。在上面的示例中,我希望运行命令以返回数字4。

换句话说,我想在我的终端上输入:

command ^file_having hex^

并返回值 4

到目前为止,我尝试通过以下方式做到这一点:

sed 's/[^\x[0-9A-Fa-f][0-9A-Fa-f]]//g' dummy_hex.txt | awk '{ print length }'

但是由于正则表达式错误类型,似乎以某种方式返回了错误的结果。你能告诉我如何使用完整的 PCRE 兼容正则表达式和 sed 来做到这一点吗?

或者,我想计算我的字符串包含多少个十六进制值。

编辑 1

另一种方法是计算\x字符串的出现次数,但这可能会计算任何\x可能没有跟随指示十六进制字符串的值的杂散。

 sed 's/[^\x]//g' dummy_hex.txt | awk '{ print length }'

此外,我尝试使用-r启用 PCRE 的选项来做到这一点:

 sed -r 's/^\\x[0-9A-Fa-f][0-9A-Fa-f]]/g' dummy_hex.txt | awk '{ print length }'

但我得到了错误:

sed: -e 表达式 #1, char 31: 未终止的 `s' 命令

text-processing sed
  • 4 个回答
  • 1275 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve