Questions tagged [terminal]
A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).
4,419 questions
3
votes
5
answers
187
views
How can I use sed to chain append lines from a text file, add it as a suffix to the text on the same lines numbers on another file, and so on?
I've tried using sed for this. I've tried putting the lines of interest in variables as well.
I have two examples I want to achieve for now. Lets say I have thousands of urls in a file called links....
0
votes
1
answer
25
views
Prevent terminal from giving information about its background, so that Vim always sets bg=light (default)
I use Rxvt-Unicode and set background to black in .Xdefaults.
Vim detects that, cf. help 'background' :
"dark" is used when 'term' is "linux", "screen.linux", "...
1
vote
1
answer
135
views
How to have backspace working on SSH connection console?
When opening an SSH console on an already established connection (e.g. LF ~ C), I get ^H instead of backspace regardless of terminal and setup (that I've tried).
It is really bad as any mistake ...
2
votes
1
answer
78
views
socat filter and replace character for modbus ascii
The goal is to get modbus ascii working with a Wallbox from ABL.
So I placed a RS485 to TCP converter in the box, created a pseudo tty for my application and got the wrong frame.
The answer starts ...
0
votes
0
answers
66
views
How to preset slime target to vim terminal by default?
When I use vim-slime, every time I open a vimterminal I have to reconfigure it.
:let g:slime_target="vimterminal"
Followed by:
SlimeConfig
And then I choose the terminal I just opened as ...
0
votes
0
answers
16
views
Change of behavior mutt when saving sent letters to the server
How do hooks work? Is it possible to use them to change the saved copy of the letter on the mail server (for example, to delete attachments)? For example, to use account-hook and replace the sent ...
1
vote
6
answers
694
views
Change a double quote into a single quote with gnu sed when the quotes come before and after a parenthesis?
I'm using Debian 12 bookworm, gnu sed. I have this
"Hello1"
"('41-Z', 5001, 'A6')"
"'Hello2'"
"('42-Z', 5002, 'A7')"
'Hello3'
"('43-Z', 5003, 'A8')"
...
2
votes
1
answer
119
views
Sending emails from the Linux terminal while preserving the fact of sending
I need to send a letter from Linux terminal to the recipient's mailing address. I want the fact of sending the letter, its title and its text to be saved in the sent section of my mailbox (the mailbox ...
1
vote
1
answer
44
views
How to remove overlay Box for diacritics?
I'm using st terminal on my Debian Linux desktop. st binary built from sources for 0.9.2 version.
When I try to use some specific keys for diacritics chars (circumflex or umlaut/diaresis), a "...
0
votes
0
answers
45
views
systemd service & tty: Rocky vs Ubuntu (I don't understand what's going on)
I cannot determine the root cause of the different behavior when running the following onestot.service on Rocky 9 (where it works) and Ubuntu 24 (where it does not work).
What I need to do is capture ...
2
votes
1
answer
214
views
socat pty,echo=0 terminal option does not work
I'd use socat to redirect the STDIN/STDOUT of the process executing docker run -it ubuntu bash command to a tcp socket in listening on port 32000.
root@eve-ng:~# socat -d -d -d EXEC:'docker run -it ...
5
votes
1
answer
794
views
QEMU -nographic vs -display none options
QEMU documentation describes the options -nographic vs -display none.
However I'm confused by them.
What exactly they are supposed to do and which is the difference ?
0
votes
1
answer
106
views
Is it possible to determine the keyboard layout?
Please tell me, is it possible to display the current keyboard layout using xkbcomp on Alpine Linux?
Alpine Linux is installed. I use Wayland with Wayfire compositor installed. I need to get data ...
1
vote
0
answers
75
views
Weird entry in ~/.zsh_history
I started using k8s Lens recently.
Today I opened my ~/.zsh_history and I see multiple entries like this:
'/Applications/Lens.app/Contents/MacOS/Lens -p "722ad0f7f7e84e2395138633991ed4ed" + ...
3
votes
1
answer
233
views
Replacing ./ with an alias
I'm trying to make an alias or a function that will execute a shell script or a file without holding up a terminal. So far I've figured out a command that'll do that, but I'm having trouble turning it ...
9
votes
3
answers
876
views
How to delete buffered text written to terminal during script execution
Let's say hypothetically I'm executing a long-running bash script, and while it's running, I accidentally right click on the terminal and paste a sensitive password (freshly copied out of a password ...
0
votes
1
answer
69
views
change the stdio/stderr font color for terminal
I am using a dark theme. As you can see, the errors (ModuleNotFound from python) is almost unreadable.
I have two questions.
Is this colour controlled by python or the terminal?
How can I change the ...
0
votes
1
answer
97
views
What does Ctrl+L do "under the hood", if not invoke clear?
I've noticed that using Ctrl+L to clear my terminal has some differences from using the clear command (from ncurses 6.5.20240427).
It seems that the clear command will wipe every character in the ...
4
votes
1
answer
610
views
Why does tab autocomplete sometimes not work?
In bash (Ubuntu 24.10, but I guess this would apply to other versions/distributions) when you type in a console a command you can use TAB to autocomplete the filenames of the current directory. ...
3
votes
1
answer
367
views
Debian: How to apply a new keyboard layout but without reboot?
Through VirtualBox was installed Debian 12 as server and is need it to change the keyboard layout.
I did do a research on Google and mostly taking the following link as main reference:
Keyboard
Thus ...
0
votes
0
answers
28
views
Starting htop from konsole vs launcher acts different - Slackware 15.0 KDE
I want to ask mostly out of curiosity to understand, what detail can have impact on behavior of htop program (or any other in the future) in following case. By default I had htop v3.1 installed, but ...
0
votes
0
answers
35
views
Ubuntu budgie: app in autostart run once then disappears
configured guake terminal to autostart at login, in startup ubuntu app
The command is:
guake --show -e "sudo nethogs -b"
When I reboot, or logout and login, the terminal starts, but if
I ...
0
votes
0
answers
112
views
How can I run commands on one shell from another?
I am currently using yazi as a TUI file manager, and one thing I wanted to do was set it up with my terminal emulator in a multi-pane view to have the file manager and a command line synchronized.
...
0
votes
2
answers
93
views
How do I remap Ctrl + X in the terminal [closed]
stty -a shows ^Z and ^C but not ^X. Is it not a signal like sigint for ^C and that's why it's not included?
0
votes
0
answers
65
views
Terminal command execution from panel
Opening terminal, entering command, hitting enter, works fine. Can we optimize, get rid of that first step: Rather than opening a terminal, can commands be entered directly into a panel, via some ...