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
    • 最新
    • 标签
主页 / unix / 问题

问题[utilities](unix)

Martin Hope
kimaNO
Asked: 2022-04-24 05:20:06 +0800 CST

bccmd 的替代方法是什么?

  • 0

我正在尝试了解蓝牙堆栈。在许多博客中,他们提到了一个名为bccmd的工具。但是当我下载包bluez并编译它时,我没有找到它。它似乎在工具文件夹中。有人能告诉我这个包或其他包中是否有替代品吗?

utilities bluez
  • 1 个回答
  • 94 Views
Martin Hope
lsusr
Asked: 2021-12-30 19:43:45 +0800 CST

如何在 Linux 上连续显示最新版本的图像文件?

  • 1

我需要从磁盘位置读取图像的程序,将其/home/me/image.png显示在窗口中的屏幕上,然后每当位于的图像发生更改时刷新窗口/home/me/image.png。

我首选的查看图像的程序是feh但feh没有内置功能,可在文件更改时自行刷新。

我考虑的一个选择是编写 bash 脚本,该脚本feh在文件更改时终止并重新打开。但这会在新窗口中显示图像。我想在其原始窗口中显示图像。

我尝试了 ImageMagick 的display实用程序,但它在我的机器上不起作用。也许我用display错了?我用过$ display -update 1 /home/me/image.png。ImageMagick 没有给我任何错误。当我将更改写入磁盘时,它只是无法刷新图像。

当磁盘上的图像发生变化时刷新图像似乎是许多图像查看程序应该支持的基本功能,但是我尝试了几个图像查看程序,例如,feh但是当磁盘上的图像发生变化时,它们都没有刷新。fimeog

系统规格

我的外壳是 bash。我的窗口系统是 i3。我的发行版是 lubuntu。

linux utilities
  • 1 个回答
  • 203 Views
Martin Hope
Dingo
Asked: 2021-12-09 16:53:28 +0800 CST

任何文本实用程序或破解省略某些数字的诗行编号?

  • 0

我的目标是尝试查看 linux 中是否有常见的文本实用程序可以用来对诗歌的行数进行编号,如下所示:

OF Mans First Disobedience, and the Fruit
Of that Forbidden Tree, whose mortal tast
Brought Death into the World, and all our woe,
With loss of Eden, till one greater Man
Restore us, and regain the blissful Seat,
Sing Heav'nly Muse, that on the secret top
Of Oreb, or of Sinai, didst inspire
That Shepherd, who first taught the chosen Seed,
In the Beginning how the Heav'ns and Earth
Rose out of Chaos: or if Sion Hill
Delight thee more, and Siloa's brook that flow'd
Fast by the Oracle of God; I thence
Invoke thy aid to my adventrous Song,
That with no middle flight intends to soar
Above th' Aonian Mount, while it pursues
Things unattempted yet in Prose or Rhime.
And chiefly Thou, O Spirit, that dost prefer
Before all Temples th' upright heart and pure,
Instruct me, for Thou know'st; Thou from the first
Wast present, and with mighty wings outspread
Dove-like satst brooding on the vast Abyss
And mad'st it pregnant: What in me is dark
Illumin, what is low raise and support;
That to the highth of this great Argument
I may assert Eternal Providence,
And justifie the wayes of God to men.

获得这个:

        OF Mans First Disobedience, and the Fruit
        Of that Forbidden Tree, whose mortal tast
        Brought Death into the World, and all our woe,
     4  With loss of Eden, till one greater Man
        Restore us, and regain the blissful Seat,
        Sing Heav'nly Muse, that on the secret top
        Of Oreb, or of Sinai, didst inspire
     8  That Shepherd, who first taught the chosen Seed,
        In the Beginning how the Heav'ns and Earth
        Rose out of Chaos: or if Sion Hill
        Delight thee more, and Siloa's brook that flow'd
    12  Fast by the Oracle of God; I thence
        Invoke thy aid to my adventrous Song,
        That with no middle flight intends to soar
        Above th' Aonian Mount, while it pursues
    16  Things unattempted yet in Prose or Rhime.
        And chiefly Thou, O Spirit, that dost prefer
        Before all Temples th' upright heart and pure,
        Instruct me, for Thou know'st; Thou from the first
    20  Wast present, and with mighty wings outspread
        Dove-like satst brooding on the vast Abyss
        And mad'st it pregnant: What in me is dark
        Illumin, what is low raise and support;
    24  That to the highth of this great Argument
        I may assert Eternal Providence,
        And justifie the wayes of God to men.

可以,awk,也可以用这种方式缩进行

          OF Mans First Disobedience, and the Fruit
        Of that Forbidden Tree, whose mortal tast
          Brought Death into the World, and all our woe,
     4  With loss of Eden, till one greater Man
          Restore us, and regain the blissful Seat,
        Sing Heav'nly Muse, that on the secret top
          Of Oreb, or of Sinai, didst inspire
     8  That Shepherd, who first taught the chosen Seed,

还有这样的吗?

        OF Mans First Disobedience, and the Fruit
          Of that Forbidden Tree, whose mortal tast
        Brought Death into the World, and all our woe,
     4    With loss of Eden, till one greater Man
        Restore us, and regain the blissful Seat,
          Sing Heav'nly Muse, that on the secret top
        Of Oreb, or of Sinai, didst inspire
     8    That Shepherd, who first taught the chosen Seed,
utilities text
  • 2 个回答
  • 291 Views
Martin Hope
Eduard Florinescu
Asked: 2021-10-13 23:53:15 +0800 CST

如何查看连续数字名称文件是否缺少某些文件?[复制]

  • 5
这个问题在这里已经有了答案:
如何查找具有顺序名称的丢失文件?[重复] (4个答案)
如何打印文件夹中丢失文件的名称? (4 个回答)
去年关闭。

社区在10 个月前审查了是否重新打开此问题并将其关闭:

重复此问题已得到回答,不是唯一的,并且与另一个问题没有区别。

如果我给ls -1我得到这样的,

file_0001.jpeg
file_0002.jpeg
file_0003.jpeg
file_0004.jpeg
file_0005.jpeg
file_0006.jpeg
file_0007.jpeg
file_0008.jpeg
file_0009.jpeg
file_0010.jpeg
file_0011.jpeg
file_0012.jpeg
file_0013.jpeg
file_0014.jpeg
file_0015.jpeg
file_0016.jpeg
file_0017.jpeg
file_0018.jpeg
file_0019.jpeg
file_0020.jpeg
file_0021.jpeg
...
file_0999.jpeg

有没有办法使用awk或其他工具来查看是否以这种连续增量方式丢失了某些文件。

awk utilities
  • 7 个回答
  • 1518 Views
Martin Hope
balajeerc
Asked: 2020-01-15 00:42:14 +0800 CST

基于进程树可视化 CPU 和内存使用的实用程序

  • 1

现代桌面应用程序会产生几个子进程来将任务卸载给它们。在这方面值得注意的例子是:

  1. 谷歌浏览器 - 每个标签产生一个新进程
  2. VSCode - 产生一堆开发服务器
  3. 任何基于电子的应用程序

是否有可用的工具(命令行或其他方式)可让您在与现有进程树相同的级别/层次结构中查看合并的 CPU 和内存使用情况?

所以这个工具的顶级,例如谷歌浏览器。将在每个选项卡的基础上生成它生成的所有进程的合并内存和 CPU 使用率。

如果它不存在,我很乐意写一个。我只是想确保我没有重新发明轮子。

utilities ps
  • 1 个回答
  • 350 Views
Martin Hope
Mark
Asked: 2019-06-17 21:52:48 +0800 CST

什么工具可以检查互联网 TX/RX 状态为 top/htop?

  • 2

对于处理器的使用,我们可以使用 top 或 htop。

对于互联网状态,我想知道当前的 TX/RX 状态,有什么命令/工具可以使用吗?

utilities ethernet
  • 1 个回答
  • 1325 Views
Martin Hope
user149572
Asked: 2018-10-13 02:35:10 +0800 CST

find 和 GNU find 之间的区别

  • 0

考虑一些常见的 *nix 系统(比如 Debian、CentOS、Arch 和 Kali)。

我一直用find;我不记得使用过 GNU find,但是从我看到的一个示例中,我假设 GNU find 的语法可能更简单(尽管可能允许更少的操作)。

我有两个问题:

  1. 是find通用系统中默认的“查找或操作”实用程序,还是系统会同时 find带有和GNU find?

  2. 是GNU find为了更简单find?

find utilities
  • 2 个回答
  • 2208 Views
Martin Hope
Oxwivi
Asked: 2018-06-04 03:12:39 +0800 CST

是否有任何“基础”Debian 元包?

  • 2

我使用 Debian 的 Raspberry Pi映像生成器来创建arm64映像,但问题是它太简单了。是否有任何安装有用工具的元包,相当于 Ubuntuubuntu-minimal和ubuntu-server?

在 packages.debian.org 上盲目搜索被证明是徒劳的。

debian utilities
  • 2 个回答
  • 2626 Views
Martin Hope
pah8J
Asked: 2018-05-09 03:51:01 +0800 CST

如何获取以太网中数据收发状态的信息?

  • 0

是否有任何工具可以获取以太网中数据接收和发送状态的信息(实时信息更好,GUI 工具更好)?

信息包括:

发送和接收速率 (Mbps) 自启动机器以来发送和接收的总数据(这是可选的)

utilities ethernet
  • 1 个回答
  • 50 Views
Martin Hope
Niklas J. MacDowall
Asked: 2018-04-19 22:36:23 +0800 CST

使用所有组合生成词表

  • 1

我正在尝试生成一个单词表,以便使用它来暴力破解我自己的 Truecrypt 容器。我确实知道部分密码,它使用其他已知密码块来增加长度,但我忘记了这些块的使用顺序以及是否根本没有使用某些块。

用空格分隔的示例“块”:dog cat bird xyz cow1 lion8

我想做的是创建一个包含这些块的每个可能组合的单词表。例如

dog
cat
dogcat
catdog
bird
dogbird
catbird
birdcat
birddog
dogcatbird
catdogbird
xyz
dogcatbirdxyz
cow1
xyzcow1dogcat
xyzcow1dogcatbird
catdogbirdxyzcow8
lion8
catdogbirdxyzcow1lion8
lion8catdogbirdxyzcow1
dogcatbirdxyzcow1lion8
cow1birddogcatxyzlion8
cow1lion8birddogcatxyz
...

到目前为止,我已经尝试使用名为 crunch 的工具:http ://www.irongeek.com/i.php?page=backtrack-r1-man-pages/crunch

但挑战似乎是如何生成较短组合的组合,不包括所有已知的块,例如:dogcat只包括 2 个块。

也许有人crunch比我更了解,或者我是否应该使用其他工具或工具组合?

shell utilities
  • 2 个回答
  • 1353 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