Just disable printing out with the -n
option and add the p
modifier to the s///
command to print out lines where substitution has occured. sed -n 's/your-regexp/replacement/p'
Just disable printing out with the -n
option and add the p
modifier to the s///
command to print out lines where substitution has occured. sed -n 's/your-regexp/replacement/p'
It’s practically unrealistic. Even for a distro governed by a US-based company there are a lot of download mirrors, so restricting downloads from all of them is extremely difficult (and anyway unrestricted foreign mirrors still could synchronize with official ones via VPN). Forbidding foreign developers would require identification of each developer, but few distros do this (Debian does, but e.g. Fedora does not).
Developers would understand that such restrictions effectively kill a project, so they would shirk them.
It’s a bad practice to log in as root even for administrative tasks. You need to run numerous commands, some of hem can be potentially dangerous while not requiring root privileges. So normally you have an admin
user in the sudo
/wheel
group and need to login to this account. Also, this adds some protection in case your key has leaked.
The best way is to disable password login and use SSH keys only. Any further steps are not required, but you may additionally install fail2ban or sshguard.
Your idea is correct, but I don’t know how to do this in Wndows (while this is pretty simple in linux). However I want to warn you that if the partition that you are dumping is used by the OS, the resulting image will most likely be corrupted. Better use a linux live system and ensure that the partition is not mounted.
find / -lname '/path/you/are/looking/for/*'
Note that the -lname
option is a GNU find
extension and may not work with other find
implementations.
It asks for a path to a root directory of a bootstraped container. You can create it with debootstrap
, rinse
, pacstrap
, alpine-chroot-install
, virt-bootstrap
etc.
virt-manager is able to work wit lxc. Add a new connection of type Libvirt-LXC.
Yes, you can.
#!/bin/sh
printf 'ABC %s: ' "$(date --rfc-3339=date)" | xclip
Do you really need OPNsense? Buying a OpenWrt capable router would save your money, place and silence.
Well, I don’t use proxmox, however docker coexists with libvirt and other virtualization systems. If there are overlapping networks that docker ant proxmox attempt to manage, they are configurable.
Snapshotting in docker is as easy as docker commit
. After that you can back it up with docker save
. Then move to another host, but not without downtime.
However normally you need to backup/move only volumes attached to containers. If that’s not the way how you like to organize your services, you likely don’t need docker.
What’s the purpose of running container in a container? Why not install docker on your host machine?
I meant software RAID of course. Hardware RAIDs just cause headacehes, but fake RAIDs that are built into motherboards are a real nightmare.
Building RAID on top of SSDs is an answer.
Can you connect with sftp
? sftp myname@192.168.68.137
Paths are constant, only anchors are generated by forgejo.
You won’t get it here. Everybody will recommend his favorite distro.
IMHO the best would be to solve your problems in OpenSUSE. This is definitely possible. You really need to switch to another distro only if you feel youself uncomfortable with the release cycle, package management tools or packages present in the repo of your current distro.
This is not combining commands. In your example
p
is a modifier to thes///
command.