# wipefs -a /dev/sda
# parted -s -a opt /dev/sda mklabel gpt mkpart "ESP" fat32 2MB 500MB set 1 esp on && sleep 1
# parted -s -a opt /dev/sda mkpart "ROOT" ext4 500MB 100% && sleep 1
# mkfs.fat -F32 /dev/sda1
# yes | mkfs.ext4 /dev/sda2 -L "Arch"
также файл "ffmpeg.exe"
$ sudo apt update
$ sudo apt install ffmpeg
в них установлен скрипт такого вида:
ffmpeg -i http://example.com/playlist.m3u8 -c copy 1.mp4
#!/usr/bin/env bash
ffmpeg -i "http://example.com/playlist.m3u8" -t "3:00:00" -c copy "1.mp4"
$ chmod +x myscript.sh
$ ./myscript.sh
DISK=(/dev/nvme0n1 /dev/loop0)
TIME=2
while :; do
i=$(iostat -dsxy $TIME 1 -o JSON ${DISK[*]} | jq -r '.sysstat.hosts[].statistics[].disk[] | "\(.disk_device)\t\(.util) %"')
clear
echo -n -e "$i\n"
done
loop0 0.35 %
nvme0n1 0.42 %
%util
Percentage of elapsed time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100% for devices serving requests serially. But for devices serving requests in parallel, such as RAID arrays and modern SSDs, this number does not reflect their performance limits.
$ LINE="zh_SG GB2312"
$ eval $(echo "$LINE" | awk '{print "var1="$1";var2="$2}')
получим:$ echo "$var1 $var2"
zh_SG GB2312
ru_RU.UTF-8 UTF-8
en_US.UTF-8 UTF-8
zh_SG GB2312
$ lines=(`cat lines.txt`)
$ echo ${lines[0]}
ru_RU.UTF-8
$ echo ${lines[1]}
UTF-8
$ bash --version
GNU bash, версия 5.1.4(1)-release (x86_64-pc-linux-gnu)
...
$ ./untitled.sh 1 1 1 1
script4 - Linux Scripting Book
Parameters: 1 1 1 1
Showing logical AND
Clause 1
Showing logical OR
Clause 1
End of script4
#!/bin/bash
I suggest to remove in the following way, the most appropriate and safe way without removing many dependencies is:
sudo rpm -e --nodeps mysql-community-libs mysql-community-common mysql-community-server
pacman -Syu libreoffice-fresh libreoffice-fresh-ru
pacman -Syu libreoffice-still libreoffice-still-ru
pacman -R libreoffice-fresh libreoffice-fresh-ru
pacman -R libreoffice-still libreoffice-still-ru
Удалить Libre Office тоже не могу, ни одна команда удаления не исполняется.
cat /var/log/pacman.log| grep libreoffice
## Russia
#Server = https://mirror.rol.ru/archlinux/$repo/os/$arch
#Server = https://mirror.truenetwork.ru/archlinux/$repo/os/$arch
Server = https://mirror.yandex.ru/archlinux/$repo/os/$arch
sudo pacman -Syyu