Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
1answer
32 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?
0
votes
0answers
7 views

How to change urxvt plugin rendition style?

I am having trouble changing the styling of a urxvt plugin. The colors are unbearable, but I don't know where or how to alter the OVERLAY_RSTYLE values. Please help. Relevant snippet from manual: ...
1
vote
0answers
108 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
55 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
0answers
233 views

inittab/getty basics: How does all these ttys works?

I've built minimalistic linux enviroment, with means of buildroot (kernel+glibc+eudev+busybox). But i have several issues with it, because i lack understanding what is going on. I've noticed 2 issues: ...
0
votes
2answers
700 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
32 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
81 views

How can I share a folder on VirtualBox?

I want to share a folder between Windows 10 and VirtualBox (CentOS OS).
1
vote
2answers
48 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 ...
1
vote
2answers
132 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
303 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
427 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
36 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 ...
2
votes
3answers
1k 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
385 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
191 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
674 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
59 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
506 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
106 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
660 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
570 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
605 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
433 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
2k 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
79 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
5k 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
119 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
246 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
5k 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
188 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 ...
1
vote
3answers
15k views

MobaXTerm colors are washed out - how to configure the scheme

Out of the box, MobaXTerm's rendering of the Midnight Commander screen looks like this (ZOC by comaprison to the right; PuTTY looks similar): washed out http://i.snag.gy/hvxxF.jpg How can I fix this?...
2
votes
1answer
146 views

How do I disable pastying into my xterm?

Many times I have accedentally pasted into my Xterm window, with the result that whatever text is pasted in is executed by my shell (zsh). I would like to know if I can disable pasting into Xterm. ...
2
votes
1answer
21k views

How to log out current user?

I'm very very new to the linux world. I have just installed Ubuntu 12.04 and I was wondering how to log out my user using the terminal. I searched the web and all the sites say that I should run the ...
1
vote
1answer
482 views

How to terminate a program in linux command line (ctrl+c and ctrl+z are not working)?

I ran following command on linux terminal hdparm -T -t /dev/sda. It is not giving any output and i am unable to stop this by ctrl+c and ctrl+z. How to terminate this program with out restarting system?...
0
votes
1answer
953 views

“gksu” doesn't prompt for the root password

I use this terminal emulator x-terminal-emulator and when I run this on a normal non-privileged user ~$ gksu /usr/bin/x-terminal-emulator an app starts and tells me to choose a password for a new ...
0
votes
1answer
118 views

remove duplicate values in a text file

I have a tab delimnated text file showing a comparison. like this: A B C D A 1 2 3 4 B 2 1 4 3 C 3 4 1 2 D 4 3 2 1 But I need to work with the data later ...
9
votes
0answers
3k views

Keep Session with Terminator

I am using Terminator for multiple Terminal Sessions. I know I can start with custom Session layout but most of the time I have changing Session settings. Is it possible to save the current Session ...
14
votes
3answers
10k views

Script or launcher to setup multiple terminal tabs in different locations

I have already studied this some time ago, but did not find any solution that would open terminal tabs, run some commands and then allow me to continue using those terminal tabs. All the ways I found ...
6
votes
2answers
2k views

rxvt - how to clear scrollback

I was hoping this would be an easy one but I don't see it in the man page and couldn't find it googling. Is there a keyboard shortcut or even a console command I can use to clear the scrolback buffer ...
12
votes
3answers
10k views

bash save history without exit

in linux ubuntu bash terminal. is there any way to save bash history without writing exit? i've set the config to "HISTCONTROL=erasedups" which in my opinion works better than ignoredups. anyways ...
1
vote
1answer
2k views

Terminal menu bar hidden

I unchecked the menu bar option in the View of the terminal on CentOS. Now this terminal menu bar is hidden. Is there a way to get it back?
0
votes
1answer
203 views

How to stop grep matching in terminal escape sequences (or colorize to multiple colours)?

I've written a bunch of scripts to colorize matches, like this: $ echo abcdef | grepg c ab[green]c[/green]def $ echo abcdef | grepr e abcd[red]e[/red]f It also works when I chain it: $ echo abcef | ...
5
votes
2answers
1k views

How to remember multiple tabs' session in terminal in ubuntu?

I have opened many files in vim and there I am editing and tracing the program flow using ctags and I don't want to lose all those info in next reboot, I can't keep my system on for few weeks or ...
2
votes
1answer
790 views

Return to KDE after starting new terminal

I've just installed Arch Linux with KDE as a desktop environment. However after some initial steps I need to login as root so I hit Ctrl-Alt-F2 and I was thrown into the terminal (black screen/white ...
2
votes
1answer
1k views

How to display escaped characters in tmux status bar

i am running tmux from a tty on an embedded linux device. (NOT a terminal emulator) because the screen is rather small, i want to add some "icons" to the tmux status bar. to achieve this, i have ...
1
vote
1answer
809 views

Enable Alt-tab in Windows running through Linux terminal

Tearing my hair out over this. On my desk at work is a HP HSTNC-001L-TC terminal, and through this I connect to our server which has Windows Server 2008. The problem is alt-tab doesn't work. I've ...
0
votes
1answer
255 views

How to switch to another window when Ctrl + B does not work for tmux?

As we all know tmux is quite nice tool, but there are some scenarios that Ctrl+B cannot be used. For example, when I sshd to server A and now I connect to A's tmux pty. So Ctrl+B is captured by ...
32
votes
4answers
15k views

Replace OS X's shell commands with the linux versions?

The commands available by default in the Terminal in OS X, don't seem to behave like their linux versions. How can I replace all of them with the actual GNU linux commands? For example sed -i ...