terminal

Alternatives to file polling?

Alternatives to file polling? In the following code, I have to poll $tmp_input to continue executing the code because wezterm cli send-text is asynchronous. This makes sure that $tmp_input is ready. tmp_input=$(mktemp ./tmp_input.XXXXXX) echo "read input; echo $input > $tmp_input" | wezterm cli send-text –pane-id $bottom_pane_id –no-paste while [ ! -s "$tmp_input" ]; do sleep …

Total answers: 3

Detect if the previous line was a command or not

Detect if the previous line was a command or not I’d like to enable Windows terminal shell integration in bash. (Don’t judge me.) One nice feature is that the terminal can show a mark in the scrollbar for each command, with a color depending on whether the command executed was successful or not. However, if …

Total answers: 1

How to delete rows that contain 0 in the "last column" in a linux terminal?

How to delete rows that contain 0 in the "last column" in a linux terminal? I’m wondering how can I delete rows when the value in the last column is "0" in multiple .tsv files where the last column number might not be the same for all files. And total number of columns varies hugely …

Total answers: 3

apt randomly switches languages ever since I installed Arabic on my Pop!_OS running KDE Plasma

apt randomly switches languages ever since I installed Arabic on my Pop!_OS running KDE Plasma I recently installed Arabic on my system and since then apt sometimes does things in Arabic and sometimes in English user@pop-os:~$ sudo apt update && sudo apt upgrade Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease Hit:2 http://packages.microsoft.com/repos/code stable InRelease Hit:3 http://apt.pop-os.org/proprietary jammy InRelease …

Total answers: 1

Zsh – how to enable backspace terminal beep sound

Zsh – how to enable backspace terminal beep sound How can I enable the bell sound in my kali linux terminal (zsh) when I backspace or hit tab for suggestions, notice that the beep works when I’m in a sub shell (eg. I accessed mysql CLI the backspace works fine) Asked By: ALLAOUA Okba || …

Total answers: 1

installing an app through the terminal

installing an app through the terminal i’m brand new to Linux coming from Windows so everything is confusing for me at the moment. I run currently "Pop!_OS 22.04 LTS" and trying to install this VPN called Private VPN (https://privatevpn.com/support/getting-started/linux/linux/network-manager-tun-recommended). On the website it tells me to install use the terminal with using either: sudo apt-get …

Total answers: 1

Unexpected terminal behavior after SSH session ends unexpectedly

Unexpected terminal behavior after SSH session ends unexpectedly I am regularly experiencing an unexpected behavior in my terminal, with the following sequence: connection to a remote server usage of a command/software that will be embedeed in the terminal (text editor, top…) session ends unexpectedly any mouse interaction injects unexpected characters in the terminal (and it …

Total answers: 1

SSH Chroot problems

SSH Chroot problems Having multiple issues with a Chroot im trying to setup. When logging in, the users name shows up as "I have no name!". The etc/passwd file is present and accessible by the chroot user, along with nsswitch.conf. The backspace key works at removing a character, but shows up in the terminal as …

Total answers: 1

groff -mandoc creating "ESC[1m" versus overstriking with backspace for bold text

groff -mandoc creating "ESC[1m" versus overstriking with backspace for bold text I found that groff uses different ways to indicate bold text for the utf8 output format. On FreeBSD 14, groff emits escape codes for a terminal (ESC, [1m): $ printf ".Dd todayn.Sh NAMEn" | groff -mandoc -Tutf8 | od -c 0000000 n 033 [ …

Total answers: 2

How to find out which tty a command was run in?

How to find out which tty a command was run in? Web search found e.g. https://askubuntu.com/questions/624848/view-history-of-commands-run-in-terminal, from which I understood there is the file ~/.bash_history and the temp history. I have many terminals open and want to find out specific output, history shows me command I’ve interested in. Any way to find out what tty …

Total answers: 1

Can't install GDK on Catalina

Can't install GDK on Catalina Welcome, while trying to install Gitlab GDK on a MacBook Pro Catalina 16G RAM it goes ok except three dependencies which already exist but the GDK says they are not installed or outdated! bin/gdk install The following Brewfile’s dependencies are missing or outdated: – dpkg – git-lfs – graphicsmagick To …

Total answers: 1

Does the display serve protocol (Wayland or X11) affect the terminal capabilities?

Does the display serve protocol (Wayland or X11) affect the terminal capabilities? I wonder whether the display server protocol that my system uses can affect some capabilities in my terminal, such as Clipboard interaction. Rendering images on terminal, etc… Since the primary role of a display server protocol is to manage graphical user interfaces, I …

Total answers: 1

Does stopping bluetooth service powers it off as well?

Does stopping bluetooth service powers it off as well? Other things being equal, which of the three computers (after executing respective commands on them) would use the most energy? Which the least amount of energy? 1. bluetoothctl power off 2. bluetoothctl power off && doas systemctl stop bluetooth 3. doas systemctl stop bluetooth Does stopping …

Total answers: 1

Use arrow keys in the middle of command

Use arrow keys in the middle of command I type 3 commands in my terminal, one after another: command1 command2 command3 If I use the up arrow key on my keyboard, I can access the previous commands. Suppose I want to use those commands in a new command. For example, the fourth command might look …

Total answers: 2

Are there commands for execute XFCE's menu entries to reboot or power off/shut down?

Are there commands for execute XFCE's menu entries to reboot or power off/shut down? There is Herunterfahren(DE)/Shut Down and Neustarten (DE)/Reboot: Is it possible to execute these GUI entries from the command line? If so, what exactly are the commands? I already checked XFCE’s docs page for the power manager, but as far as I …

Total answers: 1

Where can I find the below Linux terminal theme?

Where can I find the below Linux terminal theme? I have seen the below terminal theme a few times like this video. I think it is using the kitty terminal. I have found some config files here which might be relevant but note sure if this will work/how to install. FWIW I am using Arch …

Total answers: 1

How to quickly edit commands in the Linux terminal?

How to quickly edit commands in the Linux terminal? If you’ve typed a command, especially a lengthy one, in a Linux terminal, and you want to delete one or more words and replace them with something else, is there a way to do this quickly within the terminal? This isn’t related to Linux specifically, but …

Total answers: 4

How to configure ANSI text colors for NixOS console?

How to configure ANSI text colors for NixOS console? I’m on NixOS-unstable (as of 2023 Oct 1st). How can I configure the text colors for the default NixOS console, as the terminal supports ANSI? I tested what the colors look like by installing text-ansi on Haskell (GHC) and then putting some code snippets on GHCi, …

Total answers: 1

Command line glob to view multiple images using ImageMagick's display

Command line glob to view multiple images using ImageMagick's display How can I open multiple images files using ImageMagick’s display command? If I enter say display *.png in a directory containing multiple PNG files, only one is displayed. I think I’d prefer them to appear one at a time, but all at once could be …

Total answers: 2