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

7
votes
3answers
3k views

How can I check which terminal definitions are available?

The bulk of the question is in title, but to elaborate a little: On most Linuxes I can find /usr/share/terminfo -type f. But on Solaris machine I have nearby - this directory doesn't even exist. I ...
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
48 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 ...
4
votes
1answer
73 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. ...
-1
votes
1answer
24 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 ...
0
votes
0answers
427 views

Create SSH session between Kali Linux to Windows XP

I'm currently using PuTTY to connect Windows XP to Kali Linux which has been very successful. However, for a project I'm working on, I need to connect from Linux to XP (using PuTTY still), but the ...
0
votes
1answer
48 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
92 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 ...
2
votes
1answer
212 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
1answer
84 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
votes
1answer
701 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 ...
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 ...
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 ...
2
votes
0answers
38 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
vote
3answers
77 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/ ...
0
votes
2answers
47 views

killing all the processes related to a script

I have a script that calls a lot of programs sequentially. How could I terminate this script once and for all? I know that I could click Ctrl+C to cancel some of the process but killing the whole ...
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
154 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 ...
10
votes
2answers
2k views

screen + vim — Any way to automatically set screen window name to open vim filename?

I have a pretty nice screen rc file that shows me the open screen windows almost like tabs at the bottom of the terminal. Currently the windows are named according to my prompt which is not so useful. ...
0
votes
1answer
74 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 ...
13
votes
4answers
10k views

Telnet send Ctrl-C

I use telnet to connect to a terminal server, which proxies the traffic to a RS-232 port. Unfortunately when using some of the devices it is not possible to send the CTRL+C character (0x03). Instead ...
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 ...
0
votes
1answer
339 views

How to disable “Program '/bin/bash' crashed” warning when killing the shell?

I'm using Kubuntu 14.04. When I exiting terminal emulator (konsole or yakuake) by doing something like kill -9 $$ it doesn't close, and saying: Warning: Program '/bin/bash' crashed. How could I ...
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
68 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 ...
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 ...
9
votes
2answers
9k views

What does the tilde (~) mean at the end of a filename? [duplicate]

What is the file with the ~ at the end of the filename for? $ ls # aliased to add flags -rwxrwxr-x 1 durrantm 2741 May 16 09:28 strip_out_rspec_prep_cmds.sh~* drwxrwxr-x 13 durrantm 4096 May 16 ...
0
votes
2answers
107 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
469 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 ...
1
vote
1answer
254 views

What linux server settings allow my long running processes to keep running after the terminal is closed/terminated?

In previous jobs and experiences, I used screen or nohup to run my long running jobs from my terminal screen. Most, if not all of my previous jobs' servers dropped you if it didn't detect any ...
1
vote
2answers
116 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 ...
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 ...
7
votes
4answers
5k views

Ctrl + c will not kill process

I have looked for answers and so far have found nothing to answer my question. I am currently logging in to my Ubuntu server and upon running a process I can not run any of the interrupts on it. Here ...
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?
5
votes
2answers
625 views

Set default xdg-open application to terminal program

Is it possible to use terminal vim with xdg-open? I don't have a GUI text editor because I only use vim through the terminal. (I don't care very much for gvim either.) Is it possible to tell xdg-open ...
0
votes
1answer
225 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 ...
7
votes
2answers
10k views

Encode with ffmpeg using avi to mp4

What command lines to use to convert from avi to mp4, but without destroying the framesize and making the file small as the original size or a little bit bigger, and same thing with mp4 to avi? ...
2
votes
1answer
309 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 ...
60
votes
7answers
4k views

How safe is it to cat an arbitrary file?

Sometimes when I cat a binary file by mistake, my terminal gets garbled up. Nothing a quick reset can't fix, but couldn't an attacker theoretically create a file that, when displayed on a terminal, ...
2
votes
1answer
51 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. ...
2
votes
2answers
802 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
780 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: ...
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
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
0answers
316 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
56 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
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 ...
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 ...