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

Is there a way to set password entry via curses interface in terminal?

For example when you forget to put sudo before "systemctl ..." insted of gui interface poping out I want a curses prompt in my termial. Something like pinentry but for sudo.
xorgzz's user avatar
  • 11
2 votes
0 answers
63 views

LXTerminal does not display Urdu characters correctly

I'm Chinese and I don't read Urdu, but I want to communicate better with Indians. In LXTerminal, the output looks like this, with some characters rendered as wingdings: In QTerminal the output seems ...
Yan King Yin's user avatar
0 votes
1 answer
3k views

How to get out of git in the bash terminal's command line

My terminal's logline (is that the right term?) says I'm in git. How do I exit git?:
Al C's user avatar
  • 217
0 votes
1 answer
801 views

How to open chrome:// pages from Linux Terminal

No problem in opening URLs from command line: google-chrome --new-window 'https://www.google.com/' But these ones, (as of May 2023) don't work: google-chrome --new-window 'chrome://settings' google-...
Majal's user avatar
  • 916
0 votes
1 answer
316 views

tar: samtools-1.9.tar: cannot open: no such file or directory

I am trying to run the command to install samtools on ubuntu but I am facing a problem here whenever I try to use tar. Input : /c/Users/Hamza Bilal$ tar -xvf samtools-1.9.tar.bz2 The Output I get ...
Talia's user avatar
  • 3
4 votes
3 answers
38k views

Can't open a terminal in Ubuntu 22.04, running in VirtualBox 7.0 on a Windows 11 host machine

I just installed VirtualBox 7.0 and made a new virtual Ubuntu 22.04.1 machine on my Windows 11 PC. I can run programs like libreoffice, etc, but I cannot open a terminal. I've tried to activate the &...
drC1Ron's user avatar
  • 145
0 votes
1 answer
121 views

Include header in multiple .csv file with cat linux

I need to include a .csv header in multiple .csv files at once by switching the name to: originalname1c.csv, originalname2c.csv, originalname3c.csv Currently, the procedure is done as follows: cat ...
sysrq's user avatar
  • 101
-1 votes
1 answer
517 views

Getting “scp: Target is not a directory” when trying to upload files from desktop to a remote Unix directory

I’m trying to upload a file from my desktop to directory2/ on my university's Unix server. I tried doing this: scp /Macintosh HD/Users/myname/Desktop/filename.c [email protected]:/directory1/...
samsam's user avatar
  • 1
0 votes
0 answers
18 views

Working on Linux command line

How to create domain users,10 users in one domain,15 users in other domain in one linux machine using terminal.I thought of creating sub domains , but how to add users to that domain?
Akshay's user avatar
  • 1
2 votes
2 answers
2k views

Wake on LAN in Windows Susbsystem for Linux

How can I wake my Linux machine from WSL? My Windows machine has no issue using WOL to wake my Linux machine when using a platform-dedicated software, but when I try doing that from WSL2 (Ubuntu 22.04)...
MrVocabulary's user avatar
1 vote
1 answer
4k 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
MadMad666's user avatar
  • 388
1 vote
1 answer
467 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 ...
William Dickerson's user avatar
1 vote
1 answer
1k 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 ...
user496934's user avatar
0 votes
0 answers
150 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 ...
user2340724's user avatar
  • 1,181
1 vote
0 answers
146 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 ...
Qohelet's user avatar
  • 145
0 votes
1 answer
9k 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 ...
user3520363's user avatar
4 votes
1 answer
6k 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 ...
bbartling's user avatar
  • 215
0 votes
0 answers
87 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 ...
KcFnMi's user avatar
  • 604
0 votes
0 answers
442 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 ...
Dimitar Veljanovski's user avatar
0 votes
2 answers
1k 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 ...
iz_been's user avatar
  • 123
0 votes
0 answers
67 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 | ...
69 420 1970's user avatar
7 votes
1 answer
5k 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 ...
loved.by.Jesus's user avatar
0 votes
0 answers
509 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] () >🔮$ ...
vchrombie's user avatar
2 votes
1 answer
1k 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. ...
Valku's user avatar
  • 23
0 votes
2 answers
2k 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 ...
PhantomR's user avatar
  • 139
1 vote
1 answer
10k 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 ...
i28v's user avatar
  • 11
0 votes
0 answers
70 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 ...
Tibério's user avatar
0 votes
3 answers
39k 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 installing adduser but it was already installed.
Alexei Guchin's user avatar
0 votes
1 answer
954 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 ...
su.root's user avatar
  • 938
1 vote
0 answers
158 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 ...
smilingbuddha's user avatar
0 votes
1 answer
910 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> &...
Martin's user avatar
  • 101
0 votes
0 answers
791 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 ...
Nabeel Kirmani's user avatar
26 votes
3 answers
24k 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 ...
Patoshi パトシ's user avatar
0 votes
1 answer
349 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. ...
Abrit Pal Singh's user avatar
3 votes
1 answer
511 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 ...
Maciej's user avatar
  • 287
2 votes
2 answers
834 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)...
Jinzu's user avatar
  • 189
2 votes
1 answer
2k 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 ...
Shayan's user avatar
  • 1,524
1 vote
1 answer
327 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. ...
ogbigpimpin's user avatar
0 votes
1 answer
2k 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 -...
hunt640's user avatar
3 votes
1 answer
9k 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 ...
n1vgabay's user avatar
0 votes
1 answer
762 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-...
ARM4T00R4's user avatar
1 vote
1 answer
52 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 ...
user1021616's user avatar
3 votes
2 answers
221 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 ...
Sir.Rosticciano's user avatar
0 votes
2 answers
311 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?
MarioPL98's user avatar
1 vote
0 answers
470 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 ...
David's user avatar
  • 111
3 votes
0 answers
960 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 [email protected] dd of=image.gzin Ctrl+Z bg disown pid1 pid2 pid3 pid4 (4 ...
Cadmos's user avatar
  • 260
1 vote
2 answers
3k 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 ...
Nico's user avatar
  • 121
1 vote
0 answers
40 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 ...
Matthew Ciaramitaro's user avatar
1 vote
2 answers
161 views

How can I share a folder on VirtualBox?

I want to share a folder between Windows 10 and VirtualBox (CentOS OS).
user40509's user avatar
1 vote
3 answers
152 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 ...
Kirt's user avatar
  • 7,221