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-135038

SebMa's questions

Martin Hope
SebMa
Asked: 2024-11-07 00:44:19 +0800 CST

如何使用 crudini 从 cli 编辑 /etc/krb5.conf?

  • 4

我正在尝试/etc/krb5.conf用进行编辑crudini。

我尝试过这个:

$ sudo crudini --set /etc/krb5.conf libdefaults renew_lifetime 7d
Source contains parsing errors: '<???>'
        [line  2]:      default_realm = myDOMAIN.LAN
$ echo $?
1
$

我期望这样:

$ sudo crudini --set /etc/krb5.conf libdefaults renew_lifetime 7d
$ crudini --get /etc/krb5.conf libdefaults renew_lifetime
7d
$
linux
  • 1 个回答
  • 19 Views
Martin Hope
SebMa
Asked: 2024-09-06 01:47:25 +0800 CST

如何替换最后一行的模式

  • 5

我正在尝试"},"用"}"文件最后一行替换:

我的/etc/firefox/policies/policies.json文件像这样,因为我使用循环添加了证书行for:

$ cat /etc/firefox/policies/policies.json
{
  "policies": {
    "Certificates": {
      "Install": [
        {"cert1.der", "/home/username/cert1.pem"},
        {"cert2.der", "/home/username/cert2.pem"},
$ 

"\n"请注意,此文件末尾还没有。在将其添加到我的 JSON 文件末尾之前:

      ]
    }
  }
}

,例如,我怎样才能删除最后一个:用“}”替换“},”?

sed似乎是一个复杂的解决方案,是否有使用awk或更易读的解决方案perl?

bash
  • 3 个回答
  • 42 Views
Martin Hope
SebMa
Asked: 2022-11-11 00:52:23 +0800 CST

tar 提取为指定用户:tar: /home/administrateur/glpi-10.0.3.tar: Cannot open: Permission denied

  • 5

无法以www-data用户身份提取 tar 存档,出现Cannot open: Permission denied错误:

$ mkdir $HOME/tmp
$ sudo chown www-data $HOME/tmp
$ ll -d $HOME/tmp
drwxrwxr-x 2 www-data administrateur 4096 2022-11-10 09:43:14 /home/administrateur/tmp/
$ ll $HOME/glpi-10.0.3.tar
-rwxrwxrwx 1 administrateur administrateur 216893440 2022-09-14 14:28:21 glpi-10.0.3.tar*
$ sudo -u www-data tar -C $HOME/tmp/ -xf $HOME/glpi-10.0.3.tar
tar: /home/administrateur/glpi-10.0.3.tar: Cannot open: Permission denied
tar: Error is not recoverable: exiting now
$
sudo
  • 1 个回答
  • 19 Views
Martin Hope
SebMa
Asked: 2022-11-08 08:21:45 +0800 CST

如何应用包含绝对文件路径名的补丁?

  • 5

我想应用这个生成的补丁,但patch命令要求我输入文件路径名:

administrator@server:~$ diff -Nau /etc/php/8.1/fpm/pool.d/www.conf /etc/php/8.1/fpm/pool.d/www.NEW.conf > ~/php8.1-fpm-www.conf.patch
administrator@server:~$ sudo patch -p0 < ~/php8.1-fpm-www.conf.patch
Ignoring potentially dangerous file name /etc/php/8.1/fpm/pool.d/www.conf
Ignoring potentially dangerous file name /etc/php/8.1/fpm/pool.d/www.NEW.conf
cant find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- /etc/php/8.1/fpm/pool.d/www.conf   2022-09-15 13:30:49.000000000 +0200
|+++ /etc/php/8.1/fpm/pool.d/www.NEW.conf       2022-11-07 16:40:35.555078608 +0100
--------------------------
File to patch: ^C
administrator@server:~$
patch
  • 1 个回答
  • 34 Views
Martin Hope
SebMa
Asked: 2022-10-06 10:13:22 +0800 CST

如何检测我是否在控制台上连接

  • 1

我想在进行网络维护之前找到一种可靠的方法来检测我是否在控制台上连接。

到目前为止,我发现了这个:

$ tty | grep /dev/tty
/dev/tty2 # Connected on the console
$ ssh localhost tty | grep /dev/tty
$ # Remotely connected

这是一种可靠的方法吗?

linux tty
  • 1 个回答
  • 21 Views
Martin Hope
SebMa
Asked: 2022-10-05 01:43:27 +0800 CST

如何在 CentOS 上使用 ipcalc?

  • -1

我正在尝试ipcalc在 CentOS 7.9 上使用:

# ipcalc 10.69.69.68/27
Usage: ipcalc [OPTION...]
  -c, --check         Validate IP address for specified address family
  -4, --ipv4          IPv4 address family (default)
  -6, --ipv6          IPv6 address family
  -b, --broadcast     Display calculated broadcast address
  -h, --hostname      Show hostname determined via DNS
  -m, --netmask       Display default netmask for IP (class A, B, or C)
  -n, --network       Display network address
  -p, --prefix        Display network prefix
  -s, --silent        Don't ever display error messages

Help options:
  -?, --help          Show this help message
  --usage             Display brief usage message

它在 Ubuntu 上的工作方式不同:

$ ipcalc 10.69.69.68/27
Address:   10.69.69.68          00001010.01000101.01000101.010 00100
Netmask:   255.255.255.224 = 27 11111111.11111111.11111111.111 00000
Wildcard:  0.0.0.31             00000000.00000000.00000000.000 11111
=>
Network:   10.69.69.64/27       00001010.01000101.01000101.010 00000
HostMin:   10.69.69.65          00001010.01000101.01000101.010 00001
HostMax:   10.69.69.94          00001010.01000101.01000101.010 11110
Broadcast: 10.69.69.95          00001010.01000101.01000101.010 11111
Hosts/Net: 30                    Class A, Private Internet

$
centos
  • 1 个回答
  • 30 Views
Martin Hope
SebMa
Asked: 2022-09-22 07:31:58 +0800 CST

rsync 不排除以哈希字符 (#) 开头的指定目录

  • 2

我正在尝试#recycle使用 rsync 排除目录:

$ rsync -Hauv -h -P --exclude '#recycle/' --exclude @eaDir/ --exclude '.DS_Store*' --exclude desktop.ini  user1@src_server:/volume2/Extension_1 /destination/dir/
receiving incremental file list
Extension_1/#recycle/subDir1/subDir2/
Extension_1/#recycle/subDir1/subDir2/BigVideo.mov
         39.23G  82%   36.40MB/s    0:03:44  ^C
$

(我也尝试引用.DS_Store*和删除该--log-file选项,但它们没有任何区别。)

我在 CentOS 7.9 上使用rsyncversion和version 。3.1.2 protocol version 31bash4.2.46(2)-release

更具体地说,我编写了一个非常小的脚本,其中包含一个包含排除列表的变量

$ rsyncExclusionOptions=$(printf -- "--exclude %s " "'#recycle/'" @eaDir/ "'.DS_Store*'" desktop.ini)
$ echo $rsyncExclusionOptions
--exclude '*/#recycle/' --exclude @eaDir/ --exclude '.DS_Store*' --exclude desktop.ini
$ rsync -Hauv -h -P --skip-compress=$rsyncSkipCompressList $rsyncExclusionOptions user1@src_server:/volume2/Extension_1 /destination/dir/
receiving incremental file list
Extension_1/#recycle/SERIES/ONE_PIECE/SOURCES_HD59iDF/EPISODES_666-709/
Extension_1/#recycle/SERIES/ONE_PIECE/SOURCES_HD59iDF/EPISODES_666-709/TOEI_ONE-PIECE_EP681-FN_TXT-JAP-V2-2018_169-177_1080i29-422_20-JAP-INT_XX_RXX_1811TVS1652.mov
          3.22G   5%  104.35MB/s    0:08:23  ^CKilled by signal 2.

rsync error: unexplained error (code 255) at rsync.c(638) [generator=3.1.2]
rsync: [generator] write error: Broken pipe (32)
rsync error: received SIGUSR1 (code 19) at main.c(1430) [receiver=3.1.2]

EDIT0:@roaima 我也尝试将括号括起来(如您在此处#提供的链接中所建议的那样),但它也不起作用:

$ rsyncExclusionOptions=$(printf -- "--exclude %s " "'[#]recycle/'" @eaDir/ "'.DS_Store*'" desktop.ini)
$ echo $rsyncExclusionOptions
--exclude '[#]recycle/' --exclude @eaDir/ --exclude '.DS_Store*' --exclude desktop.ini
$ rsync -Hauv -h -P --skip-compress=$rsyncSkipCompressList $rsyncExclusionOptions user1@src_server:/volume2/Extension_1 /destination/dir/
receiving incremental file list
Extension_1/#recycle/SERIES/ONE_PIECE/SOURCES_HD59iDF/EPISODES_666-709/
Extension_1/#recycle/SERIES/ONE_PIECE/SOURCES_HD59iDF/EPISODES_666-709/TOEI_ONE-PIECE_EP681-FN_TXT-JAP-V2-2018_169-177_1080i29-422_20-JAP-INT_XX_RXX_1811TVS1652.mov
          4.04G   7%   21.67MB/s    0:39:45  ^CKilled by signal 2.

rsync error: unexplained error (code 255) at rsync.c(638) [generator=3.1.2]
rsync: [generator] write error: Broken pipe (32)
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) [receiver=3.1.2]
rsync: [receiver] write error: Broken pipe (32)

一个可行的解决方案:

  • 哈希值放在括号之间,如下所示:[#]AND
  • 额外的'不能用于变量[#]recycle内的排除:rsyncExclusionOptions
$ rsyncExclusionOptions=$(printf -- "--exclude %s " "[#]recycle/" @eaDir/ "'.DS_Store*'" desktop.ini)
$ echo $rsyncExclusionOptions
--exclude [#]recycle/ --exclude @eaDir/ --exclude '.DS_Store*' --exclude desktop.ini
$ rsync -Hauv -h -P --skip-compress=$rsyncSkipCompressList $rsyncExclusionOptions user1@src_server:/volume2/Extension_1 /destination/dir/
receiving incremental file list
Extension_1/SERIES/ONE_PIECE/SOURCES_VF/EPISODES_700-765/
centos rsync
  • 1 个回答
  • 58 Views
Martin Hope
SebMa
Asked: 2021-11-04 05:40:57 +0800 CST

ASCII 到 ANSI 的转换不起作用

  • 3

尝试在 Linux 上将 ASCII 文件转换为 ANSI:

$ file -bi relocate.xml 
text/xml; charset=us-ascii
$ iconv -f us-ascii -t ms-ansi < relocate.xml | file -bi -
text/xml; charset=us-ascii
$ cat relocate.xml | recode us-ascii..ms-ansi | file -bi -
Request: ANSI_X3.4-1968..:libiconv:..CP1252
Shrunk to: ANSI_X3.4-1968..CP1252
text/xml; charset=us-ascii

我还尝试了其他工具来推断编码,它们都返回相同的结果:

$ enca -L none relocate.xml ; echo "###" ; uchardet relocate.xml ; echo "###" ; encguess relocate.xml 
7bit ASCII characters
  CRLF line terminators
###
ASCII
###
relocate.xml    US-ASCII

如您所见,工具iconv和recode工具都没有错误消息,但最终编码仍然是us-ascii.

如何将其转换为 ANSI?

character-encoding conversion
  • 1 个回答
  • 374 Views
Martin Hope
SebMa
Asked: 2021-11-01 06:50:30 +0800 CST

从 Linux 推断 windows 7/8/10 ISOs 官方 URL

  • 2

如何从 Linux 推断 windows 7/8/10 ISOs 官方 URL 并下载它们?

我的系统上只有 Linux,因此无法运行Windows ISO 下载器来执行此操作。

我该怎么做 ?

linux iso
  • 1 个回答
  • 399 Views
Martin Hope
SebMa
Asked: 2020-02-25 21:40:39 +0800 CST

find 没有成功排除特定目录

  • 0

我想仅.git/使用命令列出除目录内的所有文件之外的所有文件find。

我试过这个:

$ find . -path .git -prune -type f
$

它返回了 0 个文件(而不是我拥有的 2 个文件)所以我尝试了这个:

$  find . -not -path .git -type f | grep -c '\.git'
1770
$

我不明白为什么这些都不起作用,你能帮忙吗?

EDIT0:感谢@icarus,我看到路径必须在前面,./因此我错过了OR运算符,这个命令有效:

$ find . -path ./.git -prune -o -type f | grep '\.git'
./.git
./.gitignore
$

EDIT1: 为什么其他命令不起作用?

$ find . -not -path ./.git -a -type f | grep -c '\.git'
1770
$

EDIT2:最后一个问题:为什么-prune谓词不需要在下面的命令中-o -print打印./.git和结果:./.gitignore

$ find . -name ".git*" -prune | grep git
./.git
./.gitignore
$ find . -name ".git*" -prune -o -print | grep -c git
0

EDIT3:谢谢@rastafile:

$ find . -name ".git*" -prune | grep git
./.git
./.gitignore
$ find . -name ".git*" -prune -print | grep git
./.git
./.gitignore
$ find . -name ".git*" -prune -o -print | grep git
$

当前面的表达式为 true 时,GNU 似乎隐式地查找-prune谓词调用:-print

如果表达式不包含除 -prune 之外的任何操作,则对表达式为真的所有文件执行 -print。

总之:我需要的命令是:

$ find . -name ".git*" -prune -o -type f -print

谢谢大家。

find
  • 2 个回答
  • 236 Views
Martin Hope
SebMa
Asked: 2019-08-15 23:42:37 +0800 CST

全局关联数组仅在第二次获取脚本时可见

  • 2

我调用了以下脚本.bash_functions.test,该脚本已由我的.bash_functions脚本提供:

# vim: set syn=sh noet:

mp4Options_BIS="-movflags +frag_keyframe"
declare -A audioExtension=( [libspeex]=spx [speex]=spx [opus]=opus [vorbis]=ogg [aac]=m4a [mp3]=mp3 [mp2]=mp2 [ac3]=ac3 [wmav2]=wma [pcm_dvd]=wav [pcm_s16le]=wav )

function test1 {
    echo "=> mp4Options_BIS = $mp4Options_BIS"
    echo "=> audioExtension = ${audioExtension[*]}"
}

当我运行该test1函数时,我看到了这个:

=> mp4Options_BIS = -movflags +frag_keyframe
=> audioExtension = 

最后,当我再次获取脚本并重新运行该test1函数时,我看到了:

=> mp4Options_BIS = -movflags +frag_keyframe
=> audioExtension = ac3 wma opus mp3 wav mp2 wav spx m4a spx ogg

事实上,我Source在第一个源调用以及source内置函数和第二个源调用中使用了我的函数:

$ grep -r .bash_functions.test 
.bash_functions:source $initDir/.bash_functions.test
$ type Source 
Source is a function
Source () 
{ 
    test "$debug" -gt 0 && time source "$@" && echo || source "$@"
}

这就是发生的事情:

$ Source .initBash/.bash_functions.test
$ test1
=> mp4Options_BIS = -movflags +frag_keyframe
=> audioExtension = 
$ source .initBash/.bash_functions.test
$ test1
=> mp4Options_BIS = -movflags +frag_keyframe
=> audioExtension = ac3 wma opus mp3 wav mp2 wav spx m4a spx ogg

为什么它会这样工作?

bash associative-array
  • 1 个回答
  • 1085 Views
Martin Hope
SebMa
Asked: 2019-06-25 06:32:39 +0800 CST

在不调整大小/修改内容的情况下无损地将 PDF 画布放大到 A4

  • 2

我想在不调整/修改内容的情况下无损地将 PDF 的画布放大到 A4。

这是我的文件:

$ pdfinfo myFile.pdf 
Creator:        EO.Pdf
Producer:       EO.Pdf 16.2.50.0
CreationDate:   Mon Jun 17 14:30:34 2019
ModDate:        Mon Jun 17 14:30:34 2019
Tagged:         no
UserProperties: no
Suspects:       no
Form:           none
JavaScript:     no
Pages:          10
Encrypted:      no
Page size:      595 x 774 pts
Page rot:       0
File size:      656721 bytes
Optimized:      no
PDF version:    1.4
$ identify myFile.pdf
myFile.pdf[0] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.030u 0:00.029
myFile.pdf[1] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.020u 0:00.029
myFile.pdf[2] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.020u 0:00.019
myFile.pdf[3] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.020u 0:00.019
myFile.pdf[4] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.010u 0:00.019
myFile.pdf[5] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.010u 0:00.019
myFile.pdf[6] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.010u 0:00.009
myFile.pdf[7] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.010u 0:00.009
myFile.pdf[8] PDF 595x774 595x774+0+0 16-bit Bilevel DirectClass 58.1KB 0.000u 0:00.009
myFile.pdf[9] PDF 567x737 567x737+0+0 16-bit Bilevel DirectClass 58.1KB 0.000u 0:00.000

我试过了,目标尺寸很好,但质量损失很大:

$ convert myFile.pdf -page A4 myFile_A4.pdf
$ pdfinfo myFile_A4.pdf | egrep "Page( size|s):"
Pages:          10
Page size:      595 x 842 pts (A4)

如何使用开源或免费应用程序在不修改 PDF 文件内容的情况下将画布大小调整到 595 x 842 pts?

pdf
  • 1 个回答
  • 136 Views
Martin Hope
SebMa
Asked: 2019-05-15 23:06:24 +0800 CST

将相同的字符串分配给多个变量

  • 8

我想将包含的字符串分配$value给多个 BASH 变量。

实际上我之前给出的例子 ( var1=var2=...=$value) 并没有完全反映我想要的。到目前为止,我发现了这一点,但它仅适用$value于整数:

$ let varT=varz=var3=$value

我怎样才能做到这一点?

bash assignment
  • 5 个回答
  • 6527 Views
Martin Hope
SebMa
Asked: 2019-04-25 06:45:08 +0800 CST

如何使用命令行中的给定正则表达式查找远程 http/https 目录的大小(非递归)

  • 1

我正在尝试使用\.mp4命令行中的给定正则表达式()查找远程 http/https 目录的大小(非递归),是否有工具可以这样做,或者我是否需要解析index.html?

EDIT0:这是我要解析的输出:

$ URL=https://cdn.sermons.love/mp4/Joseph%20Prince/
$ curl -s $URL | html2text -width $COLUMNS
****** Index of /mp4/Joseph Prince ******
[Icon ] Name                                                                           Last_modified      Size
Description
=======================================================================================================================
[[PARENTDIR]] Parent_Directory                                                                                    -
[[   ]] Joseph_Prince_-_Activate_the_Grace_Covenant_Through_Tongues.mp4                2019-04-16 22:32  428M
[[   ]] Joseph_Prince_-_Align_Yourself_With_His_Purpose_and_Prosper.mp4                2019-04-16 22:36  452M
[[   ]] Joseph_Prince_-_Amazing_Things_Happen_When_You_Flow_with_The_Spirit.mp4        2019-04-16 21:48  391M
[[   ]] Joseph_Prince_-_Are_You_Frustrating_The_Favor_of_God.mp4                       2019-04-16 21:27  524M
[[   ]] Joseph_Prince_-_As_Jesus_Is,_So_Are_You.mp4                                    2019-04-16 22:28  894M
[[   ]] Joseph_Prince_-_Blessings_Flow_Through_Grace.mp4                               2019-04-30 16:00  761M
[[   ]] Joseph_Prince_-_Break_Every_Bad_Habit_With_Christ.mp4                          2019-04-16 22:48  462M
[[   ]] Joseph_Prince_-_Break_Free_from_Addiction_and_Shame.mp4                        2019-04-16 22:12  388M
[[   ]] Joseph_Prince_-_Come_As_You_Are_and_Receive_Your_Miracle.mp4                   2019-04-16 22:16  444M
[[   ]] Joseph_Prince_-_Discerning_the_Lord's_Body_for_Greater_Health.mp4              2019-04-16 22:38  705M
[[   ]] Joseph_Prince_-_Discover_God's_Way_to_Bless_You.mp4                            2019-04-16 21:28  524M
[[   ]] Joseph_Prince_-_Don't_Fight_-_Feed!.mp4                                        2019-04-16 22:18  453M
[[   ]] Joseph_Prince_-_Draw_The_Blood_Line_Of_Protection.mp4                          2019-04-25 13:21  804M
[[   ]] Joseph_Prince_-_Easter_from_New_Creation_Church.mp4                            2019-04-16 21:23  843M
[[   ]] Joseph_Prince_-_Enjoy_Jesus'_Supply_And_Delight_His_Heart.mp4                  2019-04-16 21:38  609M
[[   ]] Joseph_Prince_-_Experience_God's_Restoration_For_Every_Regret.mp4              2019-04-16 22:37  421M
[[   ]] Joseph_Prince_-_Experience_The_Grace_Revolution.mp4                            2019-04-16 21:41  189M
[[   ]] Joseph_Prince_-_Find_Freedom_from_Every_Bondage_and_Addiction.mp4              2019-04-16 22:13  523M
[[   ]] Joseph_Prince_-_Find_True_Fulfillment_In_Life.mp4                              2019-04-16 22:20  209M
[[   ]] Joseph_Prince_-_Five_Words_To_Live_By__The_Battle_Is_The_Lord's.mp4            2019-04-16 21:57  226M
[[   ]] Joseph_Prince_-_Fresh_Grace_For_Every_Trial.mp4                                2019-04-16 22:14  609M
[[   ]] Joseph_Prince_-_Give_Jesus_Your_Cares_And_Live_Stress-Free.mp4                 2019-04-16 21:00  428M
[[   ]] Joseph_Prince_-_God_Is_A_Gracious_Rewarder.mp4                                 2019-04-16 22:42  224M
[[   ]] Joseph_Prince_-_God's_Blueprint_For_Leadership.mp4                             2019-04-16 21:30  776M
[[   ]] Joseph_Prince_-_God's_Perfect_Timing_In_The_Christmas_Story.mp4                2019-04-16 21:29  441M
[[   ]] Joseph_Prince_-_God's_Plan_To_Bless_You.mp4                                    2019-04-16 21:56  200M
[[   ]] Joseph_Prince_-_Godly_Discipline_And_Correction_Brings_Promotion.mp4           2019-04-16 21:56  776M
[[   ]] Joseph_Prince_-_Got_A_Weakness__God_Can_Use_You!.mp4                           2019-04-16 21:25  524M
[[   ]] Joseph_Prince_-_Grace_Leadership_In_Action__How_To_Represent_God's_Heart.mp4   2019-04-16 22:30  732M
[[   ]] Joseph_Prince_-_He_Is_Risen.mp4                                                2019-04-16 21:47  442M
[[   ]] Joseph_Prince_-_Healing_Flows_When_Grace_Is_Exalted.mp4                        2019-04-16 21:51  225M
[[   ]] Joseph_Prince_-_Hear_Jesus_Only_And_Be_Uplifted.mp4                            2019-04-16 21:25  436M
[[   ]] Joseph_Prince_-_Hear_the_Preached_Word_and_See_Breakthroughs.mp4               2019-04-16 21:31  459M
[[   ]] Joseph_Prince_-_Hesed_Wisdom_to_Live_Skillfully.mp4                            2019-04-16 21:32  389M
[[   ]] Joseph_Prince_-_His_Healing_Is_For_The_Undeserving.mp4                         2019-04-16 22:20  217M
[[   ]] Joseph_Prince_-_His_Promises_Are_Yours_To_Own.mp4                              2019-04-16 22:23  524M
[[   ]] Joseph_Prince_-_His_Radiance_Upon_You_Brings_Favor.mp4                         2019-04-16 22:00  689M
[[   ]] Joseph_Prince_-_His_Resurrection,_Proof_Of_Your_Righteousness.mp4              2019-04-19 11:03  809M
[[   ]] Joseph_Prince_-_How_To_Be_Blessed_God's_Way.mp4                                2019-04-16 21:08  776M
[[   ]] Joseph_Prince_-_How_To_Live_Free_From_The_Curse.mp4                            2019-04-16 22:20  614M
[[   ]] Joseph_Prince_-_How_To_Make_Spirit-Led_Decisions.mp4                           2019-04-16 21:14  871M
[[   ]] Joseph_Prince_-_How_To_Pray_When_You_Have_No_Prayer.mp4                        2019-04-16 22:31  372M
[[   ]] Joseph_Prince_-_How_You_See_Jesus_Is_How_You_Will_Receive.mp4                  2019-04-16 21:50  657M
[[   ]] Joseph_Prince_-_Immanuel__What_It_Means_To_Have_The_Lord_With_You.mp4          2019-04-16 21:30  210M
[[   ]] Joseph_Prince_-_Inherit_God's_Promises_By_Faith,_Not_by_Works.mp4              2019-04-16 21:49  521M
[[   ]] Joseph_Prince_-_Jesus_Draws_Near_When_You_Are_Discouraged_(Live_In_Israel).mp4 2019-04-16 21:18  561M
[[   ]] Joseph_Prince_-_Jesus_Our_Jubilee.mp4                                          2019-04-16 21:53  694M
[[   ]] Joseph_Prince_-_Jesus__Your_Reason_For_A_Fear-Free_Life.mp4                    2019-04-16 21:05  210M
[[   ]] Joseph_Prince_-_Keys_To_Healing_In_The_Hebrew_Language.mp4                     2019-04-16 21:00  250M
[[   ]] Joseph_Prince_-_Last_To_First_When_You_Trust_His_Goodness.mp4                  2019-04-16 22:50  781M
[[   ]] Joseph_Prince_-_Learn_to_See_What_God_Sees.mp4                                 2019-04-16 21:46  419M
[[   ]] Joseph_Prince_-_Let_Go_And_Let_His_Supply_Flow.mp4                             2019-04-16 22:33  461M
[[   ]] Joseph_Prince_-_Let_Go_and_Flow_in_the_Vine_Life.mp4                           2019-04-16 22:26  458M
[[   ]] Joseph_Prince_-_Live_Bold_Without_Guilt_and_Fear.mp4                           2019-04-16 22:04  427M
[[   ]] Joseph_Prince_-_Live_Confident.mp4                                             2019-04-16 21:03  426M
[[   ]] Joseph_Prince_-_Live_Life_Loved_By_The_Shepherd.mp4                            2019-04-16 21:39  428M
[[   ]] Joseph_Prince_-_Live_Long,_Live_Strong.mp4                                     2019-04-16 22:35  621M
[[   ]] Joseph_Prince_-_Live_Strong_In_The_Father's_Love.mp4                           2019-04-16 21:11  465M
[[   ]] Joseph_Prince_-_Live_Undefeated_In_Christ.mp4                                  2019-04-16 21:57  438M
[[   ]] Joseph_Prince_-_Make_Grace_Your_Way_of_Life.mp4                                2019-04-16 22:15  520M
[[   ]] Joseph_Prince_-_Move_From_Predicament_To_Promotion.mp4                         2019-04-16 22:46  813M
[[   ]] Joseph_Prince_-_No_Condemnation_Leads_to_Divine_Health.mp4                     2019-04-16 21:59  685M
[[   ]] Joseph_Prince_-_Not_Ashamed_Of_The_Gospel.mp4                                  2019-04-16 22:22  235M
[[   ]] Joseph_Prince_-_Practical_Leadership_Keys_To_Living_Holy.mp4                   2019-04-16 21:36  829M
[[   ]] Joseph_Prince_-_Receive_God's_Supply_for_All_of_Life's_Demands.mp4             2019-04-16 22:44  525M
[[   ]] Joseph_Prince_-_Redemption_Truths_That_Bless_Your_Relationships.mp4            2019-04-16 21:09  217M
[[   ]] Joseph_Prince_-_Rest_And_Receive_At_Jesus'_Feet.mp4                            2019-04-16 21:54  449M
[[   ]] Joseph_Prince_-_Rest_In_Jesus'_Faith_For_Miracles.mp4                          2019-04-16 21:04  519M
[[   ]] Joseph_Prince_-_Rest_Till_Your_Enemies_Become_Your_Footstool.mp4               2019-04-16 20:59  472M
[[   ]] Joseph_Prince_-_Rest!_God_Is_Working_Behind_The_Scenes.mp4                     2019-04-16 22:43  523M
[[   ]] Joseph_Prince_-_Say_Amen_To_God's_Promises.mp4                                 2019-04-16 21:45  521M
[[   ]] Joseph_Prince_-_Set_Apart_To_Be_Kings_And_Priests.mp4                          2019-04-16 21:34  802M
[[   ]] Joseph_Prince_-_Set_Free_to_Reign_in_Life.mp4                                  2019-04-16 22:06  528M
[[   ]] Joseph_Prince_-_Speak_Out_and_Find_Strength.mp4                                2019-04-16 22:11  1.1G
[[   ]] Joseph_Prince_-_Speak_Out_by_Faith_and_Win.mp4                                 2019-04-16 21:20  412M
[[   ]] Joseph_Prince_-_Stay_on_Grace_Ground_and_Experience_True_Life.mp4              2019-04-16 21:41  1.0G
[[   ]] Joseph_Prince_-_Stronger_Through_Every_Trial_And_Battle.mp4                    2019-04-16 22:47  789M
[[   ]] Joseph_Prince_-_The_Four_Gospels_Unlocked_for_Your_Blessings.mp4               2019-04-16 22:17  922M
[[   ]] Joseph_Prince_-_The_Friend_You_Can_Always_Depend_On.mp4                        2019-04-16 22:40  1.1G
[[   ]] Joseph_Prince_-_The_God_Who_Goes_Before.mp4                                    2019-04-16 22:41  442M
[[   ]] Joseph_Prince_-_The_Health-Giving_Power_Of_A_Relaxed_Heart.mp4                 2019-04-16 21:10  613M
[[   ]] Joseph_Prince_-_The_Heart_of_the_Father_Revealed.mp4                           2019-04-16 21:44  468M
[[   ]] Joseph_Prince_-_The_Lord_Our_Righteousness.mp4                                 2019-04-16 21:02  423M
[[   ]] Joseph_Prince_-_The_Secret_of_Hearing_That_Brings_Untold_Blessings.mp4         2019-04-16 22:25  687M
[[   ]] Joseph_Prince_-_The_Spirit's_Rivers_Of_Provision_And_Healing.mp4               2019-04-16 21:52  404M
[[   ]] Joseph_Prince_-_Turn_Your_Frustrations_Into_Breakthroughs.mp4                  2019-04-16 21:12  461M
[[   ]] Joseph_Prince_-_Unlocking_Redemption's_Blessings_In_Your_Life.mp4              2019-04-16 21:43  686M
[[   ]] Joseph_Prince_-_Victory_in_Your_Day_of_Trouble.mp4                             2019-04-16 22:05  456M
[[   ]] Joseph_Prince_-_Walk_In_Constant_Victory_Over_Fear.mp4                         2019-04-16 22:09  1.1G
[[   ]] Joseph_Prince_-_What_Is_Earnest_Prayer_To_God.mp4                              2019-04-16 22:31  215M
[[   ]] Joseph_Prince_-_What_Makes_No_Weapon_Prosper_Against_You.mp4                   2019-04-30 15:31  253M
[[   ]] Joseph_Prince_-_Where_Is_God_In_The_Midst_Of_Your_Trouble.mp4                  2019-04-16 21:17  833M
[[   ]] Joseph_Prince_-_Win_Over_Discouragement,_Depression_and_Burnout.mp4            2019-04-16 22:24  396M
[[   ]] Joseph_Prince_-_Win_Over_Fear_and_Pride.mp4                                    2019-04-16 21:19  459M
[[   ]] Joseph_Prince_-_Win_Over_Guilt_and_Condemnation.mp4                            2019-04-16 21:15  223M
[[   ]] Joseph_Prince_-_Wisdom_For_Holy_Living.mp4                                     2019-04-16 21:07  791M
[[   ]] Joseph_Prince_-_You_Are_Forgiven.mp4                                           2019-04-16 22:04  440M
[[   ]] Joseph_Prince_-_You_Can_Live_Healed.mp4                                        2019-04-16 22:33  217M
[[   ]] Joseph_Prince_-_Your_Blessed_Hope_In_Dark_Times.mp4                            2019-04-16 22:21  464M
[[   ]] Joseph_Prince_-_Your_Only_Battle_is_Fight_to_Remain_at_Rest.mp4                2019-04-16 21:01  616M
[[   ]] Joseph_Prince_-_Your_Past_Does_Not_Determine_Your_Future.mp4                   2019-04-16 21:22  685M
[[   ]] Joseph_Prince_-_Your_Reason_For_A_Fear_Free_Life.mp4                           2019-04-16 21:13  468M
[[   ]] Joseph_Prince_-_Your_Security_in_Time_of_Shaking.mp4                           2019-04-16 22:03  681M
=======================================================================================================================

EDIT1:我尝试了这一点它不起作用,因为未添加 Gigs 中的文件大小:

$ curl -s $URL | html2text -width $COLUMNS | sed "s/M$//;s/G$/*1024/" | awk '/\.mp4/{size=$6;print"=> 6th field = "$6" size = "size >"/dev/stderr";total+=size}END{print "=> total = "total}'
=> 6th field = 428 size = 428
=> 6th field = 452 size = 452
=> 6th field = 391 size = 391
=> 6th field = 524 size = 524
=> 6th field = 894 size = 894
=> 6th field = 462 size = 462
=> 6th field = 388 size = 388
=> 6th field = 444 size = 444
=> 6th field = 705 size = 705
=> 6th field = 524 size = 524
=> 6th field = 453 size = 453
=> 6th field = 843 size = 843
=> 6th field = 609 size = 609
=> 6th field = 421 size = 421
=> 6th field = 189 size = 189
=> 6th field = 523 size = 523
=> 6th field = 209 size = 209
=> 6th field = 226 size = 226
=> 6th field = 609 size = 609
=> 6th field = 428 size = 428
=> 6th field = 224 size = 224
=> 6th field = 776 size = 776
=> 6th field = 441 size = 441
=> 6th field = 200 size = 200
=> 6th field = 776 size = 776
=> 6th field = 524 size = 524
=> 6th field = 732 size = 732
=> 6th field = 442 size = 442
=> 6th field = 225 size = 225
=> 6th field = 436 size = 436
=> 6th field = 459 size = 459
=> 6th field = 389 size = 389
=> 6th field = 217 size = 217
=> 6th field = 524 size = 524
=> 6th field = 689 size = 689
=> 6th field = 809 size = 809
=> 6th field = 776 size = 776
=> 6th field = 614 size = 614
=> 6th field = 871 size = 871
=> 6th field = 372 size = 372
=> 6th field = 657 size = 657
=> 6th field = 210 size = 210
=> 6th field = 521 size = 521
=> 6th field = 561 size = 561
=> 6th field = 694 size = 694
=> 6th field = 210 size = 210
=> 6th field = 250 size = 250
=> 6th field = 781 size = 781
=> 6th field = 419 size = 419
=> 6th field = 461 size = 461
=> 6th field = 458 size = 458
=> 6th field = 427 size = 427
=> 6th field = 426 size = 426
=> 6th field = 428 size = 428
=> 6th field = 621 size = 621
=> 6th field = 465 size = 465
=> 6th field = 438 size = 438
=> 6th field = 520 size = 520
=> 6th field = 813 size = 813
=> 6th field = 685 size = 685
=> 6th field = 235 size = 235
=> 6th field = 829 size = 829
=> 6th field = 525 size = 525
=> 6th field = 217 size = 217
=> 6th field = 449 size = 449
=> 6th field = 519 size = 519
=> 6th field = 472 size = 472
=> 6th field = 523 size = 523
=> 6th field = 521 size = 521
=> 6th field = 802 size = 802
=> 6th field = 528 size = 528
=> 6th field = 1.1*1024 size = 1.1*1024
=> 6th field = 412 size = 412
=> 6th field = 1.0*1024 size = 1.0*1024
=> 6th field = 789 size = 789
=> 6th field = 922 size = 922
=> 6th field = 1.1*1024 size = 1.1*1024
=> 6th field = 442 size = 442
=> 6th field = 613 size = 613
=> 6th field = 468 size = 468
=> 6th field = 423 size = 423
=> 6th field = 687 size = 687
=> 6th field = 404 size = 404
=> 6th field = 461 size = 461
=> 6th field = 686 size = 686
=> 6th field = 456 size = 456
=> 6th field = 1.1*1024 size = 1.1*1024
=> 6th field = 215 size = 215
=> 6th field = 450 size = 450
=> 6th field = 833 size = 833
=> 6th field = 396 size = 396
=> 6th field = 459 size = 459
=> 6th field = 223 size = 223
=> 6th field = 791 size = 791
=> 6th field = 440 size = 440
=> 6th field = 217 size = 217
=> 6th field = 464 size = 464
=> 6th field = 616 size = 616
=> 6th field = 685 size = 685
=> 6th field = 468 size = 468
=> 6th field = 681 size = 681
=> total = 49588.3

EDIT2:我终于在 Perl 中做到了:

$ curl -s $URL | html2text -width $COLUMNS | perl -n -ale 'if(/mp4 /){$F[-1] =~ s/M$//;$F[-1] =~ s/G$/*1024/;$total+=eval $F[-1]}END{print "=> total = ",$total}'
=> total = 53987.2

EDIT3:我也尝试了和的组合,pup但jq似乎日期和大小不在数组中,因此不容易解析:

$ curl -s $URL | pup 'json{}' | jq '.[]  | .children[0].children[1].children[1].text' 
"- 2019-04-16 22:32  428M 2019-04-16 22:36  452M 2019-04-16 21:48  391M 2019-04-16 21:27  524M 2019-04-16 22:28  894M 2019-04-30 16:00  761M 2019-04-16 22:48  462M 2019-04-16 22:12  388M 2019-04-16 22:16  444M 2019-04-16 22:38  705M 2019-04-16 21:28  524M 2019-04-16 22:18  453M 2019-04-25 13:21  804M 2019-04-16 21:23  843M 2019-04-16 21:38  609M 2019-04-16 22:37  421M 2019-04-16 21:41  189M 2019-04-16 22:13  523M 2019-04-16 22:20  209M 2019-04-16 21:57  226M 2019-04-16 22:14  609M 2019-04-16 21:00  428M 2019-04-16 22:42  224M 2019-04-16 21:30  776M 2019-04-16 21:29  441M 2019-04-16 21:56  200M 2019-04-16 21:56  776M 2019-04-16 21:25  524M 2019-04-16 22:30  732M 2019-04-16 21:47  442M 2019-04-16 21:51  225M 2019-04-16 21:25  436M 2019-04-16 21:31  459M 2019-04-16 21:32  389M 2019-04-16 22:20  217M 2019-04-16 22:23  524M 2019-04-16 22:00  689M 2019-04-19 11:03  809M 2019-04-16 21:08  776M 2019-04-16 22:20  614M 2019-04-16 21:14  871M 2019-04-16 22:31  372M 2019-04-16 21:50  657M 2019-04-16 21:30  210M 2019-04-16 21:49  521M 2019-04-16 21:18  561M 2019-04-16 21:53  694M 2019-04-16 21:05  210M 2019-04-16 21:00  250M 2019-04-16 22:50  781M 2019-04-16 21:46  419M 2019-04-16 22:33  461M 2019-04-16 22:26  458M 2019-04-16 22:04  427M 2019-04-16 21:03  426M 2019-04-16 21:39  428M 2019-04-16 22:35  621M 2019-04-16 21:11  465M 2019-04-16 21:57  438M 2019-04-16 22:15  520M 2019-04-16 22:46  813M 2019-04-16 21:59  685M 2019-04-16 22:22  235M 2019-04-16 21:36  829M 2019-04-16 22:44  525M 2019-04-16 21:09  217M 2019-04-16 21:54  449M 2019-04-16 21:04  519M 2019-04-16 20:59  472M 2019-04-16 22:43  523M 2019-04-16 21:45  521M 2019-04-16 21:34  802M 2019-04-16 22:06  528M 2019-04-16 22:11  1.1G 2019-04-16 21:20  412M 2019-04-16 21:41  1.0G 2019-04-16 22:47  789M 2019-04-16 22:17  922M 2019-04-16 22:40  1.1G 2019-04-16 22:41  442M 2019-04-16 21:10  613M 2019-04-16 21:44  468M 2019-04-16 21:02  423M 2019-04-16 22:25  687M 2019-04-16 21:52  404M 2019-04-16 21:12  461M 2019-04-16 21:43  686M 2019-04-16 22:05  456M 2019-04-16 22:09  1.1G 2019-04-16 22:31  215M 2019-04-30 15:31  253M 2019-04-16 21:17  833M 2019-04-16 22:24  396M 2019-04-16 21:19  459M 2019-04-16 21:15  223M 2019-04-16 21:07  791M 2019-04-16 22:04  440M 2019-04-16 22:33  217M 2019-04-16 22:21  464M 2019-04-16 21:01  616M 2019-04-16 21:22  685M 2019-04-16 21:13  468M 2019-04-16 22:03  681M"

没有更简单或“更清洁”的方式吗?

awk sed
  • 2 个回答
  • 137 Views
Martin Hope
SebMa
Asked: 2019-04-06 16:26:25 +0800 CST

如何防止/保持 tail 将 \r 替换为 \n

  • 1

当我在背景中播放带有 mpv 的视频时,我得到了这个:

$ tail -f nohup.out 
Playing: https://www.facebook.com/TBN/videos/1580372468665943/
 (+) Video --vid=1 (*) (h264 1266x720 30.000fps)
 (+) Audio --aid=1 (*) 'DASH audio' (aac 1ch 48000Hz) (external)
File tags:
 Artist: TBN
 Date: 20180113
 Title: Joseph Prince joins Matt & Laurie TONIGHT on PRAISE... watch NOW!
AO: [pulse] 48000Hz mono 1ch float
VO: [gpu] 1266x720 yuv420p
AV: 00:00:00 / 00:56:50 (0%) A-V:  0.000
AV: 00:00:00 / 00:56:50 (0%) A-V:  0.000
AV: 00:00:00 / 00:56:50 (0%) A-V:  0.000
... # THERE ARE QUITE A LOT OF LINES
AV: 00:00:03 / 00:56:50 (0%) A-V:  0.000
AV: 00:00:03 / 00:56:50 (0%) A-V:  0.000
Saving state.


Exiting... (Quit)
^C

但我希望有这个输出(就像我在没有 的情况下播放文件时一样nohup):

$ mpv --no-resume-playback https://www.facebook.com/TBN/videos/1580372468665943/
Playing: https://www.facebook.com/TBN/videos/1580372468665943/
 (+) Video --vid=1 (*) (h264 1266x720 30.000fps)
 (+) Audio --aid=1 (*) 'DASH audio' (aac 1ch 48000Hz) (external)
File tags:
 Artist: TBN
 Date: 20180113
 Title: Joseph Prince joins Matt & Laurie TONIGHT on PRAISE... watch NOW!
AO: [pulse] 48000Hz mono 1ch float
VO: [gpu] 1266x720 yuv420p
AV: 00:00:03 / 00:56:50 (0%) A-V:  0.000
Saving state.


Exiting... (Quit)

EDIT1:我使用 tty like /dev/pts/2,因此如果我键入stty inlcr它应该会影响当前的 tty。

我仍然得到相同的混乱输出tail -f nohup.out

EDIT2:根据@mosvytail的说法,这不是罪魁祸首,而是mpv。

我想出了一种方法来对mpv's进行 S&R stderr:

$ mpv --no-resume-playback https://www.facebook.com/TBN/videos/1580372468665943/ 2>&1 | perl -p -e '$| = 1;s/\n/\r/g if $_ =~ /^AV:/;s/Saving state/\nSaving state/' | tee mpv_all.log
Playing: https://www.facebook.com/TBN/videos/1580372468665943/
 (+) Video --vid=1 (*) (h264 634x360 30.000fps)
 (+) Audio --aid=1 (*) (aac 1ch 48000Hz)
AO: [pulse] 48000Hz mono 1ch float
VO: [gpu] 634x360 yuv420p
AV: 00:00:08 / 00:56:50 (0%) A-V:  0.000 Cache: 1024s+86MB
Saving state.
[ffmpeg] https: Will reconnect at 63421312 in 0 second(s), error=End of file.


Exiting... (Quit)

编辑 3:@mosvy 谢谢,它现在可以工作了:

$ nohup sh -c ' mpv --no-resume-playback https://www.facebook.com/TBN/videos/1580372468665943/ 2>&1 | perl -p -e '\''$| = 1;s/\n/\r/g if $_ =~ /^AV:/;s/Saving state/\nSaving state/'\'' ' &
$ tail -f nohup.out
Playing: https://www.facebook.com/TBN/videos/1580372468665943/
 (+) Video --vid=1 (*) (h264 634x360 30.000fps)
 (+) Audio --aid=1 (*) (aac 1ch 48000Hz)
AO: [pulse] 48000Hz mono 1ch float
VO: [gpu] 634x360 yuv420p
AV: 00:00:08 / 00:56:50 (0%) A-V:  0.000 Cache: 1767s+147MB
Saving state.
[ffmpeg] https: Will reconnect at 103693952 in 0 second(s), error=End of file.


Exiting... (Quit)
^C

编辑 4:感谢@jw013 的另一个解决方案:

export perl_script='$| = 1;s/\n/\r/g if $_ =~ /^AV:/;s/Saving state/\nSaving state/'
mpv="command mpv"
args=("$@")
nohup sh -c "$mpv ${args[*]} 2>&1 | perl -p -e '$perl_script' | tee ~/mpv_all.log" &

我怎样才能做到这一点 ?解决了 !

linux tail
  • 1 个回答
  • 331 Views
Martin Hope
SebMa
Asked: 2018-12-14 10:36:37 +0800 CST

将 A4R(A4 横向)扫描的 jpeg 转换为 A4R(A4 横向)pdf

  • 2

我已将 A4R 纸张扫描为 2048x1443 jpg 文件。

EDIT1:它已经旋转到横向(2048x1443)。编辑结束1

现在,如果我尝试使用以下命令进行转换:

$ convert -page A4R A4R_Scanned.jpg A4R_Scanned.pdf
$ echo $?
0

EDIT2:没有关于 A4R 参数的错误消息。编辑结束2

我收到一个空白的美国信函,纵向页面:

$ identify A4R_Scanned.pdf
   **** Warning:  File has an empty MediaBox. Using the current page size instead.
                  Output may be incorrect.
   **** Warning:  File has an empty MediaBox. Using the current page size instead.
                  Output may be incorrect.
A4R_Scanned.pdf PDF 595x842 595x842+0+0 16-bit Bilevel DirectClass 63.2K 

EDIT3:我尝试了另一种解决方案:

$ convert -page A4 -rotate 90 A4R_Scanned.jpg A4R_Scanned2A4.pdf

这给出了令人满意的 A4 文档,没有明显的质量损失,但我需要将其旋转回来以获得 A4R(横向)。

当我这样做时,会损失更多的质量并且这是可见的:

$ convert -rotate -90 A4R_Scanned2A4.pdf A4R_Scanned2A4R.pdf

现在,我的问题是:如何在不损失太多质量的情况下旋转文档?

编辑结束3

EDIT4:感谢dirkt,转换可以一步完成,质量很好:-):

$ convert -page 842x595 A4R_Scanned.jpg A4R_Scanned2A4R.pdf

编辑结束4

pdf conversion
  • 1 个回答
  • 1418 Views
Martin Hope
SebMa
Asked: 2018-10-07 04:14:42 +0800 CST

什么是“~/.stack”目录?

  • 7

我的“~/.stack”目录占用了 2.5GB,并且有以下主要的大目录:

1330    programs/
877     indices/
264     snapshots/

这个“~/.stack”目录是什么?

我可以安全地删除其中最大的文件吗?

storage
  • 1 个回答
  • 1581 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