You can then combine this with s (substitute):
sed '/myregex/ s/from/to/ p'
This is not combining commands. In your example p
is a modifier to the s///
command.
You can then combine this with s (substitute):
sed '/myregex/ s/from/to/ p'
This is not combining commands. In your example p
is a modifier to the s///
command.
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.
The best way to manage environment variables: don’t use environment variables.
Cool, but what is Odin? If there’s no Wikipedia article about something, it doesn’t exist.
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.
Camel book is the best technical book I ever read. It’s unlikely that you’ll program Perl, but it’s really fun to read.
The Practice of Programming is the must.
How to do this the right way: https://github.com/funtoo/keychain/
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.
Nope. Free beer ≠ free speech.
That was many years ago, so I don’t remember all of them. E.g. Chromium was unable to display pages (was it installed from testing? or it was from stable but some of its dependencies from testing? I forgot).
Yes, this is possible if you configure preferences (see man apt_preferences
). However if you install numerous packages from testing, this can lead to various bugs. I used to do such installation and concluded that it is better to avoid this.
Not built-in. It uses gdb
or lldb
or another standalone debugger.
I’d rather prefer CI-level variables (macros?) that are not exported to the environment. Unfortunately, most CI developers don’t care about security.