小编Scr*_*uck的帖子

对差异输出的理解

我有 file1.txt

this is the original text  
line2  
line3  
line4  
happy hacking !  
Run Code Online (Sandbox Code Playgroud)

file2.txt

this is the original text  
line2  
line4  
happy hacking !  
GNU is not UNIX  
Run Code Online (Sandbox Code Playgroud)

如果我这样做:diff file1.txt file2.txt我得到:

3d2  
< line3  
5a5  
> GNU is not UNIX  
Run Code Online (Sandbox Code Playgroud)

通常如何解释输出?我认为这<意味着已删除,但做什么3d25a5意味着什么?

如果我做:

this is the original text  
line2  
line3  
line4  
happy hacking !  
Run Code Online (Sandbox Code Playgroud)

结果更清楚了,但这@@ -1,5 +1,5 @@意味着什么?

linux diff files

145
推荐指数
5
解决办法
20万
查看次数

从远程终端启动 GNOME 会话

我正在 SSH 到我朋友的机器上,我想知道如何通过 SSH 启动 GNOME 会话。我需要在他的机器上打开一个网络浏览器来查看一些只能通过他的主机名完成的事情。通过 SSH 实现这一目标的最简单方法是什么?

linux ssh gnome xorg

18
推荐指数
3
解决办法
17万
查看次数

youtube-dl 下载自动翻译字幕

我想下载自动生成的字幕youtube-dl 如下

$ youtube-dl --write-auto-sub \
             --skip-download \
             https://www.youtube.com/watch?v=vbLEf4HR74E
Run Code Online (Sandbox Code Playgroud)

它下载的文件The habits of happiness _ Matthieu Ricard-vbLEf4HR74E.en.vtt不是自动生成的字幕,它包含单词coke box而不是Coca-Cola tins.

如何下载正确的文件?

command-line networking video-subtitles youtube-dl

9
推荐指数
1
解决办法
5703
查看次数

如何在窗口中运行 GNOME Shell?(嵌套会话)

我正在 Wayland 下运行 GNOME Shell,我想在嵌套会话中调试扩展,这样我就不必重新启动合成器,我该怎么做?

xorg development wayland gnome-shell xephyr

8
推荐指数
1
解决办法
3790
查看次数