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
2answers
22 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 ...
0
votes
1answer
10 views

Chage 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 ...
0
votes
1answer
29 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
37 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
16 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
133 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 ...
3
votes
1answer
36 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
37 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 @ ...
14
votes
2answers
508 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
16 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
32 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
24 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
7 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
10 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
46 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
29 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
40 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
30 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
80 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
34 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
38 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
23 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
37 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
20 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
68 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 ...
8
votes
1answer
499 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
42 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
24 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
25 views

Bash not sourcing ~/.bash_profile on os x

I just got this really wierd poblem. 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
41 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
24 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
53 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); ...
0
votes
0answers
19 views

st terminal run block of code

I can run a command with a new terminal by typing st -e <command> How can I run a block of code this way, for instance: for i in {1..100}; do echo $i sleep 1 done I thought it would work ...
1
vote
1answer
38 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
4 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
35 views

Terminal - redirection of output to file is cutted

I am using command: ./cpp-generator > ~/log.log But when I open the log.log the file is short. It ends in the middle of word. But if I run just: ./cpp-generator in terminal is whole, full ...
0
votes
1answer
64 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
26 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 ...
0
votes
2answers
56 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
95 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 ...
0
votes
0answers
24 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 ...
4
votes
4answers
276 views

Remove a directory from inside using the command line interface [duplicate]

Imaging the next simple file structure within the /home/user/ directory: /home/user |--dir0 |--dir1 |--file1 My current directory is 'dir1' and I remove the ...
0
votes
0answers
52 views

Strange “terminal” appearing

I use ubuntu 12.04 with KDE and had two times a strange terminal or something like this appearing for like 2 seconds and then closing again in the upper right corner. I did not see what it exactly ...
1
vote
1answer
107 views

grep not matching in nc output

I'm using nc to scan for open ports but I'm scanning a wide range and it's displaying too many results. Trying to grep it for the word "succeeded" doesn't work for some reason: $ nc -zv localhost ...
1
vote
1answer
43 views

grep also returning non matching lines

I'm trying to grep the output of strings and only find lines that start with a certain number of = chars. I tried strings data.txt | grep ^=* Sample output: 1~{, WX2 };K,< ========== ...
0
votes
2answers
14 views

Viewing Multiple Data Streams From Application

I am running latest Ubuntu LTS and wrote an application that interfaces with a machine. The machine has multiple sensors and several PID loops for temperature control. The data comes in very fast, ...
0
votes
2answers
36 views

Bash output command too large, can't read it!

I'm having some troubles on Ubuntu 14.04 initialization, it fails to mount an SSH folder and gives me the option of a manual recovery by pressing M, displaying a command-line logged at root user for ...
1
vote
1answer
60 views

Installation date and virtual status of the machine( For Darwin, FreeBSD and NetBSD)

How do I determine installation date (when the system was first booted) for Linux,Darwin, FreeBSD and NetBSD? Also, Is there any way to get the virtual status of the these machines (whether the ...
1
vote
3answers
107 views

Which is the command for show all property of my PC on terminal

Which is the command for get this: