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).

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Accidentally delete DPKG (exclui sem querer o DPKG)

E: Sub-processo dpkg --set-selections retornou um código de erro (100) E: Sub-process dpkg --set-selections returned an error code (100) E: Couldn't clean the currently selected dpkg states
1 vote
2 answers
2k views

Set up a shortcut to open terminal in a specific directory

As far as I know, when you hit Ctrl+Alt+T, the Linux terminal pops up. However, it opens in the default home directory. I want to set up this shortcut to open in the directory I am currently in at my ...
0 votes
1 answer
37 views

Change the font family with a shortcut in XTerm

I'm trying to change the font family on the fly (with a shortcut) in XTerm. At the moment I can change the font size. I tried to do this with the action set-render-font(), but I'm not sure if it's the ...
-1 votes
0 answers
32 views

Is it possible to overwrite a line of the terminal that is off the display area?

I know that I can rewrite previously written lines of the terminal using ANSI escape codes such as ESC[{n}F to go back n lines up, and then ESC[2K to erase the content of the current line. However I ...
0 votes
2 answers
58 views

Console doesn't render according to man manual

So why is my console on Ubuntu doesn't render according to the man manual? If I type in man man in the console I get a manual for man. And for example, it points out that italic text replace ...
64 votes
5 answers
41k views

Where do I find a list of terminal key codes to remap shortcuts in bash?

For example: "\e[1;5C" "\e[Z" "\e-1\C-i" I only know bits and pieces, like \e stands for escape and C- for Ctrl, but what are these numbers (1) and letters (Z)? What are the ;, [ and - signs for? ...
0 votes
1 answer
18 views

Run a scheduled command on open terminal

A task/script scheduled with cron or at (AFAIK) can not run inside a specific terminal: it can only print the output (through redirection) of a task/script to a specific terminal. Instead, I would ...
0 votes
1 answer
25 views

Is it possible to paste value into editable string of terminal in key binding function?

I knew about binding in bash. bind -x '"\C-k":"mc"' — this example is allow to run mc when editable command is not finished. I think, that it way allow make a lot of macros-...
1 vote
0 answers
23 views

Which terminal emulators for Linux support VT320 / VT420 soft character sets?

It' s about the Dynamically Redefined Character Set (DRCS) feature supported by the Digital VT320 terminal (and later models). Do any of the well-known terminal emulators like xterm, Konsole, or gnome-...
0 votes
1 answer
24 views

Terminal is losing the blink and is not showing text after using (batcat)

So, I used batcat to syntax highlight a file in the terminal. After I close it through Ctrl + C, my cursor stops blinking and I cant see the text I type in my terminal. Error
21 votes
6 answers
25k views

How do I jump to the next or previous word with CTRL + arrow keys in a console?

In terminal emulation applications, pressing CTRL + Left / Right arrows jumps from one word to the previous or next one. Is it possible to have the same functionality in a Linux console, whether it is ...
5 votes
3 answers
11k views

How to change wallpaper on xfce from terminal?

Linux kali-linux 5.6.0-kali2-amd64 #1 SMP Debian 5.6.14-2kali1 (2020-06-10) x86_64 GNU/Linux I want to change my wallpaper from the terminal. I tried methods suggested here and: Gsettings doesn't ...
1 vote
1 answer
60 views

i3 status bar with ANSI *input*

I want to show a text having ANSI escape sequences in a status bar. The status text is generated by third party tools, that manage themselves the ANSI colors (and hyperlinks, albeit these may be left ...
1 vote
0 answers
21 views

Pasting non-ascii (utf8) into remote urxvt terminal

For pasting text, in urxvt/rxvt-unicode one can use middle button to paste PRIMARY selection. I can do such Mouse-Middle-Click paste in my local urxvt terminal and even a remote server, in Chinese/...
1 vote
2 answers
1k views

force output to input (buffer) like "\033[6n" in a script

I have tried using pipes and redirections to have (C program or scripts) output end up on the input buffer, the way printf "\033[6n" does, but no positive results. Does anyone know how this ...
0 votes
2 answers
28 views

How to print full path of a folder which is not current directory?

Need to print full path of a folder which is from terminal which is not the current directory. For example /media/hardDrive/Music folder has three sub-directories Album_1 Album_2 Album_3. /media/...
570 votes
7 answers
495k views

Scroll inside Screen, or Pause Output

I use screen for my command-line tasks while managing the servers where I work. I usually run small commands (mostly file-system tasks) but sometimes I run more extensive tasks (like DBA). The output ...
2 votes
2 answers
3k views

Invalid MIT-MAGIC-COOKIE-1 when I run mpirun

Suddenly whenever I run mpirun I get the error Invalid MIT-MAGIC-COOKIE-1 key. I think this might have started after I killed a command using mpirun that had been launched from a python console. I ...
-1 votes
1 answer
45 views

Why is there a random question mark in my terminal?

Hi everyone, I followed this guide: https://gist.github.com/kevin-smets/8568070 I decided not to use the source code pro font as it messed up my terminal with the characters, this one works, but it is ...
0 votes
1 answer
216 views

Linux Virtual Console (ctrl+alt+f2) scrolls past edge of monitor

I run centos linux 7 Kernel 3.10.0-957 Graphics are nvidia, resolution 2560,1440 echo $TERM returns linux In all of my ctrl+alt+f# virtual consoles, the text scrolls past the bottom of the display....
1 vote
2 answers
61 views

Linux: Is it possible to have TTY messsages in terminal emulator?

I use LinuxMint21, and I go in TTY only when I have an issue with my X session. Today, I went to a TTY, and I saw messages about sysrqd, partially disabled (was not expected), and I have some upgrade ...
0 votes
0 answers
9 views

redirect console from virtualbox RHEL guest to Windows host

I have the following setup: A host machine running Windows 10, with VirtualBox A guest machine on that host running RHEL The host has a physical serial port I need to accomplish the following: ...
-1 votes
0 answers
41 views

'Open in terminal' not working in Download folder

When pressing 'Open in terminal' on any folder in my file manager, nothing happens. I expect that my terminal opens in this folder. I'm using Arch Linux, file manager is caja, and Gnome terminal ...
4 votes
1 answer
1k views

What determines whether a script's background processes get a terminal's SIGINT signal?

#!/usr/bin/env bash sleep 3 && echo '123' & sleep 3 && echo '456' & sleep 3 && echo '999' & If I run this, and send SIGINT by pressing control-c via terminal, it ...
25 votes
6 answers
27k views

oh-my-zsh's prompt is slow: how to fix this

I'm using macOS 10.15.2 with iTerm2, zsh 5.7.1 and oh-my-zsh (theme robbyrussell). I noticed that the prompt print is slightly slow respect to the bash one. For example, if I press enter, cursor ...
10 votes
3 answers
1k views

Is it possible to send data to the the shell of another pseudo-terminal?

This image shows how pseudo-terminals work: If I have two terminal emulators open, I can send the string "Hello" from the first terminal emulator to the second terminal emulator: echo "Hello" > /...
0 votes
1 answer
22 views

zsh PROMPT coloring doesn't work inside of tmux

I have the following line in my .zshrc: export PROMPT="%n@%K{9}%m%k:%~# " It works if I connect directly But doesn't work inside tmux How to fix?
0 votes
0 answers
34 views

Unbound variable when passing to npx

I'm trying to create a simple script in my package.json file of my node project { "scripts": { "db:create-migration": "echo 'Enter a filename' && read name &&...
0 votes
0 answers
29 views

why the curl could not access website when using proxy

I am using macOS 13 and set the proxy in terminal like this: ➜ depot_tools git:(d9e2d479) env|grep all_proxy all_proxy=socks5://127.0.0.1:7890 then I using the curl command like this: ➜ depot_tools ...
8 votes
3 answers
2k views

Box character doesn't display properly in Linux terminal

I was just writing a C++] program that uses the box characters to display information.  I ran the program on macOS and used the terminal app and it worked fine. When I switched to Debian Linux using ...
0 votes
0 answers
35 views

Duplicate instance of ZSH shell in process list

This seems to be very odd as I've found little to no evidence that this issue has presented to someone else. When running ps this is the output: PID TTY TIME CMD 3142 pts/0 00:00:02 ...
89 votes
8 answers
385k views

Connect to a Bluetooth device via Terminal

I'm using Mint 15 w/ Cinnamon. I bought a set of bluetooth speakers and I'm trying to connect to them via terminal. Via the GUI I can see them normally and I am connected to them. I want to make a ...
4 votes
1 answer
2k views

Use Scroll Lock key for terminal flow control

So, my Scroll Lock key doesn't have much use, while I keep hitting Ctrl+S with no intention of stopping control flow. I know how to disable Ctrl+S from locking scroll (stty -ixon), but can I use ...
3 votes
1 answer
2k views

sudo: unable to initialize PAM: No such file or directory after editing pam.d

I was playing around with the pam.d file in nano and for some reason along the way I lost root access. Whenever I try to use the sudo command, I get an error like this: [redacted]@[redacted] ~ % sudo ...
1 vote
1 answer
79 views

How to copy and paste in alpine linux VM?

I recently installed an alpine-3.17 VM using virtualbox 7. I also installed the guest additions and are able to map shared folders. But it seems that I cannot copy-and-paste from the host OS. I copied ...
0 votes
1 answer
35 views

How to run software in terminal offline?

I would like to run a flatpak program offline through the terminal (flatpak spoty runs as sudo!). I am looking for a simple command like: "runoffline" flatpak run application. What would be ...
2 votes
1 answer
420 views

How to fix vim color scheme in other terminals?

The problem I'm dealing with right now is I don't like gnome-terminal. I've tried alacritty, konsole, st (currently in use), and they're all having the same issue – they break my vim color scheme. ...
0 votes
1 answer
3k views

Install problem for xdotool

Since I have problems with my Internet connection I'm not able to always run command apt-get install xdotool in Terminal, so I would like to download the xdotool package manually from website in .zip ...
1 vote
1 answer
36 views

Dynamic word wrapping for KDE Plasma terminal emulator (aka Konsole)?

I recently migrated from Gnome to KDE. Gnome was my first and only Linux desktop environment. In Gnome terminal dynamic word wrapping was already implemented by default. I don't see that in KDE Plasma....
0 votes
0 answers
34 views

I'm looking for a remote / networked kind of Terminal or something like this

let's think about this scenario: Linux as host OS (I prefer Debian) and two different guest OSes, virtualized with qemu and kvm. The first one could be Fedora, the second one Arch. The virtualized ...
14 votes
2 answers
4k views

Can I make the clear command behave like Ctrl-L in Bash?

It seems that clear and bash Ctrl-L are quite different; clear completely removes all previous terminal information (so you cannot scroll up) while Ctrl-L just scrolls the screen so that the cursor is ...
0 votes
2 answers
3k views

How can I save the output of last executed command from terminal?

I have an incremental build command for my project that will output something if I do a clean build, and output something else (less) if I do an incremental build. How can I save this if I already ...
1 vote
3 answers
2k views

Logging in with 'su' without entering a password

How can I log in with the su command in one line in the terminal? I know that the sudo command can do that: echo [password] | sudo -S [command] But when I try to imply it in the su command : echo [...
0 votes
2 answers
6k views

Terminal Startup Scripts?

I recently downloaded Ruby onto my mac via rbenv, and I read instructions that showed me how to start up rbenv every time I open terminal. Is there a way to view all the startup scripts for terminal? ...
0 votes
1 answer
19k views

How to fix Picked up _JAVA_OPTIONS: no options listed on Linux?

This issues is on Manjaro Deepin 15.9 linux DE. When I run java -version in terminal it outputs this: Picked up _JAVA_OPTIONS: java version "11.0.2" 2019-01-15 LTS Java(TM) SE Runtime ...
-2 votes
1 answer
35 views

How to install Apache and DNSmasq tools, without Terminal

How can I install apache server and dnsmasq without using a terminal? Just downloading ZIP files and manually configuring them. The easiest is to install the installation tools from the command line, ...
1 vote
1 answer
62 views

How to make tail command end itself

In my app I use tail -q -f -n +1 [file name] to read current data of a file (dynamically growing file) and continue reading new chunks until the end. But that command never exits. It stays alive in ...
0 votes
1 answer
16 views

Is it bad that I changed the default application of application/x-trash files?

I was trying to use the mimeopen command to open an image file. I ended up being asked to pick the default application of application/x-trash. I was practicing python and thought I should press ...
1 vote
2 answers
2k views

Limit in saving program output to file in Linux

I know I can use: $ my_program > output.txt To redirect the output to a file, but the problem I have is that when the file reaches 64 Kb no more is written in the file and I lose all information ...
0 votes
1 answer
37 views

Change Default Directory in Gnome Bash Terminal

I use the bash terminal on Ubuntu Ubuntu 20.04.5 LTS, with the GNOME terminal emulator. When using the terminal, this is the current (default) behavior: When I open a new terminal session, it starts ...

1
2 3 4 5
84