netstat -an | grep :443 | grep -v TIME_WAIT | wc -l
如何将此返回值 171 转换为变量foo
,以便如果我输入$foo
它将返回 171。
netstat -an | grep :443 | grep -v TIME_WAIT | wc -l
如何将此返回值 171 转换为变量foo
,以便如果我输入$foo
它将返回 171。
我有以下 cronjob 设置
@daily /root/trim.sh
/root/trim.sh
fstrim -av
但它只是不运行。/root/trim.sh
手动运行时会这样。它有chmod +x
权限。这是什么原因造成的?
我最近将 Ubuntu 20.04 安装到 USB 上,并注意到我无法在“从 USB 启动”选项中看到它。我相信这是由于使用 ext4 文件系统安装它。我的笔记本电脑 Aspire 3 a315 似乎不支持它。
问题 2:预计 5 年内最常见的文件系统是什么?
所以我的第二个问题是关于未来的证明。预计未来 5 年内最常用于笔记本电脑的格式。NTFS 是一个不错的选择吗?我不是在询问性能,我只需要它可以使用以及笔记本电脑仍将使用的最可能格式是什么。
现在我正在使用以下命令来获取视频持续时间的输出
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 -sexagesimal 'video file.mp4'
结果是0:33:29.410000
我需要将此结果更改为以下内容
我正在使用当前的 ffmpeg 命令来转换多个视频并创建一个水印,该水印是每 120 秒播放时间从右到左到右的滚动文本。
find /home/video/ -type f -execdir ffmpeg -i '{}' -filter:v "drawtext=fontfile=/root/FreeSans.ttf:text='QWERTY':[email protected]:fontsize=26:y=h-line_h-30:x=w/20*mod(t\,120),scale=854:480" -pix_fmt yuv420p -c:v libx264 -preset slow -b:v 1000k -minrate 500k -maxrate 2000k -bufsize 2000k -c:a aac -ar 44100 -b:a 128k -movflags +faststart '/home/video/new/{}.mp4' \;
我想修改水印,使它看起来像这样
我希望上面显示的文本每 120 秒淡出一次并持续 15 秒。是粗体格式和相同的颜色(黑色)。
“qwerty qwerty qwerty qwerty”新行
“qwerty qwerty qwerty qwerty”
我目前使用的当前命令的另一个问题是不同的视频帧。例如,如果视频只有 800x600,则文字会非常大。如果视频为 1920x1080,则文字会非常小。我希望根据帧速率调整文本大小。就屏幕尺寸而言,它应该看起来像上面那样。
由于 msdos-partition-table-imposed 错误,我遇到了与在麻烦创建 3TB ext4 分区上发帖的人相同的问题
我得到的新的 6TB 驱动器仅由 Microsoft 发行 2TB,因此我启动到 gparted 的“设备->创建分区表并从列表中选择“gpt”。然后我重新启动到 Windows 和 G: 驱动器不再安装。我删除了 disk0 并在 Windows 磁盘管理中重新创建了它,但是正如您在下面的屏幕截图中看到的那样,磁盘大小仅为 5589GB。应该更多吗?
在执行此操作之前,我确实使用了大约 300GB 的数据,我想恢复这些数据,但 Windows 和 gparted 都无法检测到超过 5589GB 的数据。
我已经在机器上安装了 Proxmox。我需要扩展/dev/mapper/pve-data
未使用的空间/dev/sdb5
我怎样才能做到这一点?
fdisk -l
Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xfbd89a5c
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 4096 40962047 40957952 19.5G 83 Linux
/dev/sda2 40962048 43057151 2095104 1023M 82 Linux swap / Solaris
/dev/sda3 43057152 468854783 425797632 203G f W95 Ext'd (LBA)
/dev/sda5 43059200 468854783 425795584 203G 8e Linux LVM
Disk /dev/sdb: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xafd793e2
Device Boot Start End Sectors Size Id Type
/dev/sdb1 4096 40962047 40957952 19.5G fd Linux raid autodetect
/dev/sdb2 40962048 43057151 2095104 1023M 82 Linux swap / Solaris
/dev/sdb3 43057152 468854783 425797632 203G f W95 Ext'd (LBA)
/dev/sdb5 43059200 468854783 425795584 203G fd Linux raid autodetect
Disk /dev/mapper/pve-data: 199 GiB, 213708177408 bytes, 417398784 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes