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
10 views

can't get the PID of running process in terminal

The error that I am getting is that when trying to run a project I get the error saying that the port is already occupied. so I run the command $ lsof -i :<PORT> the problem is that after ...
user avatar
  • 101
0 votes
0 answers
18 views

Create/Use Project in VS Code via Terminal

I have a remote ubuntu machine that I use from my mac only via terminal. I have installed VS Code in it via the command: snap install --classic code However, I am confused as to how do I start ...
user avatar
0 votes
0 answers
27 views

scan all directories and subdirectories for .php file output filter with grep

i need to check all php files for error. so i run this command find . -iname '*.php' -exec php -d error_reporting=1 '{}' \; it works well but i want to show just output that start with PHP Fatal ...
user avatar
0 votes
0 answers
22 views

has had broken packages. when trying to install wine32 huayra 5.0

I turned to this page to see if I can solve my problem which is the following: ~$ sudo apt install wine32 Reading package list... Done Create dependency tree Reading status information... Done Some ...
user avatar
  • 1
1 vote
1 answer
15 views

Change color of title bar in Konsole terminal emulator

I'm using Konsole terminal emulator in Debian bullseye. And with the default color setting, I think the active tab is not distinguishable, so, I want to change the color of active tab to other color ...
user avatar
  • 15
0 votes
0 answers
16 views

Error With gtk-launch: Unable to find terminal required for application

I tried to use the following command: gtk-launch nvim file.txt But it gave me this error: gtk-launch: error launching application: Unable to find terminal required for application How am I supposed ...
user avatar
  • 115
0 votes
1 answer
26 views

Arch, Gnome - how to change the default terminal?

I want to change my default terminal emulator, that is, the terminal that opens when I Right Click -> Open in terminal So far, I've tried: sudo update-alternatives --config x-terminal-emulator ...
user avatar
3 votes
1 answer
25 views

Adding/permitting "staff" to read/write in folder

For some reason, there isn't "staff" user group on a folder that I just created. How do I add/permit "staff" user group to a folder that I just created? This post, seems to suggest ...
user avatar
0 votes
1 answer
39 views

problem with DNS resolution in CLI

old MacBook screen is dying, so switched to a new Ubuntu 22 laptop immediately DNS problems, hitherto not experienced, ensued I'm working with a staging box (AWS), xsubdomain.xdomain.com. Web browsers ...
user avatar
0 votes
1 answer
19 views

Script for Exporting File Metadata to CSV?

DISCLAIMER: I am not a developer and don't have much knowledge of coding; however, what I want to do seems simple enough. I use Pro Tools and want to run a terminal script in Mac OS to be able to scan/...
user avatar
0 votes
0 answers
11 views

How to disable and re-enable bracketed paste mode in xonsh?

How to disable and re-enable xonsh bracketed paste mode? It breaks pasting in interactive terminal tools that are started with keyboard shortcut. In fish I can run functions ...
user avatar
  • 557
0 votes
0 answers
7 views

Is there a terminal/plugin that allows jump (scroll) through marks / bookmarks

I've changed from Mac to Linux, for developing in Ruby I've improved my experience in everything but in the terminal. Mac Terminal have a mark / bookmark keybindings for navigation that is really ...
user avatar
1 vote
0 answers
23 views

copy/paste in terminator stop working after a while

I am running Ubuntu 16 and has Terminator installed, for some strange reason copy/paste either through keyboard shortcut or right-click mouse menu would stop working on certain terminator windows, it ...
user avatar
  • 11
0 votes
1 answer
39 views

How do I change the default Linux console font to Adobe Source Code Pro font semi-bold?

The reason I’m trying to do this is I like the default font called “fixed” on the console, but it’s too small. the only way I’ve found to make the font bigger is to use “terminus”, but that font is so ...
user avatar
0 votes
1 answer
11 views

How can I set up my Github Account to work in each terminal session?

Every time I want to clone one of my repos, I have to enter my Github account name and access token. How can I add my github account to my terminal?
user avatar
  • 1
0 votes
0 answers
11 views

How to wrap a process with an activity indicator?

I have a process which I'm running in a terminal session. The process prints nothing (or perhaps it prints a lot of junk which I redirect somewhere), and takes quite a while, e.g. a couple of minutes. ...
user avatar
  • 7,311
0 votes
1 answer
13 views

Change terminal color theme to black ink on white paper in Q4OS

I am using the Q4OS linux. The terminal has a dark theme with black background and white ink. I would like to have black ink on white background in the terminal. I have found a partial solution by ...
user avatar
0 votes
1 answer
6 views

Nano can not find previous occurrence while searching with alt+Q shortcut

I was trying to find a text with nano. Ctrl+W shows the text and with alt+W I can go the next occurrence but when I try to go to the previous occurrence with alt+Q, I see a message Conversion of ...
user avatar
0 votes
1 answer
49 views

Kitty terminal: I don't have any colors on PS1 bash prompt

Unlike other terminal emulators with kitty terminals I have no colors on bash prompt. I am using ubuntu, my PS1 is \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$ What have I to setup ...
user avatar
  • 228
0 votes
0 answers
30 views

How to change Linux terminal prompt

I've been using Terminator as my terminal but after reconfiguring my display manager to 'Lightdm' after 'gdm3' crashed while installing updates, I messed something up, not with terminal, using the GUI ...
user avatar
0 votes
1 answer
33 views

Dumb terminal agetty keyboard layout filter

I recently acquired an old Heathkit dumb terminal, and I would like to get it working with the colemak keyboard layout. Because the terminal sends ascii codes directly over serial, I don't believe ...
user avatar
  • 31
0 votes
1 answer
32 views

create zsh function with argument for ldapsearch

I have a couple commands I can run directly on the command line without issue, when I run them and replace $1 with the actual group name I want to check in LDAP. Now I want to turn it into a ...
user avatar
  • 103
0 votes
1 answer
31 views

How to show iTerm2 completion suggestions in a menu while typing

In a presentation at Docker Con 2022, Shy Ruparel showed his iTerm2 terminal with an awesome completion/suggestion function. It shows command suggestions in a menu while typing, without pressing TAB ...
user avatar
  • 111
0 votes
0 answers
16 views

Terminal not staying open when using custom URL protocol x-scheme-handler?

I am trying to pass the URL to be printed in shell, and that the terminal remains open for 10 seconds, using this scheme echo://helloworld, sadly not works. The terminal closes before completing the ...
user avatar
0 votes
2 answers
67 views

True color support in TTY

I'd like to know if there's any way to get true color support in the tty. To be clear, I don't mean a terminal emulator, I mean the actual tty you get when no display server is running.
user avatar
0 votes
0 answers
10 views

Tmux sharing a same session but within different buffers?

One of the ways I use tmux is by sharing sessions in between hosts, so having additional "screens" controlled in one host. For that, I use Tablets and Smartphones using termux in the same ...
user avatar
0 votes
0 answers
10 views

A tmux function to achieve double height by splitting a pane horizontaly?

Most of the modern screens are wider than taller but we (developers) all want taller "buffers", wastin g away big portions of our screens. If only there is a plugin in tmux that would do the ...
user avatar
-2 votes
4 answers
75 views

How can I automatically run a terminal command on every startup?

I have a small audio problem on my Ubuntu install that can be fixed by running a command on the terminal (which does not require root privileges): pacmd load-module module-alsa-sink device=hw:0,0 &...
user avatar
  • 1
0 votes
0 answers
33 views

Use a rpi as terminal for a headless server

I have 3 computers at home, one for work, one for gaming and one as a server. I need to connect at least two of them to a display, keyboard and mouse. One option is to use a KVM device but, is it ...
user avatar
  • 231
1 vote
0 answers
36 views

How to capture all keyinput directly to a terminal app

I'm creating a simple terminal app to help teach keyboard shortcuts (using ruby/curses and running Manjaro and i3). Let's say a shortcut I'm trying to learn is S-Return for open a new terminal. I want ...
user avatar
0 votes
0 answers
58 views

Text disappearing and reappearing

I'm running Lubuntu 22.04. Occasionally, when I type, a portion of the text near to the end of my line disappears and reappears repeatedly. I tried using xev to check for any misfiring keys buts I ...
user avatar
0 votes
1 answer
70 views

What does the ". /etc/profile" do? [duplicate]

I saw these instructions in a book and don't know what the . /etc/profile command does, what is it? Is it the same as source /etc/profile? Linux-specific Java steps On Linux systems, the following ...
user avatar
2 votes
1 answer
85 views

run a command with double quote in new window in Alacritty

I can run gnome-terminal -- journalctl --since "10min ago" -f What is the equivalent of this command for alacitty. I tried alacritty -e "journalctl --since \"10min ago\" -f&...
user avatar
  • 1,339
1 vote
1 answer
30 views

How to put a series of terminal commands in a shortcut icon on the taskbar in kde?

Is there a way to make a icon shortcut on the taskbar to open emacs by running SNAP=1 SNAP_NAME=1 SNAP_REVISION=1 /home/felipe/emacs/src/emacs in the terminal when I click on it? I asked this on the ...
user avatar
0 votes
1 answer
11 views

in tmux bind MENU key to prefix but it is giving me "bad key bind error"

i just started using tmux and have been trying to bind my MENU key to prefix but it is giving me "bad key bind error", it would be nice to know what keys are valid or what to write in the ...
user avatar
  • 1
0 votes
0 answers
22 views

Controller Connection Issue!

This is copied from Reddit I'm just trying to find an answer to my problem. Thanks in advance for any suggestions or help! I'm running Ubuntu 22.04 on an old, Dell Latitude E6400 (it runs pretty well)....
user avatar
  • 1
4 votes
3 answers
625 views

Print exit status code after each command in terminal

I would like to print at every lauched command in zsh exit code value. E.g. $ cat file_not_present cat: file_not_present: No such file or directory Exit code 1 I only know that I can print error code ...
user avatar
0 votes
0 answers
29 views

Why does alias to move into usr/local/bin fails [duplicate]

I am trying to have an alias to move binaries into a folder on my path. Currently I have: alias addapp='sudo mv $1 /usr/local/bin'
user avatar
  • 189
0 votes
0 answers
39 views

Weird issue occurs when using the Alacritty terminal emulator

I have tried asking this on Alacritty's GitHub issues tab and just got this: This is an issue with your system, likely related to _TERM_ or your _PS1_. The issue is as follows: SOMETIMES, when a ...
user avatar
  • 3
1 vote
1 answer
28 views

I3 WM bindsym giving error but in terminal, works fine

I have this in my i3 config to restart picom: bindsym $mod+Shift+P exec killall picom; sleep 0.2; picom It works fine in terminal but when I press the keybinding, it shows error, and it just says you ...
user avatar
3 votes
1 answer
98 views

SSH connect to a docker container directly, without ssh the host first

On my local computer, I connect with ssh to a distant VPS: ssh user@1.2.3.4. In this VPS, a docker container is running (for example docker pull nvidia/cuda:11.4.0-devel-ubuntu18.04 and docker run -...
user avatar
  • 2,163
1 vote
2 answers
59 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 ...
user avatar
0 votes
0 answers
14 views

Why are keystrokes not intercepted after reattaching a "screen -dmS session bash -c 'command'"?

I'm using screen -dmS mysession bash -c 'command > test.txt' to start a screen, launch a command + write its stdout to a file, and detach. Later, after reattaching it with screen -r mysession, I ...
user avatar
  • 2,163
0 votes
1 answer
55 views

Why does this screen session exit when the command is finished? [duplicate]

I know screen -dmS mysession command to start a screen, launch a command and detach. When we need to redirect the stdout to a file, this works: (see How to run a program in a screen, redirect all ...
user avatar
  • 2,163
0 votes
2 answers
88 views

Is there a terminal emulator like powershell or Windows Terminal, for Linux?

Say what you will about Windows, but there are a couple of features of powershell that I found immensely helpful: Suggestions for autocompletion: If I type cd my then hit CTRL+SPACE, not only do I ...
user avatar
  • 211
0 votes
1 answer
23 views

Wired Xbox One Controller Shows in lsusb but stops detecting input in steam sometimes

After a reboot, my wired controller works with steam. There is a light on the controller that is on whenever this is working. Sometimes, however, the light randomly turns off and then input stops ...
user avatar
  • 101
1 vote
2 answers
37 views

Rename files with numbers already in file name

I have files with following names starting with water-frames0.gro upto water-frames201.gro water-frames0.gro water-frames119.gro water-frames138.gro water-frames157.gro water-frames116.gro water-...
user avatar
  • 113
1 vote
0 answers
40 views

set custom wrap column

OS: SLES12, terminal emulator: mate 1.22.1, shell: tcsh $TERM: xterm-256color I want to set the line wrapping in the terminal so that any text that appears on the terminal (stdout or otherwise) wraps ...
user avatar
0 votes
0 answers
50 views

How to call pinentry from bash script

How to call pinentry from bash script so I am prompted for single input on the same terminal from which my script was invoked from and then pipe the entry to some other command via stdout for the sake ...
user avatar
  • 101
0 votes
2 answers
26 views

How to remove last characters combination of letters with space in file name

In terminal, I'm trying to rename all files in the folder that has a combination of a space and numbers at the end of the file name. The end of the filename has a combination of a space and numbers (...
user avatar

1
2 3 4 5
79