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
1 answer
22 views

How can I unmap or remap the key sequence Ctrl-6 on MacOS terminal?

I can't find a way to unmap or remap the key sequence Ctrl-6 on a MacOS terminal. It just emits a beep everytime I press it. How can I change this behavior. On iTerm2 on MacOS, pressing Ctrl followed ...
1 vote
1 answer
68 views

Bluetooth device keeps disconnecting

I want to connect the bluetooth on my laptop to a device nearby offering SPP, and then talk to the device using a terminal program. It works great from Windows, now I'm trying to recreate that from ...
  • 1,464
0 votes
1 answer
70 views

How to check BIOS Settings from Terminal (CentOS 7)?

I am trying to verify three BIOS settings on remote Linux machines (Dell OptiPlex 3090) with CentOS 7 on them. I want to check AC Recovery is Enabled, Wake on LAN, and Block Sleep. I've tried multiple ...
0 votes
0 answers
14 views

I accidentally unbound my c-key in my macOS terminal when enabling autofill. How do I restore it?

So I was looking into how to enable mac terminal auto complete and stumbled upon solutions involving .inputrc. However, I must have messed up some input along the way, because now my c key doesn't ...
0 votes
0 answers
33 views

What terminal foreground and background colors are good to reduce eye strain?

I'm wondering what settings people recommend for a terminal (xterm, iTerm2 etc) for minimizing eye strain. I've so far used black foreground text on dull background color (like #C8AB95) - and that's ...
0 votes
0 answers
85 views

What does !something mean in my terminal/shell before the directory? (Using MacOS)

What does the !w mean which is present before the directory path? Are there other such symbol here is my output to $PS1 - https://pastebin.mozilla.org/5GuTTbqU: ${$((_p9k_on_expand()))+}%{${...
0 votes
0 answers
24 views

While running arch install iso, how do i tab over to a fresh commandline? And how do i get back to the original window?

I used to be able to run multiple commands simultaneously by tabbing between command lines. Kind of like a web browser but hotkeys only. How do I do this again? Nothing useful came up on several ...
  • 1
1 vote
1 answer
37 views

Terminal history up/down broken if last command output does not end in newline (KDE Konsole)

There is a strange behavior in all or most Linux terminal, which has bugged me for a long time. I am not sure if it is a bug or intended, or a configuration issue. So I ask here first. Steps to ...
  • 1,267
2 votes
0 answers
157 views

Weird garbage (ansi escape characters?) in terminal when running VIM command

I have a script, that when run sometimes/often outputs an "unescaped" ANSI escape sequence when encountering this line: vim -X -u NONE -c "helptags ~/.vim/plugged/vim-fugitive/doc" ...
  • 1,060
0 votes
1 answer
37 views

What is bash_profile_common?

I'm completely new to mac and I was wondering if ~/.bash_profile_common (as mentioned here in the Install paragraph) is the same thing as ~/.bash_profile.
0 votes
0 answers
35 views

updating node.js version with nvm is set only for the session

I am using Kali Linux. I have Node.js v19.1.0. this version is not lts, it has some issues starting the applications. For example if I start a react.js project with this version, I get this error ...
  • 257
1 vote
0 answers
41 views

How can I add a line to file using bitbucket pipeline build

I have made a bitbucket pipeline, but I want to make changes to configuration file each time during after its build I want to add "Staging" each time after the build of the project to a ...
1 vote
0 answers
21 views

Color Code Specific Words/Phrases in a Unix/Linux Terminal Regardless of the Command Used that Prints that Word/Phrase

Is there a way in Unix/Linux to always color-code specific words/phrases no matter what made those words/phrases appear as output on the terminal? I know you can write scripts/programs to print out ...
  • 11
0 votes
1 answer
54 views

Time it takes to open a new terminal window

I just checked my timings: it takes about 0.41-0.45 seconds to open a new gnome-terminal window and about 0.55-0.65 seconds to open kitty. And it does bother me a bit that it takes so much time to ...
0 votes
0 answers
17 views

How to use Fixed family bitmap fonts in fbterm

I work in a text terminal a lot on my Debian 12 box, and I like the bitmap font family it uses, which IIRC is called Fixed. I use vim for pretty much everything, and it works well in this environment. ...
  • 145
0 votes
1 answer
51 views

How to know if the terminal understands '\033[2J\033[H'?

I would like to clear the screen, but only if it is possible. On most terminals this can be done with the escape sequence \033[2J\033[H. But not all terminals understand this. How to know, if the ...
  • 3,387
0 votes
0 answers
73 views

Bash commands not working in pipenv shell

I am working on learning Django for backend and full-stack development. I have that working with pipenv for virtual environments can be a pain in the rear end (at least on macOS). In the terminal, I ...
0 votes
0 answers
29 views

How do you install a virtual machine on a Chromebook?

I’m currently stuck on a level in Cyberstart because I need to install a virtual machine in order to use a terminal where I can use Linux commands to get a flag and move on to the next challenge. The ...
1 vote
1 answer
40 views

How to set my own Content-Length when downloading files with fixed size from the internet?

I want to download 100 files that are 1GB each from a website but the file size is unknown since there is no Content-Length set in headers. My download is slow and unstable. When the download crash ...
1 vote
1 answer
72 views

how to exit command without using ctrl + d

I want to open three terminals and I want to write a command in the first window that will send a Hello message to the other two. The command must allow a one-time sending without a response from the ...
  • 19
1 vote
1 answer
283 views

Another Window Manager (Xfwm4) is already running on screen :0.0 To replace the current window manager, try "--replace"

When opening a new terminal window within Kali Linux, I receive the following error: Another Window Manager (Xfwm4) is already running on screen :0.0 To replace the current window manager, try "--...
1 vote
1 answer
34 views

How terminus(multiplatform app) connected to my host without SHH key?

I created a debian based lamp instance on cloud platform used putty gen to generate ssh saved public key in cloud account. It booted and ip address in browser address said it is working (apache ...
  • 13
0 votes
1 answer
66 views

A command-line tool to navigate through the output of previous commands?

Is there a tool for that? If there is none what level should this tool be available at? the shell should track the output or the terminal emulator
2 votes
1 answer
59 views

Unexpected `^[[I` shows up when running vim script from command line

In a shell script, if I source even a trivial vim script this way $ cat ascript :q $ cat test vim -S ascript -N -u NONE read This is what I get when I run it: $ bash test ^[[I The ^[[I output is ...
  • 2,370
0 votes
0 answers
51 views

How to restore tmux pane after closing?

Once I erroneously hit kill-pane on tmux, I want to be able to restore closed pane, but I haven't managed to find this functionality there. So, just to clarify, I mean around the same behavior as ...
  • 11
1 vote
0 answers
48 views

How to prevent conda from printing information when opening terminal?

How can I prevent conda from displaying information when opening a shell? I installed anaconda on a linux server under my account (no admin rights). I then initialized it (conda init tcsh) and all ...
2 votes
1 answer
92 views

Can I get the output of a command into the current command line in bash so I can edit it?

I know I can use $() or assign the output of a command to a variable and then use that. But can I paste the output of a command onto the current command-line so that I can edit it? If I have a mouse, ...
  • 464
-1 votes
1 answer
84 views

Explain: echo -e "\e]52;;HelloWorld"

I think this is an OSC 52 statement and it will sent HelloWorld to the host clipboard if you use a OSC 52 supported terminal like Windows Terminal. I also know that -e will enable interpretation of ...
  • 619
1 vote
2 answers
35 views

How to stop executing a bash script if upon the next check the IP address hasn't been changed?

I tried my best with the Title, but it's better if I give you a simple example of what needs to be done in a bash script. curl ident.me #this one checks my current public IP address curl [a post ...
  • 11
0 votes
3 answers
133 views

Linux 9 commands send ANSI/color sequences to monochrome terminal

I'm using a Wyse50 Terminal emulation on Rocky Linux 9. Man pages, help screens, etc., are unusable because the system outputs attribute and color codes that the terminal emulator doesn't understand;...
0 votes
1 answer
125 views

How to find all hardlinks to a given inode? [duplicate]

Is there a way to list all hardlinks, by path/filename, or even just by file name alone, that point to a given inode? I have a file that ls -al reports has three hardlinks, but it should only have two....
1 vote
2 answers
35 views

Rename directories add dashes after fourth and sixth characters

I'm trying to rename several directories adding dashes after fourth and sixth characters. I looked at this post How do I loop through only directories in bash? and was able to successfully loop ...
  • 13
2 votes
1 answer
66 views

Arithmetic operation in terminal from an output

I want to print the lines of updates via this command dnf check-update --refresh --q --downloadonly | wc -l However during the output there occurs a blank line which means the true update number is ...
  • 153
2 votes
1 answer
53 views

Scroll to the end in less without stretching out single-page input

When I pipe something into less --quit-if-one-screen +G (alias -F +G), less opens and scrolls to the end if the output exceeds the terminal size. Unfortunately, it also scrolls to the end before ...
  • 489
0 votes
0 answers
38 views

Terminal applications don't cover the entire terminal

I've been researching this for a couple hours so far and I can't seem to find a solution that works and isn't 10 years old so I figured I'd ask again. I'm using awesome and Alacritty, and when I use, ...
0 votes
0 answers
10 views

Less in custom distro ignores all keyboard input

In the custom distro I'm running on an embedded system the tool 'less' is broken. It ignores all keyboard input and just echoes it to the screen. To quit I have to use ctrl-z and kill %1. I've used ...
  • 449
0 votes
0 answers
22 views

Unable to switch encoding in GNOME terminal

In GNOME terminal version: 3.40.3 fro GNOME 40,installed with RHEL 9.1 I Set two kinds of character encodinng and background color in different Profile but only the background changed after switch ...
0 votes
0 answers
8 views

Chrome Pixelbook. Installing from from Terminal. Need a script

Am running a Lenovo Chrome Pixelbook. Want to run Goldendict with the data in DPD aka Digital Pali Dictionary. Have downloaded these to Google drive in a folder "goldendict" as per ...
1 vote
1 answer
27 views

liveUSB/ISO, terminal in GUI: user is not allowed to execute as root; works before startx

I've created new test user (sudo adduser test), added to sudo via sudo usermod test -G sudo. Then I switch to other terminal (Alt-Ctrl-F2), login as test, sudo echo a: "a" - ok, but startx, ...
0 votes
3 answers
226 views

Parsing multiple arguments into a bash script

I've tried a few solutions posted here, but to no avail. I'm hoping it's something silly and obvious that I've missed, that you can spot easily, and I can facepalm myself. I have a bash script ...
  • 3
1 vote
1 answer
58 views

Is there any graphical-based user interface for Linux in the terminal?

Linux can launch a desktop environment with the standard graphical interface familiar to most people. It also has a terminal in which you can use a command-line interface. I recently discovered a ...
0 votes
0 answers
27 views

Centos 7 terminal tabs sticking to new tab and not going to old tab issue

I am using CentOS Linux release 7.9.2009 (Core) and have some small issues that seem related to each other. New terminal opened from right-click "Open in Terminal" directly open terminal ...
0 votes
0 answers
220 views

How do I open GUI apps as ROOT or with SUDO in Debian 11?

Every time I try to launch apps in Debian 11 with sudo and I get this same message: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' the app then doesn't open. Logging in as ...
0 votes
1 answer
530 views

Discord keeps crashing randomly

Discord on my computer crashes constantly at random intervals. Sometimes I can use it for hours without issues, other times it crashes just 10 minutes after starting. I thought that this had to do ...
0 votes
0 answers
202 views

Can't install mamba on my drive: collecting package metadata (repodata.json): / Killed

I am trying to install mamba through conda on my linux terminal on my chormebook. Please help. I need to install this for a final exmam. My professor just tells me look online. I am not a programmer ...
0 votes
0 answers
150 views

How to stop terminal from automatically executing commands when I open it?

When I open terminal, the following automatically shows up: Last login: Thu Dec 8 10:54:34 on ttys001 /Users/user1/.zprofile:14: unmatched " /Users/user1/.zprofile:14: unmatched " /Users/...
0 votes
0 answers
26 views

`reset` terminal but preserving the scrollback buffer

I use the reset command when my terminal is in a wrong state and regular shell interaction doesn't work as it should. This usually happens when a program configured the terminal in some way and then ...
  • 969
0 votes
1 answer
53 views

How to run scripts named with spaces via "open with" list of applications in Nemo for Linux Mint?

TL;DR Exec=gnome-terminal -- bash -c 'script="%u";if [[ -e "$script" ]] ; then "$script" ; else exec bash ; fi' line in GNOME desktop file runs scrips, but only w/out ...
0 votes
3 answers
68 views

How to set the number of moved files? [duplicate]

I'm moving png files from source/ to dest/ with this: mv /source/*.png /dest/ How can I change that command so I only move 10 png files?
1 vote
0 answers
67 views

Switching to zsh from bash without root breaks the system login

I am trying to use zsh as the default shell on a system where bash as default shell. Since I don't have the root permission, I was trying to use bashrc to switch over shell to zsh at the time of login....

1
2
3 4 5
83