Questions tagged [linux-terminal]

The Linux Terminal (also called console) is a wrapper program which sends user input to the shell and outputs the result after the command have been processed.

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

My terminal doesn't end the process (EOF)

I'm running a "go" program, which stops to asking inputs when I press Ctrl+d (EOF). But in my mac when I press Ctrl+d, it doesn't stop and it continues to ask inputs.
0
votes
1answer
55 views

Adduser command not working in Linux

When I type adduser -m username, I recieve this from the terminal: bash: adduser: command not found (in spanish "orden no encontrada") I tried innstalling adduser but it was already installed
0
votes
1answer
72 views

How compatible between different terminal types ($TERM)?

For example, in putty I set TERM=xterm, then I login to a Linux server and in the command line I run export TERM=linux, and then I start gnu-screen with screen -T screen (means TERM=screen). It's ...
0
votes
0answers
23 views

nvidia-settings changes cli output depending on terminal width - How to make consistent?

nvidia-settings changes it's CLI output based on the width of the terminal it is executed from. It happens in at least konsole and xterm on KDE. And if I execute it in a conky config, the output ...
0
votes
0answers
11 views

console and update center not working on Zorin OS

I recently installed Zorin OS on my hp Pavilion g6. It all went smoothly until I tried to install kivy (python module), and between requirement installations I restated my pc, an when it came back ...
1
vote
0answers
27 views

producing animation on terminal [closed]

telnet towel.blinkenlights.nl Typing the above command in a terminal on Linux produces a Star Wars animation. What baffles me is how the writers were able to produce an animation in a terminal in ...
0
votes
1answer
77 views

zsh: always buffer last command's output

Is there any way of buffering or saving into a variable the output of the last command? e.g.: % long_running_command <long output> <long output> <long output> <long output> &...
0
votes
0answers
46 views

How to scroll much further back in Linux Server running Bash

I am running Bash on the default terminal of a Debian Server (no GUI). I use Shift + Fn + Up key combination to scroll back but cannot view past a certain point. How do I achieve extended (or ...
3
votes
1answer
1k views

How do you output a QR code to the linux cli terminal for scanning?

I want to be able to output a QR code to the ubuntu cli terminal where I can scan with my phone. I have a configuration file I want to convert to a QR code so I can scan it vs having to transfer it ...
0
votes
1answer
71 views

'rxvt' terminal emulator resets settings after logout

when ever i logout, rxvt resets to it's out of the box ugly look. Then I have to run the following command to get my settings back. xrdb ~/.Xresourses Do i need to do this every time after I logout. ...
2
votes
1answer
137 views

ColorDiff - change colors

Is there any way to change color scheme used for color diff ? By default it uses red and blue But i cant see blue on my LCD at all.... Id prefer eg yellow or green I think I read about some cfg file ...
2
votes
2answers
160 views

Why does the Command prompt and PowerShell give different output results than the Terminal?

I have the following example code from a book: #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main(int argc, char *argv[]) { printf("Hello World (pid:%d)\n", (int)...
0
votes
1answer
69 views

Configure dnsmasq to selectively resolve domains using two DNS providers

I want to use two different DNS providers, a.com and b.com. I want a list of domains like google, youtube, superuser (and more) to be resolved with a.com. And I want all other domains to be resolved ...
1
vote
1answer
67 views

Fix Alignment of Split Terminal Panes

Essentially, it seems that any kind of split within terminal becomes unaligned. I'm using tmux below to demonstrate the problem, but it also occurs when I make split panes using NERDTree with vim. ...
0
votes
0answers
35 views

How can i achieve Word wrap with no word breaking or splitting in Linux terminal or using Xshell?

I have a very long Terminal command : g++ -I. -MMD -I/usr/local/share/verilator/include -I/usr/local/share/verilator/include/vltstd -DVL_PRINTF=printf -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -Wno-...
0
votes
1answer
550 views

installing packages using pip and pip3 throws an error

I need to install python library scp and setuptools for a script but when I try to download any package using pip or pip3 it throws this error. ubuntu@ubuntu:~/testcommander/tests$ sudo pip3 install -...
1
vote
1answer
3k views

Doesn't have a 'Release file' when upade Ubuntu 18.04

E: The repository 'http://ppa.launchpad.net/chris-lea/node.js/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore ...
0
votes
1answer
150 views

update-alternatives: error: no alternatives for x-terminal-emulator

I have openSUSE Tumbleweed. I want to change default terminal emulator from xterm to konsole, BUT when I get command update-alternatives --config x-terminal-emulator I have this: update-...
1
vote
1answer
23 views

Trouble running Ubuntu terminal command on files on external hard drive

I'm having difficulty looping a command in the Ubuntu terminal over files held on an external hard drive. When I move a subset of the files onto my main disk and adjust the path accordingly it works ...
2
votes
2answers
92 views

Setting specific attributes for a linux terminal instance

I recently started to use linux for programming because it feels more comforable than programming in windows, but i miss from windows a particular feature. I would like to have two different terminal ...
0
votes
2answers
47 views

How can I create, using one command, a GNU session with 4 windows, each running different command?

I'm trying to make screen start in background every time I boot. I need to have at least 4 windows, each running different command automatically. How can I do that?
1
vote
0answers
240 views

Adding margin to rasterized PDF using ghostscript

I'm cropping and rasterizing some PDFs using ImageMagick. In order to remove some text that I don't need, I want to crop to a smaller box than needed and then readjusting the page size adding some ...
3
votes
0answers
162 views

How do I properly re-send a process to background after fg in Linux

In my remote terminal I have put in background the following running Linux process dd if=/dev/sda3 | gzip -1 - | pv | ssh user@.rsync.net dd of=image.gzin Ctrl+Z bg disown pid1 pid2 pid3 pid4 (4 ...
0
votes
2answers
1k views

Execute Command with xterm and close

Im trying to execute a program with xterm and then close xterm with program running but it seems this doesn't work like I would expect it. In bash there is the option bash -c [command] is there ...
1
vote
0answers
36 views

How to interpret the results from calling top in terminal

After running $ top I've noticed that the white values are always significantly larger than the red, which seems strange, but while running no programs except for firefox quantum, the above image was ...
1
vote
2answers
119 views

How can I share a folder on VirtualBox?

I want to share a folder between Windows 10 and VirtualBox (CentOS OS).
1
vote
3answers
66 views

is there a quick way to change part of a file name in every file and folder in a collection of nested folders a few layers deep?

windows or linux, either works, it's on an external drive either can read e.g. change "version2" to "version3" in every file and folder of a project? Though in this case i want to change patient ...
2
votes
2answers
436 views

Pipe STDOUT to an image?

Recently, I wanted to run a terminal command like "git show <hash>" and save the output to an image, a PNG preferably. I googled it quite a bit and found some neat tricks, with the import ...
0
votes
1answer
750 views

How can I change the colorscheme through command line?

I'm using base16 theme $ ls ~/.kde/apps/konsole/ base16-tomorrow.colorscheme base16-tomorrow-night.colorscheme My scheme are correctly installed But when I try to switch using konsoleprofile it's ...
2
votes
1answer
533 views

Virtualize Multiple instances

I have this problem, I want open multiple instances of a portable software named hitleap (it is for ubuntu, I am not using wine) in ubuntu. when I try open after is running the shows me How could I ...
0
votes
1answer
38 views

Download Project using Linux mint

I am trying to download a project using Terminal of Linux Mint. I am using below command. scp -r UserName@ServerIPaddress:/home/username/public_html /opt/lampp/htdocs/my_project. But I am getting ...
3
votes
3answers
2k views

Make Terminal recognize PageUp and PageDown when remapped to different keys

I understand Terminal by default doesn't support PgDn and PgUp. I do not have PgDn and PgUp on my keyboard, but have them remapped to different keys currently and therefore Shift+PgDn doesn't work. I ...
1
vote
1answer
733 views

Why can't I copy a folder from remote server to local with this command?

I'm logged into my remote server as root, I want to copy a folder to my local machine. What is wrong with my code below please ? scp -r myfolder 12.34.56.789/c/copyofmyfolder 12.34.56.789 is my ...
0
votes
1answer
289 views

ubuntu : redirecting ssh command to existing xterm

This command execute remotely on "machine name" the command "glxgears" on a new xterm terminal: xterm -hold -e sshpass -p <password> ssh -X -o StrictHostKeyChecking=no <user name>@<...
1
vote
1answer
1k views

Do I really need to “exit” from an SSH session in Linux using PuTTY?

I'm used to type exit in PuTTY, when leaving the SSH shell. However, you can also just close the terminal. Unless there is still a task running, does this have any consequences, such as leftover ...
0
votes
0answers
73 views

Keep track of linux terminal commands in git

Is there a way we can keep track of commands executed in linux terminal in git? I would like to commit each command entered.
0
votes
1answer
714 views

mobaxterm doesn't correctly pass ctrl-shift-arrow sequences

MobaXterm doesn't correctly pass ctrl-shift-arrow sequences. It doesn't work on emacs, and when I use sed -n l, I see it displays the escape sequence of the arrow key alone instead of the full ...
0
votes
0answers
120 views

how to merge two similar image's differences into one image in terminal?

I don't know if this has been done before, can we merge two pictures in terminal. when I say merge I mean merge their differences and keep the common parts and NOT merge them into a bigger size ...
0
votes
2answers
1k views

How to use source within a bash script to change the terminal prompt?

I need to be able to use a script in ~/.local/bin/ (which is part of $PATH) to quickly change the prompt. The desired result can achieved by running the following in a console: echo PS1='$\ ' > /...
2
votes
2answers
685 views

How to execute multiple commands in Bash, some in the background

I would like to execute multiple commands in bash, but have some of them executed in the background. The best way to explain this is using the following command which does not work... for@barpc:~> ...
0
votes
2answers
817 views

Is there a way to emulate vt52 or any other terminal type in linux just like xterm?

I am just asking (for curiosity) whether there exist other terminal emulators in linux/ubuntu that understand escape sequence's for other terminal types (just like gnome-terminal does for xterm), vt52 ...
0
votes
4answers
751 views

Is there any way to open a new window in terminal using root?

I'm using bash shell in Linux and I wonder if there is any way to open a new terminal window when I log in as root using su or sudo su. What I mean is if it's possible to type sudo su and open a ...
1
vote
1answer
4k views

Duplicate a remote session in terminal in Linux (Ubuntu)

How do I duplicate a remote session in the Linux (Ubuntu) terminal? For example, if I have an SSH session open, how can I duplicate this session in the terminal?
1
vote
1answer
115 views

Terminal: go through autocompleted options after pressing tab

Pressing tab on terminal shows the possibilities you can choose from like below: MacBook :~ user$ ls _ Directory1 Directory2 Directory3 How can I make the possibilities appear on the cursor (the ...
1
vote
1answer
8k views

arp -a command not working doesn't list devices

First off, this is not a duplicate of this question because it wasn't answered properly. My question is this: When I type into terminal (Kali Linux): arp -a And I know that there are 7 devices ...
0
votes
1answer
137 views

Serial device not detected by Lubuntu

“Serial Wacom Tablet stylus” and “Serial Wacom Tablet eraser” should appear in the xinput list in a Motion LE 1700 Tablet PC, however they are missing in Lubuntu 14 (32bit). Is there a way to make ...
5
votes
1answer
2k views

What is the significance of baud rate in stty settings on linux?

I am wondering what the baud settings have to do with my terminal settings. How is the baud speed affecting my terminal? Shouldn't the terminal do more with CPI i.e. character per second settings? Is ...
1
vote
1answer
279 views

Is there any way I can control the output of my webcam?

I actually got this idea when I was using Google Hangouts; I was wondering if there was any way I could "hack" my webcam to make Hangouts display video that wasnt actually being supplied as input. I'...
4
votes
4answers
8k views

Why is unmute not working with amixer command?

I am trying to mute and unmute using amixer command at terminal in Linux. The command used to mute: amixer sset 'Master' mute AND amixer set Master mute Both worked... But when I try to unmute: ...
3
votes
1answer
192 views

Is there a way to have a Y/N confirmation after Remove file/directory

I'm new to Linux and its terminal. I'm using Ubuntu 12.04, trying to learn about the Terminal's commands. I learned how to remove files and directories but saw that the system never asks you if you ...