Categories
Linux Mastering Development

Redo in readline emacs editing mode

How to redo (or undo an undo) in readline Emacs editing mode? The ways I’ve found for Emacs (C-g _) do not seem to work from the command line.

Categories
Linux Mastering Development

PHP Zip module doesn’t load

I use PHP 7.4 and Nginx 1.16.1 and i want to enable php-zip in my server because a wordpress plugin required it: I installed zip module (php-pecl-zip-1.19.1-1.el7.remi.7.4.x86_64). If i type php –modules zip extensions exists: [PHP Modules] bz2 calendar Core ctype curl date exif fileinfo filter ftp gettext hash iconv json libxml openssl pcntl pcre […]

Categories
Linux Mastering Development

using flags as destination atribute for cp and mv

I am attempting to do copy a file (or rename a file) by running the script with flags/parameters to give both the source and the destination file name: #!/bin/bash/ while getopts s:d flag do case "${flag}" in s) copy_source=${OPTARG};; d) copy_dest=${OPTARG};; esac done echo "Copy a file input with argument to another file input with […]

Categories
Linux Mastering Development

Clicking on taskbar icon now switches windows instead of displaying all of them. How can I revert?

I notices since about a week ago that when I would click on an icon from the taskbar (eg. firefox), when multiple instance of that program are opened (ie. many firefox windows are opened), it would displaying all opened instances of that program and allow me to click on the instance I wanted. Now it […]

Categories
Linux Mastering Development

Window snaps to wrong monitor on Gnome

I have two monitors side by side. When I move a window from the left to the right monitor on Gnome*, so that the left side of the window is still contained in the left monitor, and then move the window to the left side of the right monitor, so that the blue snap indicator […]

Categories
Linux Mastering Development

{RESOLVED}Cannot reinstall grub [duplicate]

EDIT: Installed the grub on the MBR and that resolved the issue: sudo grub-install /dev/sdb The issue was that I’ve initially installed grub on the partition and not on the MBR itself. Each time I start my PC after Kali install (which I am not sure how I set up, I am sorry!), I get […]

Categories
Linux Mastering Development

yum cannot update any repos and cannot install

I have recently installed centos 7 minimal version and trying to use yum to install other packages. but yum is not working, i always see timeout error. below are the files present in /ect/yum.repos.d/ CentOS-Base.repo CentOS-CR.repo CentOS-Debuginfo.repo CentOS-fasttrack.repo CentOS-Media.repo CentOS-Sources.repo CentOS-Vault.repo and I have changed enabled=0 to enabled=1 by following a some portals and some […]

Categories
Linux Mastering Development

xinput: Disable mapping touchscreen on external monitors

I am using Arch linux with i3wm on my Lenovo x390 YOGA. I also have two external monitors. I connect them throw my docking station and configure with Arandr. Screens woks fine. But every time I connect to external monitors my cursor triples it’s sensitivity on horizontal axis. My laptop’s touch screen divides in to […]

Categories
Linux Mastering Development

sed with next line (`+N` option) and frequency (`~N`) together

I am trying to retrieve 2 lines of text with sed, every 10 lines (10, 11, 20, 21, 30, 31, …). For lines 10 and 11 I could sed -n ‘10,11p’ file or sed -n ’10,+1p’ file. And for the range (lines 10, 20, 30, …) sed -n ’10,~10p’ file. But is it possible to […]

Categories
Linux Mastering Development

Debian shutdown after exactly 12 hours

i am running n server with debian10 to host a shop-website. The server stops after exactly 12 hours and i have to reboot the system. I have checked the following logs: /var/log/sys.log /var/log/kern.log /var/log/dmeslog But there is no error at the moment of the shutdown. Hardware has been replaced already, only kept the hard drives. […]