我正在尝试通过以下语法下载两个文件:
curl -O http://domain/path/to/{file1,file2}
Run Code Online (Sandbox Code Playgroud)
问题是实际上只有第一个文件保存在本地,而第二个文件只是简单地打印到标准输出。
我确实意识到,如果我添加一个-O
它就可以正常工作:
curl -OO http://domain/path/to/{file1,file2}
Run Code Online (Sandbox Code Playgroud)
但是,如果文件数量变得太大,这不是不切实际吗?例如,
curl -O http://domain/path/to/file[1,100]
Run Code Online (Sandbox Code Playgroud)
我的问题是,真的没有办法一次下载多个单独的文件curl
(不添加正确数量的-O
)?
我的笔记本电脑装有 Fedora 22 和 Gnome 3.16.4。通常,如果盖子关闭,它将暂停。但是当连接了外部显示器(通过 VGA)时,当盖子合上时,gnome 桌面会被简单地转移到外部显示器上。
但是,即使连接了外部显示器,我也希望我的笔记本电脑挂起。以下是我检查和尝试的内容:
systemd-logind
请记录我所看到的动作journalctl -b -u systemd-logind
。Dec 09 08:39:39 workstation systemd-logind[980]: Lid closed.
Dec 09 08:39:47 workstation systemd-logind[980]: Lid opened.
Run Code Online (Sandbox Code Playgroud)
/etc/systemd/logind.conf
如下:[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
Run Code Online (Sandbox Code Playgroud)
具体来说,我注释掉了HandleLidSwitchDocked=ignore
line 并将其更改为suspend
. 其余部分(由 systemd)据说是默认的。但是重启后就不行了。
lspci
)。由于它不是 nvidia,我认为它不受此线程中讨论的错误的影响?那么如何配置 Fedora/Gnome 即使连接了外接显示器也能挂起呢?
一些环境信息:
我设置在 gnome 终端配置文件中使用 Ubuntu Mono Regular 字体。拉丁字符确实可以很好地呈现。问题是我不喜欢它以某种方式自动选择的默认 CJK 字体来呈现中文字符。
我已经安装了所需的 CJK 字体,例如 Noto 字体、文泉易字体,并在 fontconfig 中配置为使用它们。通过这种方式,CJK 字符在 Chrome 中以所需的字体呈现。据我所知,错误的字体仅由 gnome 终端使用。(也许这是因为它使用不同的机制来选择要使用的字体?我猜是 Pango/Xft?)
我想知道如何选择 CJK 字体(因为它在 gnome 终端配置文件中不可设置)以及如何自定义它?
由于未知原因,bash 似乎将完成结果视为损坏的符号链接。看起来真的很令人不安。
系统信息:
编辑:据我所知,通过设置颜色colored-stats
中的 GNU Readline 选项~/.inputrc
将完全关闭:
set colored-stats off
Run Code Online (Sandbox Code Playgroud)
但这也会在自动完成时禁用其他着色,例如目录着色。
我认为这很奇怪,因为类似损坏的符号链接的着色发生在我家里的 Manjaro Linux 机器上,但不是我工作的 Arch Linux 机器上。两者都应用相同的bashrc
和inputrc
。但我暂时没有检查其他潜在的差异。
再次编辑:粘贴我的~/.inputrc
供参考:
$include /etc/inputrc
$if mode=emacs
# cycle through possible completions
TAB: menu-complete
# complete until the end of common prefix before cycling through possible completions
set menu-complete-display-prefix on
# show possible completions if more than one completions are possible
set show-all-if-ambiguous on
set show-all-if-unmodified on …
Run Code Online (Sandbox Code Playgroud)