我想列出所有以字母lc-开头的服务。然后我想重新启动它们。
我该如何附加此内容?我在想类似的事情:
systemctl -l | grep ?? | systemctl restart ???
我想列出所有以字母lc-开头的服务。然后我想重新启动它们。
我该如何附加此内容?我在想类似的事情:
systemctl -l | grep ?? | systemctl restart ???
我想连接我的 Mac 和我的 Ubuntu 来传输文件,但正因为如此,我需要一个 Thunderbolt 3 PCI 扩展卡。我在不同的网站上找了一段时间,但我不确定 Ubuntu 20.10 是否支持它们?任何人都可以为我推荐一张卡或确认 Ubuntu 有驱动程序吗?
华硕 ThunderboltEX 3-TR
https://www.asus.com/Motherboards-Components/Motherboards/Accessories/THUNDERBOLTEX-3-TR/HelpDesk_Download/
Lenovo ThinkStation Rear Riser 卡 Thunderbolt 3
https://www.lenovo.com/us/en/accessories-and-monitors/cables-and-adapters/adapters/ACCKIT-BO-Rear-TBT-to-PCIe-Riser-Card /p/4XH0Y77510
我发现这个命令给了我文件中的 mime 类型:
file --mime-type dog.jpeg
输出:
dog.jpeg: image/jpeg
我现在正在尝试创建一个 bash 检查 mime 是否为 jpeg og png。但是我有点卡住了:
#!/bin/bash
$file_mime="file --mime-type dog.jpeg"
mime=`"${file_mime#*:}"`
if(mime=='image/jpg' OR mime=='image/png') do:
echo"Jpg or png"
done
输出:
./bash.sh: line 2: =file --mime-type dog.jpeg: command not found
./bash.sh: line 3: : command not found
我已经在我的 Ubuntu 20.10 机器上安装了 RStudio 1.4。我还安装了 texlive:
sudo apt-get install texlive
我现在可以使用 RStudio 创建 PDF 文件。但是,如果我将 bash 脚本添加到我的 RStudio RMarkdown 文件中,则会出现错误:
running: bash -c 'date
'
output file: wd1b.knit.md
! LaTeX Error: File `framed.sty' not found.
! Emergency stop.
<read *>
我将使用“文件”来检查大量文件的文件类型。我需要让它打印没有字符集部分的输出文件 mime 类型。
我的代码:
file dog.jpeg -i
输出:
dog.jpeg: image/jpeg; charset=binary
我想要的是:
dog.jpeg: image/jpeg
我正在尝试安装一个名为易失性的程序来进行内存分析。我在这里找到了来源:https ://github.com/volatilityfoundation/volatility
命令:
sudo apt-get update -y
sudo apt-get install -y volatility
错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package volatility is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'volatility' has no installation candidate
我下载了一个名为 gnome-shell-extension-openweather 的扩展程序,它可以为我提供我所在城市的天气预报。最近,当我启动 Ubuntu 时,它会提示此扩展有一个新版本,我应该更新。
但是没有说怎么更新,也没有更新的按钮。
有人知道怎么做吗?
这是应用程序网站:https ://gitlab.com/jenslody/gnome-shell-extension-openweather