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

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 ...
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
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
73 views

Terminal emulator for Debian XFCE that will accept $TERM=linux, just like login console tty uses?

I recently discovered that if I log in to my Debian system without lightDM, just using the commandline prompt, and then instead of typing "startx" straight away actually use the commandline, the ...
1
vote
1answer
30 views

Read from the terminal from a disowned background process

Do we still have a possibility to read input from keyboard even if the application is running in background (disowned)?
1
vote
1answer
160 views

Connect to an Ubuntu VM from a terminal on the host machine

I'm running an instance of Ubuntu Server 14.04 inside VirtualBox, and for multiple reasons, I prefer to work with it using the terminal emulator on the host system (OS X 10.0) than with the default ...
0
votes
3answers
68 views

Make curl/cat not scroll down when given long text?

I have made a program where I read the text from a url using curl. The problem is that when given texts that are larger than the terminal window, it automatically scrolls down to the bottom, I want to ...
0
votes
1answer
113 views

How are virtual consoles related to traditional computer terminals?

This is extracted (with some rewording) from Computer terminal and virtual console, which has been closed with a hatnote linking to What is the exact difference between a 'terminal', a ...
6
votes
1answer
301 views

Difference between closing the terminal using the closing button, and Ctrl-D

When I'm launching a background process and then closes the terminal using the window's closing button, the background process gets killed. However if I close the terminal using Ctrl+D, the background ...
-1
votes
2answers
74 views

How to lists all users who logged in on a specific day using grep and last

Hey I'm new to Linux and I'm using Ubuntu right now. However I need to answer this question: Write a command or sequence of commands that lists all users who logged in on a monday by using last and ...
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 ...
1
vote
1answer
68 views

How to know if output is being redirected to a file? [duplicate]

I am working on displaying output like ls command (just ls, no options). And I have a working program using the system calls. But I experienced a strange behavior while testing as shown below. $ ls ...
-3
votes
2answers
51 views

how can I delete the remnants of windows from a new CentOS 7 server?

I recently installed CentOS 7 on a new computer that came shipped with Windows 8.1. The BIOS no longer shows windows as a boot option. But my initial analysis of the file system is hard to ...
2
votes
0answers
29 views

Jump to last prompt in terminal (or tmux)

In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow. I'm using iTerm on OSX, but this should be ...
5
votes
1answer
219 views

How to have type-ahead apply to bash history search (Ctrl-R)?

Context Typeahead in bash: good When a bash shell is busy (initializing, running a command), one can type before the next prompt appears. If the shell has launched a program, that program will ...
4
votes
1answer
76 views

Why do the terminal attributes look different from outside the terminal?

If I open up a terminal (xfce4-terminal 0.6.3, but I doubt it matters) and I look at what terminal attributes are set (BASH is running in the terminal), $ stty -a speed 38400 baud; rows 24; columns ...
3
votes
1answer
455 views

How to log out as root user in command prompt after creating non-root user

obviously I am extremely new to Linux, but I'm glad to finally be here...trying to kick windows is tough in some cases ;-) Anyway, I'm trying to follow the following tutorial @ ...
16
votes
2answers
862 views

What does CTRL+4 (and CTRL+\) do in bash?

I just found out by accident that CTRL + 4 closes programs reading stdin input from the command-line. This is how it looks when I type CTRL + 4 or CTRL + / into programs reading stdin ryvnf:~$ ...
1
vote
0answers
65 views

How can I stop qterminal from cutting the top half off every line?

I'm running Arch Linux, and using LXQT. I've just installed qterminal. At the moment, it looks like this: The top half of every line is cut off. I can fix this by increasing the font size, but ...
1
vote
2answers
74 views

Kerning problem when using a variable width font in Debian terminal

In my Debian Linux terminal some fonts looks like this. But any text editor (i.e leafpad) shows this font correctly. What is the problem?
0
votes
1answer
47 views

Serial devices?

Is it possible to do some echo on /dev/ttyS8 serial device in one terminal window, and in second to cat /dev/ttyS8 and display data from that file?
0
votes
0answers
30 views

Debian Jessie - Terminal not resizing for non-admin user

I've deployed a Debian 8 instance on ec2 using the "official" AMI listed for my region on the debian site. I logged into the default admin account and created another user before logging in as them. ...
0
votes
0answers
20 views

send bootup script output to virtual terminal

I have a script that I symlink in as /etc/rc.d/rc3.d/S30initialize which basically makes it get called when entering runlevel 3. I want for the output of this script to appear on the virtual ...
1
vote
1answer
102 views

How to make boot output verbose?

I use to enjoy watching my red hat then debian then ubuntu machine boot, the boot process was not hidden from my view, now it is, in most of all distros, now, I know I can somehow connect a terminal ...
1
vote
1answer
52 views

How to suppress exit code of finished background jobs

Is there a way to hide the exit code of the background jobs that have finished? For example, if I run: sleep 5& After the 5s, if I hit return the terminal gives me: [1]+ Done ...
0
votes
2answers
478 views

error when adding user to wheel group in CentOS 7

I am trying to grant sudo privileges to a user of a CentOS 7 devbox by typing gpasswd -a user wheel, but the attempt is failing. What am I doing wrong? Here is what I typed: I discovered that ...
0
votes
0answers
146 views

Can't open steam application after installing SteamOS 2.0 (Brewmaster)

I was trying to install SteamOS Brewmaster update July 2015. Comes an error that I can't open the terminal, but I can fix it with reconfigure language from Ctrl+Alt+F2 or other. But the other problem ...
4
votes
2answers
198 views

Where is the `$TERM` environmental variable set in Debian Jessie for console logins?

I have read a lot of articles and SE questions regarding how and where the default $TERM environmental variable gets set. Unfortunately in Debian 8.1 I can't seem to find where the default $TERM ...
0
votes
1answer
100 views

Running script through bashrc causes nesting of tmux panes

I use the following tmux code in a script file tmux-dev.sh and add it to bash using bash /home/rohit/tmux-dev.sh : tmux new-session -d tmux split-window -h tmux split-window -v tmux -2 attach-session ...
1
vote
2answers
79 views

Execute command inside another command

I'm trying to record my tmux session. I've got an alias record-session which executes command from ttygif ttyrec ~/ttygif/files/last-session. As far as I understand ttygif starts new terminal instance ...
0
votes
2answers
197 views

How to install PyX correctly for Scappy use? [closed]

When I try to run Scappy interactive shell I am faced with this: INFO: Can't import PyX. Won't be able to use psdump() or pdfdump() (The shell is working but of course I can not use the above ^ :( ...
2
votes
1answer
119 views

No colour in MOTD

I recently bought a Raspberry Pi, and have started playing around with it. After changing my MOTD, (to include colours), the colour codes are coming up as raw-text instead of executing. I am ...
0
votes
1answer
76 views

How to display unicode characters in ncmpcpp

I am using Arch Linux and have UTF-8 encoding enabled. But how can I display a unicode character in ncmpcpp via the config file of ncmpcpp? I already added the line filesystem_charset "UTF-8" to ...
1
vote
2answers
131 views

Automatic login to multiple SSH root terminals

I am not sure if this is a security issue, or can be actually done. I would like to be able to boot up my PC, maybe run a program that will open about 5 shells, each SSH'ing to my local machine but ...
9
votes
1answer
682 views

Caret square bracket square bracket A ^[[A - What does it mean?

Apologies if this has already been asked, but I have no idea how I can find this out myself - when I search for "^[[A" in any search engine it ignores the "^[[" part altogether. Anyway, my question: ...
0
votes
2answers
150 views

what is the file descriptor of my terminal

I need to use tcsetgrp function to make my background process to foreground process, but The parameter of tcsetgrp is a file descriptor associated with my terminal. What is the file descriptor of my ...
1
vote
0answers
138 views

Byobu - New window with same ssh session?

Is there a way to configure Byobu to use same ssh session in a new window. For e.g. Open Byobu window ssh into a remote host Press 'F2' to open a new window. This opens the terminal with ...
1
vote
2answers
160 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
1answer
65 views

What is the effect of the underscore in [A-Z] [_a-zA-Z0-9]*?

In regards to regular-expressions what is the effect of the underscore in [A-Z][_a-zA-Z0-9]*
0
votes
0answers
25 views

Terminal wont launch at all!

I used Synaptic in Debian and installed some packages (around 466). After that I executed apt-get update. During the update it kept telling me that some files looked like they had been edited ...
1
vote
2answers
346 views

How can I make flashing text in bash?

In the script bellow, how can I make the the word "end" from the output of the command " printf "\e[41mend==>\e[m $i "", flashing? #!/bin/bash in=path_to_my_folder for i in $(cat ${in}/file.txt); ...
1
vote
1answer
133 views

Bind Ctrl-\ in inputrc?

I've been futzing around with this and can't seem to get it to work. Using Ctrl+V in the terminal correctly outputs ^\ for this combination so it should be recognizable. As I have Ctrl+\ bound to ...
0
votes
1answer
9 views

How to disable vcstime

There's a program /usr/sbin/vcstime which prints the date/time in the top/right corner of your terminals. You can enable it in /etc/kbd/config (on the last line). It's disabled by default. I'm having ...
0
votes
0answers
10 views

auto mp3 id3 tag updater as a service [duplicate]

I have an ubuntu 14.04 server running 7/24 as NFS, torrent server etc. I have many mp3 files needed to update id3 tags. Is there a way for auto update those mp3 files id3 tags like musicbrainz picard ...
2
votes
1answer
45 views

Terminal - redirection of output to file is shortened

I am using command: ./cpp-generator > ~/log.log But when I open the log.log the file is shortened. It ends in the middle of a word. But if I run just: ./cpp-generator in terminal, the result ...
0
votes
1answer
342 views

Disable ctrl c and ctrl z while a script is running

I have a script that takes about 45 seconds to run. How can I disable Ctrl-c and Ctrl-z while a script is running?
0
votes
1answer
47 views

I get a blank screen

My laptop is displaying a blank screen today, instead of the normal login window. I am using LUbuntu 14.04. I can get into the terminal and login, but how do I start lxde after that and how do I get ...
1
vote
2answers
143 views

open(1) in rifle.conf for ranger on OS X

ranger ~/.config/ranger/rifle.conf For simplicity What one line – in the rifle configuration file – could cause open(1) to be used for all types of file? Background ...
1
vote
4answers
195 views

Set, backup and restore colors in the terminal

I use this program to display all color available in the terminal. That waht I get: This program doesn't show me colors below 100. Why? Is there a way to display them. Is the are way to change ...
1
vote
1answer
120 views

Using Incrond Inotify but having issues with user groups/permissions

In the /etc/incron.allow I added both: root USER_1 Then I edited the incrontab so it looks like this: /var/www/laravel/public/js/main.js IN_MODIFY yui-compressor -o ...