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

0
votes
0answers
15 views

Is there a way to deport gnome terminal output into a regular tty? [duplicate]

I was dist-upgrade my old debian wheezy from a gnome terminal in X and suddenly i got some display bugs. Basically i wasn't able to see the console and the upgrade anymore, impossible then to answer ...
1
vote
2answers
328 views

Bash is not sourcing ~/.bash_profile on OSX

I just got this really weird problem. When I start bash, I get these two lines: -bash: fasd: kommandot finns inte -bash: brew: kommandot finns inte "kommandot finns inte" means command does not ...
3
votes
5answers
4k views

Open file found with 'find' command

This is probably an easy one, but I can't figure it out and it's pretty much not searchable. In a folder hierarchy I have exactly one file of type xyz. I want to find that file and open it with a ...
0
votes
0answers
30 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
0answers
32 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 ...
1
vote
0answers
14 views

How to make a terminal window open at a certain location by default [duplicate]

Running Linux Mint 17.1 & MATE 1.8.1 When I open the terminal window with ctrl+T, I want it to switch the path automatically to ~/workspace. How do I do this?
1
vote
1answer
99 views

What is the purpose of the pts directory in linux

I ran the last command in Linux; I got the output: pts/0, pts/1, pts/2, pts/3, pts/4 and pts/5 What does pts mean?
2
votes
2answers
904 views

How to temporarily disable the Escape key in a Terminal?

I am parsing keyboard input via read -n 1 and I haven't found a way to distinguish between an actual key-press of the Escape key and the first Escape character (byte) of a control sequence generated ...
0
votes
1answer
83 views

Psql: Not a directory

I found my psql folder typing : $ which psql /usr/bin/psql But when I Tried get in I got this: where I am: root@localhost:/usr/bin# $ cd psql -bash: cd: psql: Not a directory I can see the ...
2
votes
1answer
46 views

Disable eth0 for the current session [duplicate]

Is there a way to disconnect eth0 (wired connection) for just until I reboot? Or even a way to just bring it down then up again before I shut the computer down? I want to do this because sometimes I ...
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
125 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
61 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
37 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
32 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
87 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
29 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
477 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
54 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
132 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
524 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
250 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 ...
0
votes
1answer
1k 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
55 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
33 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
46 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
89 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
52 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
88 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
322 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
118 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
11k 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
552 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
412 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
69 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
83 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
47 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 ...
11
votes
2answers
11k 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
127 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
704 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
270 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
157 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
54 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
76 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
709 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 ...
1
vote
1answer
440 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
11k 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
414 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 ...