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

How to add a dynamic value for for loop count [duplicate]

I have this: cols="$(tput cols)" for i in {1.."${cols}"}; do echo -n '-' done but it doesn't iterate at all, but this works: for i in {1..5}; do echo -n '-' done maybe I ...
Alexander Mills's user avatar
0 votes
0 answers
20 views

How to copy terminal output to a file without using mouse [duplicate]

Say I have a bunch of text in the terminal. I can use my mouse/cursor to copy to clipboard but is there a way to copy the last X lines from the terminal to a separate file using a terminal command?
Alexander Mills's user avatar
1 vote
1 answer
52 views

How to turn off the ANSI escape sequence of Bash?

I am running Jest, and the output would go like: print a line (for a test), and then erase it, and print another line. However, if I use a loop to do the tests (using expect), there is no way to see a ...
Stefanie Gauss's user avatar
-2 votes
0 answers
69 views

Documented Best Practice for Initial UPDATE/UPGRADE Command Chain [closed]

It is recommended that as soon as a new Linux installation is done, the FIRST command to run is sudo apt update However, there are several update + upgrade command variations that can be used or ...
Omar's user avatar
  • 97
0 votes
1 answer
77 views

Zip the whole contents of a server except for www and access-logs symlinks

I'm moving an account to another server, and I'm zipping everything in the terminal using the command zip -r backup.zip * while on the server's home /. The archive was being created, and when it ...
Faye D.'s user avatar
  • 101
1 vote
1 answer
153 views

How to run the command "sudo sh /path/to/script.sh" by double clicking?

I have a question from this thread How to run a bash script by double clicking by entering the path in sudoers?. Since it was explained to me that it is unsafe to grant sudo privileges to the script....
moninah's user avatar
  • 15
1 vote
1 answer
60 views

Bash customization only take place after interacting with the terminal for the first time

sorry for the title, I have no better way to convey what is occurring to me. The situation is the following, I am using bash, wezterm(terminal emulator) and starship (customizable prompt). But for ...
Nikola-Milovic's user avatar
0 votes
0 answers
70 views

Strange/Buggy Characters in the Terminal

I use Debian SID and the Terminator is my terminal emulator. After updating the system the last time (yesterday 2023/11/22) and rebooting, some characters in my terminal in certain commands are ...
rhuanpk's user avatar
  • 385
0 votes
0 answers
51 views

How to run a process in the background using a bash script? [duplicate]

When I run the command in the terminal: sudo badvpn-tun2socks --tundev tun0 --netif-ipaddr 10.0.0.2 --netif-netmask 255.255.255.0 --socks-server-addr 127.0.0.1:8080 I get a terminal with packet data ...
moninah's user avatar
  • 15
0 votes
0 answers
43 views

macOS Terminal: How do I edit an MP3 file's metadata after renaming?

I have a script using variables already renaming files to the following format: (track#) - (title) - (artist) - (date).mp3 #! /bin/zsh - set -o extendedglob pattern='(#b)*_ \((<0-999>)\)(* )—( *...
Allex Valentin's user avatar
0 votes
0 answers
45 views

Cannot update PS1 to change terminal prompt

I am using konsole echo $PS1 gives ${$((_p9k_on_expand()))+}%{${_p9k__raw_msg-}${_p9k__raw_msg::=}%}${(e)_p9k_t[7]}${_p9k__1-${${:-${_p9k__d::=0}${_p9k__rprompt::=${_p9k__1r-${${:-${_p9k__bg::=NONE}$...
Psionman's user avatar
  • 101
0 votes
1 answer
46 views

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 ...
MBR's user avatar
  • 934
0 votes
1 answer
25 views

Command or tool to interpret and read asciidoctor syntax through terminal?

For a .adoc file to write documentation, it based on the asciidoctor syntax, is possible through GUI use either VSCode or AsciiDocFX to see a preview. Therefore the asciidoctor syntax is rendered/...
Manuel Jordan's user avatar
0 votes
0 answers
18 views

Why terminal display in Win10Terminal is treated differently? [telnet to a remote Linux] vs [run WSL2 natively] [migrated]

I'm very baffled with a such a question. I believe it relates to those esoteric "Terminal" working details, so I hope I can get concrete technical answer here. I have two lab machines: An ...
Jimm Chen's user avatar
  • 113
0 votes
2 answers
48 views

Different name on terminal than on file manager

I work on RedHat Linux and, when I read files from terminal using ll or ls -l on my desktop, I see different names from what I have in my file manager. Say the file name on desktop is John, but I see ...
John Grace's user avatar
1 vote
0 answers
27 views

SSHing via WSL2 into remote debian vm results in "overriding" reverse search

When using WSL2 to SSH into a remote debian VM the reverse search behaves strange, eg. when searching for gitlab with dpkg -l | grep gitlab in history. Behaviour: (reverse-i-search)`gitlabkg -l | grep ...
dahe's user avatar
  • 131
0 votes
2 answers
102 views

In terminal, how to delete a word when cursor is within the word?

I want to achieve functionality similar to c + a + w or d + a + w in vim In terminal we have Ctrl + w for delete a word in the left and Alt + Backspace from the right But I was not able to find a ...
inderjot singh's user avatar
1 vote
1 answer
20 views

is it possible to auto wrap the log output when check the linux service log

when I using this command to check the linux service log: root@k8sslave01:/usr/lib/systemd/system# systemctl status kubelet ● kubelet.service - kubelet: The Kubernetes Node Agent Loaded: loaded (/...
Dolphin's user avatar
  • 589
-2 votes
0 answers
79 views

Increasing the size of the swap partition with free space partition

My hard drive has three partitions with free space that I would like to turn into swap, meaning I want to increase the size of the swap partition using the free space from these three partitions (2M + ...
Alexandre Loures's user avatar
0 votes
1 answer
59 views

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, ...
Will's user avatar
  • 3
0 votes
1 answer
61 views

Weird spaces left on KDE terminals

In the picture you can see the problem (the app on the right). So I recently installed manjaro i3wm, but I love KDE apps, so I installed konsole, kate and dolphin (which all of them have terminal ...
Miguel Fernández's user avatar
0 votes
2 answers
61 views

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 today\n.Sh NAME\n" | ...
Jens's user avatar
  • 1,758
-3 votes
1 answer
117 views

What happens if you put /dev/urandom into a shell script and run it?

I want to know what happens when you run the contents of /dev/urandom as a shell script. I know when you cat it into a terminal it will set off a bunch of random things in the terminal environment. ...
AcinonX's user avatar
2 votes
2 answers
113 views

"set editing-mode vi" v/s "set -o vi" what is the difference?

On multiple forums I have come across adding set -o vi to my .bashrc file. Today I saw the option of adding set editing-mode vi to .inputrc. I googled and both appear to do the same thing, are there ...
Ishaan Kapoor's user avatar
0 votes
1 answer
66 views

Trouble with zsh: command not found: code

I've been trying to make "code" work and open vs code, but using cmnd shift p and installing in vscode it self used to work until you restart the computer. Now even in vscode when I do, it's ...
George Shostakovych's user avatar
0 votes
1 answer
47 views

TMUX pane not fitting to terminal size

I am trying to use tmux on Kali linux and I maximize my terminal size. When I start tmux with the following command the pane does not fit to the terminal size: tmux new -s session As seen in the ...
JC_D's user avatar
  • 1
0 votes
1 answer
91 views

Searching for rootkits with chkrootkit return unexpected results

I ran the rootkit program after his suggestion and noticed something on 1 line that said Searching for Linux.Xor.DDoS ... INFECTED: Possible Malicious Linux.Xor.DDoS installed /tmp/...
Brendon Gomes's user avatar
0 votes
1 answer
41 views

Terminal command launched from desktop file fails mid-process [closed]

I want to create a .desktop file that let's me launch the passwd command in a terminal. Here's the contents of the .desktop file: [Desktop Entry] Type=Application Name=Password GenericName=passwd ...
wigwami's user avatar
0 votes
0 answers
22 views

Python IDE (Visual Studio Code and PyCharm) Issues with "gi" Library

I'm having a specific problem with two Python IDEs, Visual Studio Code and PyCharm, which I hope to get some guidance on. The problem is related to the "gi" library. I'm running Python on ...
Umikali's user avatar
0 votes
2 answers
37 views

Can't Install Umbrel on my Ubuntu Mate 23.04

I'm having a lot of problems when i run curl -L https://umbrel.sh | bash Err:4 http://deb.debian.org/debian buster InRelease The following signatures couldn't be verified because the public key is ...
Matheus Faria's user avatar
1 vote
1 answer
67 views

How to setup "Windows" and "menu" keys in pure Linux terminal

When using pure Linux terminal how can I get the Windows (Super) and menu keys events in Emacs? I have several functions attached to them, they work in GUI mode in Gnome, but in pure terminal I just ...
user4035's user avatar
  • 1,115
0 votes
1 answer
49 views

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 ...
Alex Martian's user avatar
0 votes
1 answer
32 views

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 ...
wpplumber's user avatar
  • 101
0 votes
0 answers
45 views

How to ensure that the terminal window always gets closed after running a specific program?

The && exit suffix can be used in aliases and the exec prefix when running a script, but I don't quite know how to make sure that the terminal window is always closed after a certain program. ...
user598527's user avatar
1 vote
0 answers
47 views

Why suddenly apt-get output became colored?

I'm trying to get wine. I've been doing instructions from https://wiki.winehq.org/Ubuntu and on sudo apt update I've seen "E: The repository 'cdrom ..." with red "E". Just several ...
Martian2020's user avatar
  • 1,147
3 votes
1 answer
100 views

how to show the linux font name

I want to check the font name in linux, so I use this commnad: /app # fc-list :lang=zh-tw|grep "標楷體" /usr/share/fonts/zh/tw/標楷體.ttf: AR PL KaitiM Big5,文鼎PL中楷:style=Regular does the file 標楷體....
Dolphin's user avatar
  • 589
0 votes
1 answer
74k views

error: msys: signature from "XXX" is invalid

How can I fix the error in the terminal on Arch Linux below? error: msys: signature from "David Macek <[email protected]>" is invalid This happen when I execute command. sudo ...
kai00's user avatar
  • 1
0 votes
1 answer
37 views

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 ...
Rubem Pacelli's user avatar
0 votes
1 answer
58 views

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. ...
John Smith's user avatar
-1 votes
2 answers
89 views

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 ...
mohamadi_arch's user avatar
5 votes
3 answers
832 views

Open PDF from a command line and go back to the command line

I would like to open a PDF with evince from the command line and after the Evince window pops up, I want to go back to the terminal command with $ already waiting for the next command. Now if I run ...
Fibo Kowalsky's user avatar
0 votes
1 answer
74 views

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 ...
henry's user avatar
  • 854
-1 votes
1 answer
80 views

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/...
mars8's user avatar
  • 121
2 votes
0 answers
93 views

vt100 terminal escape code issue

When I ssh into any arista switch from my mac I get a mysterious n added to the prompt immediately on login. After asking my coworkers about it I found out that it's about 50/50 where some also see ...
jesse_b's user avatar
  • 36.4k
0 votes
4 answers
200 views

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 ...
emnha's user avatar
  • 111
-1 votes
1 answer
74 views

How to handle "Underscore" in filename - Debian 11

I'm using the terminal. Im in "usr/local/myfantasticfolder". There is a file called "my_fantastic_file.sh". I want to run the following command: sudo ./my_fantastic_file.sh It ...
Narktor's user avatar
  • 99
0 votes
2 answers
131 views

How to replace '8' with '7' in a single step?

In the Linux terminal, I initially entered the following command: tail -n +80 numbers.txt After realizing that I made a mistake and actually wanted to use +70 instead of +80, I wanted to correct it. ...
emnha's user avatar
  • 111
1 vote
1 answer
94 views

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 ...
Dannyu NDos's user avatar
3 votes
2 answers
300 views

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 ...
user7543's user avatar
  • 256
0 votes
2 answers
63 views

What is the hot key to show the next command of the previous command in history in Linux/bash?

In Windows cmd window, let's say I type and execute 40 commands like this: echo 1[Enter] echo 2[Enter] echo 3[Enter] ... echo 40[Enter] If I decide to repeat the 40 commands again, in the same order, ...
zwhconst's user avatar
  • 125

1
2 3 4 5
86