cp and mv using wildcards and forgetting to specify a destination directory

It has happened to me several times that I used cp or mv with wildcards but I forgot to specify a destination directory. Here is an example of the mistake when collecting logs: ~# mkdir problem_logs ~# cd problem_logs ~/problem_logs# cp -pv /var/log/messages* ‘/var/log/messages’ -> ‘/var/log/messages.1’ You can see that I forgot to write the…

Details

Centos8, run gtk program under sudo privileges: cannot open display: :0

I’m currently struggling when trying to run bleachbit under root privileges on CentOS 8. Using my non-sudo user, there is no problem. When i try to run it as sudo, i get the following error: (bleachbit.py:10145): Gdk-CRITICAL **: 10:04:10.493: gdk_screen_get_root_window: assertion ‘GDK_IS_SCREEN (screen)’ failed No protocol specified Unable to init server: Could not connect: Connection…

Details