我正在尝试了解蓝牙堆栈。在许多博客中,他们提到了一个名为bccmd的工具。但是当我下载包bluez并编译它时,我没有找到它。它似乎在工具文件夹中。有人能告诉我这个包或其他包中是否有替代品吗?
我需要从磁盘位置读取图像的程序,将其/home/me/image.png
显示在窗口中的屏幕上,然后每当位于的图像发生更改时刷新窗口/home/me/image.png
。
我首选的查看图像的程序是feh
但feh
没有内置功能,可在文件更改时自行刷新。
我考虑的一个选择是编写 bash 脚本,该脚本feh
在文件更改时终止并重新打开。但这会在新窗口中显示图像。我想在其原始窗口中显示图像。
我尝试了 ImageMagick 的display
实用程序,但它在我的机器上不起作用。也许我用display
错了?我用过$ display -update 1 /home/me/image.png
。ImageMagick 没有给我任何错误。当我将更改写入磁盘时,它只是无法刷新图像。
当磁盘上的图像发生变化时刷新图像似乎是许多图像查看程序应该支持的基本功能,但是我尝试了几个图像查看程序,例如,feh
但是当磁盘上的图像发生变化时,它们都没有刷新。fim
eog
系统规格
我的外壳是 bash。我的窗口系统是 i3。我的发行版是 lubuntu。
我的目标是尝试查看 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,
如果我给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
或其他工具来查看是否以这种连续增量方式丢失了某些文件。
考虑一些常见的 *nix 系统(比如 Debian、CentOS、Arch 和 Kali)。
我一直用find
;我不记得使用过 GNU find,但是从我看到的一个示例中,我假设 GNU find 的语法可能更简单(尽管可能允许更少的操作)。
我有两个问题:
是
find
通用系统中默认的“查找或操作”实用程序,还是系统会同时find
带有和GNU find
?是
GNU find
为了更简单find
?
我正在尝试生成一个单词表,以便使用它来暴力破解我自己的 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
比我更了解,或者我是否应该使用其他工具或工具组合?