Search
As a workaround, I had to uninstall pytest from the package manager and install it in the virtual environment. However, I would prefer to use the pytest from the package manager since it makes se...
Suppose I have a command that prints to the standard output, like: $ echo hi hi How can I send this to the clipboard instead, as if I selected the output and did Ctrl+C?
I think there are three general strategies: Take notes. Configure everything through some utility that keeps track of it. Learn the default state and diff the system vs. it. Taking notes ...
On X, echo hi | xsel -ib seems to work. I can then paste with Ctrl+V. Sometimes I have to repeat it a few times for it to "stick".
I want to install additional Linux distributions on my computer, so I can try some new ones and see if they're better than my current ("old") one. I've been using my current distro for a while. I'...
I installed Grub in the normal way and now I have entries in the Grub menu for linux, linux-lts, and the fallback versions of them. I want to add more entries to this. For example, I want to add l...
I've heard people say that Linux is a misnomer. Supposedly, the operating system is not Linux, Linux is just a part of it called a kernel, and the operating system should be called something else. ...
I understand that "mounting" in Linux refers to associating some "device" (usually some storage drive or a partition thereof, but it could be a region of RAM, some memory-mapped hardware, etc.) wit...
I've noticed that the default kernel selection for Ubuntu 22.04, for example, is Linux 5.15.0. Ubuntu 22.04 is a LTS release, which is supposed to have standard support until April 2027, and Linux ...
If you are on Debian itself, you can simply check with lsb_release -a or one of the other methods of checking the OS version. If you are not on Debian, this will simply list the version of your d...
#!/bin/sh export LC_ALL=C # to make sorting not depend on locale # Ignore some well-known directories with many files find_args=' -path /usr/lib/modules -o -path /etc/ssl/certs -o -path ...
It sounds like what you want is: There is a program installed in the regular OS on my hard drive, but I am booted into a live OS. How do I run that program? The common way to do this is to us...
watch will let you do what you want, yes. This can be easily demonstrated by running watch with a brief-running command and a delay, such as: $ watch -n2 'date; sleep 5' and observing that the ...
I have a crappy USB hub. I connect some devices to this, like a USB microphone, which don't matter at all until I've booted successfully. Sometimes these devices cause an issue and my boot gets stu...
I have a systemd unit that runs hourly, but when the computer has just booted/logged in it will "catch up" on the previous run, so it ends up firing right after I log in. Is there a way to make it...
A lot of games are made for Windows, and don't have an official Linux version. Can you play these on Linux? Asking specifically about games, not all programs, because games have a lot of additiona...
You can use the pre-commit hook for this. Example .git/hooks/pre-commit: #!/usr/bin/bash git fetch if [ $(git status -sb |grep -c behind) -gt 0 ]; then echo "ERROR: local repo is beh...
Super+comma and Super+period were mapped as emoji annotations. Run ibus-setup, go to the emoji tab, delete the bindings. Thanks to this SO post.
I won’t repeat the points mentioned in Ordoviz’s answer, but there’s another important aspect which is often forgotten: when you pipe a script to a shell (or pass it as an argument to -c), whatever...
You can use openssl to get the information. It is usually installed by default in every distribution. $ openssl s_client -connect codidact.com:443 -showcerts </dev/null | openssl x509 -text de...
I'm a complete beginner, and just installed Linux for the first time. I chose a popular distribution, but I've run into some issues, or have a few questions. However, I don't know if I have Gnome, ...
By memory If you installed Linux yourself, then you were almost certainly informed about this at some point in the process. Generally, you're either expected to choose a separate installer accordi...
ip a command will conveniently show the addresses assigned to your network interfaces, but oftentimes this is not what the internet sees your machine as. So how to find your public IP address from...
How can I remap buttons on my mouse, especially for more exotic ones like MMO mice?
Init is starting all other processes. It's first process started by kernel. After that init uses init scripts to start all other needed functionality to boot up system, like mounting volumes, daem...