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

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
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
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/ ...
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
148 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
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 ...
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
332 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
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 ...
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
104 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
454 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
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 ...
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?
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*** ...
5
votes
2answers
622 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
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 ...
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
307 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
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. ...
2
votes
2answers
758 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
746 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
307 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
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 ...
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
4answers
6k views

How to execute more than one command in a newly opened terminal?

I have a script that I want to use to open new terminals and type commands in them. A command like gnome-terminal opens a new terminal. Also, if I do gnome-terminal -e myprogram1 it will ...
5
votes
1answer
182 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
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 ...
16
votes
7answers
28k views

Best way to use a shell with Cygwin in Windows 7

I installed Cygwin, to be disappointed that bash by default runs within "cmd.exe". I googled around and found Console2. It's not a particularly well-designed application, as doing adjustments is ...
4
votes
1answer
668 views

Activating colors in links2 (text mode)

I can't seem to see colors in links2 (text mode), even after playing with my TERM settings. The links2 manpage and README.Debian don't specifically address this issue. Also, command-line options like ...
1
vote
2answers
247 views

ifconfig command showing internal ip address

I'm using centOS 6.3 on virtualbox as guest OS on Win 7 host. My problem is when I use ifconfig command in terminal, I'm being thrown internal IP address(10.x.x.x). However, when I googled "my IP ...
1
vote
2answers
101 views

Change terminal text color for next command only

So when I find myself compiling a lot (from the terminal) I find it difficult to distinguish between the current compilation results and the old ones, so I was wondering if there is a bit of text that ...
2
votes
1answer
54 views

How to programmatically check if the terminal supports italics?

I'd like to check if the current terminal is able to display italics correctly. Checking that manually is easy: echo -e "\e[3mfoo\e[23m" If the output is foo, the terminal (-emulator) supports ...
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 ...
22
votes
3answers
9k views

Terminal prompt not wrapping correctly

I have an issue where if I type in very long commands in bash the terminal will not render what I'm typing correctly. I'd expect that if I had a command like the following: username@someserver ...
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-' ...