A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).

learn more… | top users | synonyms

2
votes
2answers
86 views

Alternate screen on FreeBSD's sc and vt

By default, FreeBSD's virtual terminals (sc and vt) don't restore previous terminal content when exiting from a full screen app. Is there a support for this functionality? I've tried following ...
0
votes
0answers
46 views

Codeblocks stop executing with gnome-terminal (linux)

I have Kali Linux, I have been using codeblocks and it worked fine with gnome-terminal, but a few days ago, it stop working. I write a c++ code, then build the file and execute, but when I execute, it ...
0
votes
1answer
36 views

Egrep expression as a grep expression

I have this egrep command which's expression searchs for filenames with length 3 (excluding .extension): ls | grep -E '^.{3}\.+' However, I'm unable to write this with grep only, is it possible?
1
vote
1answer
29 views

Terminal tab title not working correctly with MacPorts bash

I'm using OS X Yosemite 10.10.5. When using the default /bin/bash as your login shell, setting the following in .profile: PROMPT_COMMAND='echo -ne "\033]0;${PWD/$HOME/~}\007"' sets the Terminal tab ...
12
votes
5answers
864 views

How to recall a previous command (without execution) in order to change it?

I can't remember the trick where I could get the last command without running it: let's say I want to be be able to access the command !1255 when pressing the up arrow key and modify the command. So ...
-1
votes
1answer
23 views

SOLVED: LMDE 1 Stuck on Terminal after Login

Currently running LMDE 1 with Mate for 6 months now and still acquainting myself with it. I had installed VirtualBox but after restart and successful log in I am stuck on Terminal. I have updated and ...
4
votes
1answer
71 views

Tmux and dim-ed colours in Terminal.app on MacOS

The problem On my Mac (10.11) Tmux does not show dim-ed colours properly, and this causes annoyance. In the following picture, the commit author's name is supposed to be represented in dim white. ...
0
votes
1answer
47 views

Automatically Carrying Out Commands When Opening Terminal

Is it possible to get a terminal to run a specific command (in my case "source /etc/environment") whenever I open the terminal? Thank you.
2
votes
1answer
89 views

Run commands in a terminal, then let me type more commands

I wrote this script to create multiple tabs in the same terminal window and run commands in them: #!/bin/bash #Use the commands as: #--tab-with-profile=Default --title=<SPECIFY THE TAB TITLE ...
1
vote
1answer
80 views

Can't open terminal because of settings

Hello. I have a problem with my terminal: I can't open it. I have done a thing like written here I have checked 'Run a custom command instead of my shell' and typed in 'echo Hello World'. Now I can't ...
1
vote
0answers
31 views

Cannot terminate for loop in terminal

I was running a for loop in terminal which has a sox command in it. For some reason the sox command failed and now I cannot terminate the for loop. I tried pressing Ctrl+c many times, Ctrl+z many ...
5
votes
2answers
47 views

How can I make readline add pre-“typed” text on terminal startup?

By pre-"typed", I mean the interactive console has code text waiting for the user to (edit and) run by simply pressing enter. It looks like something readline should support, but a confirmation that ...
0
votes
0answers
28 views

Strange interference on tty2-6

There seems to be a bunch of garbage/line characters on terminals tty2-6 (photo below). This is not consistent. Occasionally, random terminals work normally. The only things I downloaded before ...
2
votes
1answer
204 views

How can I get the Terminus font on gnome-terminator?

I'm trying to get the Terminus font on Terminator, and I already did the following: Got the fonts in the right place I think: └─▪ tree -a .local/share/fonts/ ...
1
vote
3answers
76 views

How to pass directory with escaped space to variable?

I have a small test.sh script as follows: #!/bin/bash read -e -p "Enter a Directory: " directory echo $directory Here's what happens when I run it: $ ./test.sh Enter a Directory: ~/A\ Directory/ ...
2
votes
0answers
37 views

Changed username - Could not update ICE authority file

I tried to change my username by creating another admin account, restarting, then logging into that new account. Then, I entered the following command: sudo usermod -l NewUserName -d ...
-1
votes
1answer
678 views

service vboxdrv setup throwing error when installing VirtualBox on CentOS 7

I am trying to install VirtualBox 5.0 on a minimal (terminal only) CentOS 7 server, but I keep getting the following error when I type service vboxdrv setup: The service command supports only basic ...
1
vote
1answer
70 views

Why isn't VBoxManage booting from DVD?

I am trying to use VBoxManage to create and manage CentOS 7 virtual machines on a CentOS 7 server. The commands below first result in the following conflicting statements: 1.) that the virtual ...
1
vote
3answers
147 views

Run terminator in the necessary directory and then run necessary command

I want to open Terminator in a specific directory, for example /home/downloads/, and then run a command. I did the first part by this "custom command": cd /home/downloads; bash Terminator now starts ...
0
votes
1answer
72 views

Prompt user to enter for his/her user password to execute non sudo terminal command [closed]

As the question asks I want to learn how to prompt users' password for nonsudo commands EDIT: I think that I could not tell it clearly according to comments, so I will elaborate my request with ...
7
votes
3answers
539 views

Use Terminal as blackboard [closed]

Time ago I've discovered a simple command line to turn the terminal window in a blackboard for just to take temporary notes. Talking about blackboard I doesn't mean nothing graphic, just alpha-numeric ...
8
votes
1answer
3k views

Your kernel headers for kernel 3.10.0-229.el7.x86_64 cannot be found

When I type the command service vboxdrv setup in my CentOS 7 terminal, I get the following error: Your kernel headers for kernel 3.10.0-229.el7.x86_64 cannot be found How can I resolve this ...
1
vote
1answer
56 views

How do I get the pid of the exact progarm launched

So I have a couple python programs say program A and program B, when using "pgrep python" to get the pid, it gives me the pid of both program A and program B. However, I am writing a program that need ...
0
votes
1answer
67 views

Set tty1 as default

I am using vinoth@vinoth:~$ uname -a Linux vinoth 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux Question is: If I boot my system, I am getting tty7(GUI) by default. How to change ...
0
votes
2answers
103 views

multiple files rename - filenames patterns [duplicate]

I have following image files in some directory which I want to be renamed: 8 -rw-rw-r-- 1 6661 sep 24 10:28 dbConnectionOkBostjan.png 8 -rw-rw-r-- 1 6548 sep 24 10:29 dbConnectionErrorBostjan.png 8 ...
2
votes
1answer
40 views

What is the difference between opening an application from terminal Vs directly opening it?

I could open Firefox browser either by clicking FF icon on desktop or by running ~/firefox/firefox & in the terminal. What are the differences in these two ways of running? I am wondering because ...
0
votes
1answer
46 views

Starting GUI Apps from Terminal, keeping the same terminal for other use

When we start some GUI apps from the terminal, it gets started up. For instance I run nautilus from terminal. I type: user@system ~$: nautilus It gets started. But the terminal keeps printing its ...
0
votes
2answers
72 views

Advantages of using linux terminal multiplexers

What are good reasons to use linux terminal multiplexers such as screen and tmux instead of physical terminal?
2
votes
1answer
450 views

how do I partition a CentOS 7 server using parted?

I am planning to divide the largest partition on the hard drive of a CentOS 7 server into four smaller partitions using parted. Three of the new partitions will be 300 GB each, and the fourth ...
0
votes
1answer
212 views

Installing Atom editor on RedHat (Scientific) without root priviliges

I'm on the verge of giving up installing the atom editor on a university machine to which I don't have root access to. The instructions on the Github page for building from source require some ...
2
votes
1answer
304 views

How to run terminal and execute commands on Linux (Mint 17.2, KDE, plasma) start?

Every time I sign in Mint 17.2 I open a terminal (Konsole) and go to a folder. e.g. cd /to/path I found out that it's possible to run a script on system boot: menu --> autostart So I created ...
2
votes
1answer
49 views

How to find out what floods the terminal?

When logged in via SSH to an AIX 6.1: 0:root@SERVER:/root # Message from root on SERVER (UNKNOWN) [Fri Sep 18 08:00:17 2015] ... Message from qdaemon: : (WARNING) Connection to server failed. ...
12
votes
6answers
1k views

Unable to stop a bash script with Ctrl+C

I wrote a simple bash script with a loop for printing the date and ping to a remote machine: #!/bin/bash while true; do # *** DATE: Thu Sep 17 10:17:50 CEST 2015 *** echo -e "\n*** ...
0
votes
0answers
13 views

How to avoid the python script file output in the terminal? [duplicate]

I'm in my Macintosh Terminal. I was running a python proxy script at local and everything works fine except the python script keeps throwing out all kinds of logs in my terminal. How do I avoid them? ...
2
votes
2answers
753 views

Starting X applications from the terminal and the warnings that follow

I am trying to get to grips with using the terminal for most of my computing activities. One thing that has been bothering me for a while is launching X applications from the terminal. It seems like ...
1
vote
1answer
743 views

How do I install iwconfig without yum?

I am using this tutorial to try to set up wireless on a new CentOS 7 installation that is not connected to the internet. However, when I type iwconfig into the terminal, it replies with -bash: ...
2
votes
0answers
306 views

Could not resolve host: mirrorlist.centos.org

I did a fresh install of CentOS 7 on an Acer Inspire T. It is a terminal-only installation (no GUI). I connected the CentOS 7 box to a cable modem via an ethernet cable, and the cable modem is ...
3
votes
1answer
54 views

Copy a large (over 4k) selection of text from the screen scrollback buffer into the system clipboard

I wan't to be able to copy-paste the contents of my screen scrollback buffer into various browser text fields, usually when pasting an excerpt from a log file. One way that works well is the ...
1
vote
1answer
185 views

how do I manage dependencies for this manually installed rpm file?

How do I manage the dependencies while manually downloading and installing these rpm files? Googling the names of the rpm files results in differently-named rpm files. I cannot use yum install ...
0
votes
0answers
28 views

'Unbusy' terminals which will be logged out when TMOUT is reached

I would like auto-logout some terminal sessions with a TMOUT (timeout) configuration, but in that case the users leave a program opened for which the 'unbusy' sign is the ZERO I/O between server and ...
0
votes
2answers
39 views

Unclear where bash output is going

I made a small script to output the list of vim plugin remotes to a file, so I could figure out what ones I want to keep or remove. However, when I run it, the output doesn't get piped to the file. ...
1
vote
2answers
1k views

View full commands in ps output

When running ps with the -f option in PuTTY (to see the command corresponding to each process), lines which are longer than the terminal width are not fully visible (they are not wrapped on multiple ...
0
votes
0answers
25 views

Terminal Crash after upgrading from centos5.9 to 5.11

I had installed Centos 5.9 in my x86_64 system and I installed update yesterday. Just now after I initiated the system, I found it has been upgraded to centos 5.11. But the bad thing is now I cannot ...
2
votes
2answers
115 views

How to convert several tiff images into xyz coordinates in a single text file using the terminal?

I have limited experience with programming and Linux and I need your help. The situation I am in is that I have a stack of black and white .tiff images (approx. 400 of 10 Mb each one) which I need to ...
0
votes
0answers
20 views

How can I configure /etc/kmscon/kmscon.conf to use multiple layouts

I want to configure kmscon to use two layouts. Now my /etc/kmscon/kmscon.conf looks like this: xkb-layout=us,ru xkb-options=grp:alt_shift_toggle font-name=Liberation Mono font-size=12 but it's not ...
2
votes
3answers
174 views

journalctl: how to prevent text from truncating in terminal

How can I keep long strings from truncating in terminal? For example if I run journalctl -xn There's a lot of text that I cannot read. I am open to using other programs/tools.
1
vote
2answers
77 views

Find OS X terminal key combination/escape sequence for Ctrl-'

One of my Emacs keybindings is C-', which works well in GUI. In terminal however, it is not being recognised. I understand that I need to figure out the actual characters sent to the terminal by C-' ...
5
votes
1answer
181 views

Show output on terminal and output to log file, without using tee

I want to run a command, then show the output on the screen as well as output it to a log file, currently I use tee -a, but the problem is tee doesn't preserve colours, and currently I have not been ...
0
votes
1answer
53 views

Searching a keyword in a pdf file [duplicate]

I want to search for a specific keyword in a pdf file using linux shell. How I will use the grep command to do that?
1
vote
2answers
113 views

Apply Colors to Terminal Output to highlight URL & Others

I am looking for a way to apply colors to highlight URLs (http://....) and IP @ in the output of a terminal command. Example would be with a wget command for example where I would like to be able to ...