Ubuntu 正在使用 snaps,如下所示
核心应用程序打包为 snaps
显示在这里
所以,我的问题是,由于使用df
命令显示快照,并且它们显然 flood df
。
它只是淹没了 df,使其更难使用。有没有办法阻止它?我假设因为 snap 计划被更频繁地使用,它要么不会在 df 中显示,要么 df 将成为一个更长的命令,有更多的管道。
这个问题已经被问过几次了,但我找到的解决方案都没有帮助。我已经尝试了所有我觉得舒服的解决方案。
我有一台运行 Ubuntu 16.04 的 Dell XPS Developer Edition,它可以连接到我连接的每个无线网络,除了我的家庭 WiFi。我已经通过无线连接到数十个其他网络,但没有任何问题,但我在家里却无法连接。
我家的 wifi 连接其他 16.04 笔记本电脑没有问题,包括具有相同无线卡(不确定驱动程序是否相同)的笔记本电脑。
输出sudo lshw -c network
:
*-network
description: Wireless interface
product: QCA6174 802.11ac Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:3a:00.0
logical name: wlp58s0
version: 32
serial: 9c:b6:d0:dc:d2:a7
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath10k_pci driverversion=4.4.0-93-generic firmware=WLAN.RM.2.0-00180-QCARMSWPZ-1 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn
resources: irq:135 memory:dc000000-dc1fffff
*-network
description: Ethernet interface
physical id: …
Run Code Online (Sandbox Code Playgroud) 这是我的内容 sudo crontab -e
@hourly /home/userName/ntpdate.sh
Run Code Online (Sandbox Code Playgroud)
我的脚本内容(ntpdate.sh)//.25是我的ntp服务器
echo "Current time is $(date), " >> /home/userName/ntpdateLog.txt
ntpdate -u 192.168.1.25 >> /home/userName/ntpdateLog.txt
Run Code Online (Sandbox Code Playgroud)
当我简单地单独运行命令或单独运行脚本时,它工作正常并输出到文件。该脚本具有正确的运行权限。
我在 /var/log/syslog 中遇到的错误是:
CRON[6386]: (root) MAIL (mailed 1 byte of output; but got status 0x004b, #012)
postfix/sendmail[6410]: fatal: open /etc/postfix/main.cf: No such file or directory
Run Code Online (Sandbox Code Playgroud)
当脚本不需要邮件(我知道)时,为什么会出现邮件错误。
我知道 ntpdate 已被弃用,但它是我现在唯一需要的东西(假设我可以让 cron 运行它)。