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
1 vote
1 answer
153 views

How to disable or enable touchpad by linux terminal on ubuntu or debian based OS?

Any idea of how to enable or disable touchpad using the linux terminal ? I'm using ubuntu 18.04 thanks in advance
user avatar
  • 336
1 vote
1 answer
60 views

Rocky Linux/Centos 8: Why are we unable to switch to a virtual terminal if in X?

We are unable to switch from X to a virtual terminal on Rocky Linux. xmodmap -pke and dumpkeys results are the same as CentOS 7. Ctrl+Alt+F6 on Rocky (below) has no effect. chvt works. Switching ...
user avatar
1 vote
1 answer
83 views

how to copy text from a mac terminal?

I am new to mac. I am trying to copy text from a mac terminal. I tried the usual way of trying to drag the cursor over the text, this is working consistently when I select text from a texteditor or ...
user avatar
0 votes
0 answers
33 views

Set Linux terminal foreground color prior to login

I'm wanting to set the foreground color of a Linux terminal (outside of any GUI). I'm using Gallium with its multi-user target, which opens straight to the terminal rather than the GUI. I've tried a ...
user avatar
0 votes
0 answers
21 views

KDE Console/Yakuake uses the clipboard improperly

I'm using KDE Plasma and Yakuake Version 19.12.2. As I frequently copy and paste from the terminal I use the "Copy on Select" which works. If I select something from the Console and ...
user avatar
  • 125
0 votes
0 answers
49 views

How do I get the Linux console to only display on a specific monitor?

I've taken a look at the Linux console. I have an issue though: I have two monitors (eDP-1 and HDMI-1 in xrandr) and I would like for the console to only show on HDMI-1. How do I do that?
user avatar
0 votes
1 answer
621 views

How to extract a multi-part rar file on the shell on Ubuntu?

I have a very long list of multi-splitted archives like force.part01.rar force.part02.rar .... energy.part01.rar energy.part02.rar .. dynamic.part1.rar dynamic.part2.rar dynamic.part3.rar .... and ...
user avatar
0 votes
1 answer
310 views

How to go to the next found result when using the less command on a log file in Linux?

I have a log file where I can use less on the file where I know how to go to the bottom of the log file with a shift+G and then use ? to query in the text file. What I don't know how to do is when I ...
user avatar
  • 155
0 votes
0 answers
67 views

Which terminal is that?

While watching Introduction tutorial to Qt / QML I noticed Jesper Pedersen from KDAB seems to be using a Windows terminal which is not that old (classic) DOS command prompt I'm used to. Seems to be ...
user avatar
  • 514
0 votes
0 answers
118 views

How to stop SSH pipe from dying due to inactivity in Konsole

I have a super efficient Konsole profile setup just the way I like it with my prefered shortcuts. Lately I have been spending a lot of time in the terminal connected to a remote server through SSH. I ...
user avatar
0 votes
2 answers
345 views

How to checksum files from filename on Linux

I have many files tagged with a CRC checksum on their filename on a Windows machine. Example: filename_[000000].extension I know there are a lot of options for Linux based systems to check/calculate ...
user avatar
  • 123
0 votes
0 answers
23 views

How to centered output data across "|" in everything column in terminal?

I want to align output in terminal by the following command: xlscat -C 1,2,9,12 file.xls I get output like this: string 1 | 1000 | 1 | text ... string 100 | 61 | 109 | number ... string 1000 | ...
user avatar
5 votes
1 answer
2k views

Meaning of D, H, R, A in smbclient file listings

I connect to a Samba drive in terminal (Linux) via smbclient. When I list the directory via command ls, I get for every entry (file or folder) some letters: such as D, H, R, S, A in different ...
user avatar
0 votes
0 answers
205 views

How can I customize the virtualenv info in zsh theme?

I use the bureau theme (little customized) with oh-my-zsh. .zshrc file zsh-theme file p0tt3r@wand ~ [21:19:10] () >🔮$ ...
user avatar
1 vote
1 answer
73 views

concatening a variable to a file using cat

I wanted to do a bash function that given a text variable, it would concatenate it to a file. i.e function print() { cat << 'EOF' >> file This $1 is a variable EOF } But it wouldnt work. ...
user avatar
  • 13
0 votes
2 answers
817 views

How to run Applications from the terminal by only typing their name in macOS?

I want to run Applications in macOS as simple as it is on Linux: just type the app's name in the terminal. What is the best way to do this? Example: I just installed Atom Nightly and would like to run ...
user avatar
  • 139
1 vote
1 answer
3k views

How to make neofetch run instantly?

I decided to make Neofetch run whenever I open a terminal window by editing ~/.bashrc to execute it. However, there is a delay while printing out the system information and it takes a little bit of ...
user avatar
  • 11
0 votes
0 answers
34 views

Linux shell for Windows can't "see" files on a NAS

I have a NAS and I'm trying to open a Linux shell on a folder in this NAS, but when I right-click a folder (holding shift) and open the Linux shell it doesn't show the files there, It doesn't even ...
user avatar
0 votes
3 answers
16k 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
user avatar
0 votes
1 answer
193 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 ...
user avatar
  • 784
1 vote
0 answers
67 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 ...
user avatar
0 votes
1 answer
485 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> &...
user avatar
  • 101
0 votes
0 answers
175 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 ...
user avatar
16 votes
2 answers
10k 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 ...
user avatar
0 votes
1 answer
161 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. ...
user avatar
3 votes
1 answer
356 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 ...
user avatar
  • 197
2 votes
2 answers
278 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)...
user avatar
  • 189
2 votes
1 answer
718 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 ...
user avatar
  • 1,237
1 vote
1 answer
155 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. ...
user avatar
0 votes
1 answer
1k 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 -...
user avatar
3 votes
1 answer
8k 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 ...
user avatar
0 votes
1 answer
305 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-...
user avatar
1 vote
1 answer
33 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 ...
user avatar
2 votes
2 answers
102 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 ...
user avatar
0 votes
2 answers
57 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?
user avatar
1 vote
0 answers
361 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 ...
user avatar
  • 111
3 votes
0 answers
407 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 ...
user avatar
  • 312
1 vote
2 answers
2k 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 ...
user avatar
  • 21
1 vote
0 answers
39 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 ...
user avatar
1 vote
2 answers
139 views

How can I share a folder on VirtualBox?

I want to share a folder between Windows 10 and VirtualBox (CentOS OS).
user avatar
1 vote
3 answers
80 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 ...
user avatar
  • 6,581
2 votes
2 answers
947 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 command ...
user avatar
  • 21
0 votes
1 answer
922 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 ...
user avatar
2 votes
1 answer
584 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 ...
user avatar
  • 145
0 votes
1 answer
40 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 ...
user avatar
  • 151
4 votes
3 answers
3k 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 ...
user avatar
  • 1,268
1 vote
1 answer
1k 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 ...
user avatar
  • 143
0 votes
1 answer
383 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>@<...
user avatar
  • 103
1 vote
1 answer
2k 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 ...
user avatar
  • 1,051
0 votes
0 answers
79 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.
user avatar