aws ec2 describe-images \
--filters \
"Name=owner-id,Values=099720109477" \
"Name=name,Values=ubuntu/images/hvm-ssd/ubuntu-*-20.04-*-server-*" \
"Name=architecture,Values=x86_64" \
"Name=creation-date,Values=2023-*" \
--query 'Images[*].[CreationDate, ImageId]' \
--region us-east-1 \
--output table \
| sort
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
ln -s /usr/share/applications/firefox.desktop ~/Рабочий\ стол/
client-to-client
$ ps ax | grep Telegram
71201 ? Sl 0:09 /home/user/Downloads/Telegram/Telegram -workdir /home/user/.local/share/TelegramDesktop/ --
71521 pts/4 S+ 0:00 grep --color=auto Telegram
$ ls /home/user/.local/share/TelegramDesktop/
log.txt tdata
sudo apt install baobab
baobab
du -h /home --max-depth=1
docker run my-container
docker run --restart=always my-container
tree Downloads/mail.ru-cloud_15.06.0110_amd64
Downloads/mail.ru-cloud_15.06.0110_amd64
├── control
│ ├── control
│ ├── mail.ru-cloud.desktop
│ ├── mail.ru-cloud.png
│ └── preinst
├── debian-binary
└── usr
├── bin
│ └── cloud
└── share
├── applications
│ └── mail.ru-cloud.desktop
├── icons
│ └── hicolor
│ ├── 128x128
│ │ └── apps
│ │ └── mail.ru-cloud.png
│ ├── 16x16
│ │ └── apps
│ │ └── mail.ru-cloud.png
│ ├── 20x20
│ │ └── apps
│ │ └── mail.ru-cloud.png
│ ├── 24x24
│ │ └── apps
│ │ └── mail.ru-cloud.png
│ ├── 256x256
│ │ └── apps
│ │ └── mail.ru-cloud.png
│ ├── 32x32
│ │ └── apps
│ │ └── mail.ru-cloud.png
│ ├── 40x40
│ │ └── apps
│ │ └── mail.ru-cloud.png
│ ├── 48x48
│ │ └── apps
│ │ └── mail.ru-cloud.png
│ └── 64x64
│ └── apps
│ └── mail.ru-cloud.png
└── pixmaps
└── mail.ru-cloud.png
26 directories, 17 files
/usr/bin/cloud
. /etc/openvpn/my-super-config.conf
, тогда запускать надо: systemctl start openvpn@my-super-config.service
systemctl enable openvpn@my-super-config.service
FROM ubuntu:16.04
RUN apt update && apt install fortunes cowsay -y
CMD ["/usr/games/fortune", "-e"]
-e
, потому как не знаю как пайп запихать в CMD.CMD ["/bin/bash", "-c", "/usr/games/fortune -a | /usr/games/cowsay"]
iptables -t nat -A PREROUTING -s 10.10.10.10 -p tcp -m tcp --dport 80 -j RETURN
--dports 80,443,1212,1213,1214,1215 -j ACCEPT
) занимается таблица filter, т.е. это надо делать в цепочке FORWARD. UUID=diskuid /home/user1/folder ext4 umask=0002 0 2
UUID=diskuid /home/user2/folder ext4 umask=0002 0 2
addgroup newgroup; usermod -a -G newgroup user1; newgroup -a -G group user2
chown :newgroup /home/user1/folder -R