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
5 views

auto mp3 id3 tag updater as a service

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 ...
0
votes
1answer
64 views

Syntax error near unexpected token `(' inside script

When I use below code in Ubuntu terminal, it works fine: rm !(*.sh) -rf But if I place the same line code in a shell script (clean.sh) and run shell script from terminal, it throws error as this ...
1
vote
0answers
25 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
43 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
16 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
0answers
15 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
3answers
38 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
15 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
244 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
45 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
89 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
42 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
13 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
24 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
46 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
96 views

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

Which is the command for get this:
2
votes
3answers
176 views

copy from file and paste in the terminal without x server

I have got an ubuntu linux without x server installed on it (cos it's only a gateway). I am requested by an application (ossec,-my question is not ossec related-) to paste information into the ...
2
votes
1answer
18 views

Strange characters after pressing numeric keyboards in VIM editor

I'm running VIM under GNU screen. When I'm in insert mode and press e.g. asterisk symbol on numeric keyboard, instead of asterisk I get <F3>, when I press e.g. 4 I get t followed by newline. My ...
2
votes
3answers
28 views

How do I remap newline and carriage return regardless of the terminal used to connect?

All my configuration is stored in my github account (https://github.com/mnebuerquo/dotfiles) so I can just clone my repo and run my install script and my home is configured to use all my tools. I ...
0
votes
0answers
21 views

Can I cheat the docker run -it session by remapping ctrl+p key?

This is regarding this issue with docker: https://github.com/docker/docker/issues/3519 and http://stackoverflow.com/questions/20828657/docker-change-ctrlp-to-something-else As I understand this, the ...
1
vote
2answers
38 views

Trailing spaces when copying from console

It's this annoying behavior I've been experiencing here and there occasionally: when you select text with mouse in console (that is, copy it), paste it, and realize you've got extra spaces at the end ...
-3
votes
0answers
32 views

Kali linux does not boot in gui

I got kali linux installed on my pc for a while but now linux will not boot in gui mode , only in text mode ( terminal ). I get no errors on booting it goes directly to the login screen . Hope you ...
2
votes
2answers
44 views

find closest matching folder

What is the best way to sort the results of $ find . -name scripts -type d by the occurrences of '/' and then choose the first result. I want to create a function that would cd down to a common ...
2
votes
2answers
107 views

Redirect output of less utility to a file

Here is what I did less -N file1 > file2 what I want is writting file1 into file2 with line-numbers option. But I failed with that. Any suggestion to do that? Why I failed to do it? Thanks.
2
votes
1answer
72 views

Unable to get back to bash prompt after strange command

I was messing about with different wildcards and ran the following command: ls testdir/!(*/) after which I was completely unable to get back to the bash prompt. None of ^C, ^D, or even ^Z worked: ...
0
votes
3answers
58 views

Delete all files that DON'T have duplicate names?

Given a large list of files, containing the following: FILE1.doc FILE1.pdf FILE2.doc FILE3.doc FILE3.pdf FILE4.doc Is there a terminal command that would allow me to remove all files that do not ...
0
votes
0answers
10 views

What is the difference between Uni1, Uni2, and Uni3 terminal font codesets?

I'd like to change my terminal font to any of: /usr/share/consolefonts/Uni1-Fixed15.psf.gz /usr/share/consolefonts/Uni2-Fixed15.psf.gz /usr/share/consolefonts/Uni3-Fixed15.psf.gz What is the ...
0
votes
2answers
37 views

grep for lines/files that contain exactly X chars

Here's the output of a grep command I ran: [user@localhost] : ~/Documents/challenge $ grep -i -e ".\{32\}" fileA fileB fileA:W0mMhUcRRnG8dcghE4qvk3JA9lGt8nDl fileB:observacion = new Observacion(); ...
0
votes
0answers
12 views

Weird UI glitching in VIM adjusting split bar

i just installed gvim on linux mint and I'm experiencing some weird UI glitch when adjusting the split bar and it also seems to happen when making changes to files in the editor. I have similar ...
1
vote
0answers
18 views

tmux select-pane -LDUR command - disable auto-cycling behavior

is it possible to disable the behavior which cause selecting a pane on opposite side of a tmux window if there is no more pane left in a direction select-pane command was originally triggered at? if ...
1
vote
2answers
24 views

Issue commands at the same time in several terminals

Desktop -> ssh -> Servers Are there any solutions to have several windows in my desktop and: If I issue a command in one window, the same command thing will be issued on other terminals too. So if ...
0
votes
0answers
17 views

Vi buffer contents stay on-screen after using screen commands

In shell terminal, echo $TERM --- prints xterm Now i do vi somedoc and exit, vi contents disappear from the shell screen and the shell's previously ran commands are visible. So far, all good. Now ...
2
votes
0answers
36 views

Eliminating trailing space on wrapped lines in a terminal

In some terminal sessions, a space is inserted where long lines wrap. When copying multiple lines with a mouse, the inserted trailing space on each line is included. When pasted, one must manually ...
1
vote
1answer
23 views

Send javascript to Chromium or Firefox from linux terminal

I am using either a chromium or firefox web browser in kiosk mode to log in to a website from boot up, and I want to use a javascript to send in a command to login to a website automatically. I know ...
0
votes
0answers
21 views

I keep getting a space in my program from cin.get() [migrated]

This is my program: #include <iostream> #include <cstdlib> #include <ctime> using namespace std; #define RAND(a,b) (a + rand()% (b-a+1)) int main() { int num; int ...
-3
votes
1answer
35 views

How to solve terminal window [closed]

I am getting the following error: There was an error creating the child process for this terminal Failed to execute child process "terminal" (No such file or directory) Please help me resolve ...
1
vote
0answers
10 views

Difference of meta-data between mdls and mediainfo [migrated]

I was wondering what are the difference between the type of metadata returned by mdls and by mediainfo. Why are they different? For exemple why the creation date is different on the same file? ...
0
votes
1answer
30 views

MobaXterm: How to see previous commands' terminal output while still being in VIM? (Equivalent of 'Shift + Page Up' in PuTTY)

I'm finding this difficult to explain because I'm not sure what this is called technically so please bear with me. What I want (which is possible in PuTTY): 1) Login to a machine (using PuTTY) 2) $ ...
0
votes
1answer
19 views

How does Elinks renders the HTML? [closed]

I like the elinks browser and I would like to know how does it render the HTML into text, using ANSII styles. I suppose there is a library behind elinks to handle the rendering, or it should be. Is ...
0
votes
1answer
35 views

Difference between tty and ttyS and pts and vcsa? [closed]

I can't understand what is difference among tty, ttyS, pts and vcsa? Are they same? when we connect a serial cable to a server which hosts unix-like operating system, which ones of these type of ...
1
vote
0answers
23 views

-devilspie doesn't play nice with spawning new terminals

I'm trying to configure devilspie so that on detection of opening a certain directory it runs a script to mount that directory over a network. I don't think the script itself is too important but ...
0
votes
3answers
37 views

ssh from screen leads to unknown terminal error

I'm trying to make an ssh connection (via lsh) from one Ubuntu host to another from within screen. If I try to run mc right after that I get the following error: Unknown terminal: screen-256color-s ...
1
vote
1answer
27 views

Tmux displaying quotes/messages on startup

I have installed tmux on Linux Mint Debian Edition and every time I start it or create a new pane/window it displays a random quote or message above the prompt. It's driving me crazy and I cannot seem ...
1
vote
1answer
47 views

Using cron to start a process on a terminal without using screen?

I want to start a process in a terminal using cron. I want the process to start in a terminal, so that I can continuously see the output of the process on the terminal, and kill it / restart it etc. I ...
1
vote
2answers
52 views

how to use nohup while still sending stderr to the terminal

nohup automatically redirects stderr to stdout, but I want to send it to the terminal (it shows progress). How can I do that?
5
votes
2answers
118 views

Silent GnuPG password request with bash commands

I'm trying to hide the "output" of a gnupg command, but it seems that it is always printed. the command is: echo "thisprogramwørks" | gpg -q --status-fd 1 --no-use-agent --sign --local-user D30BDF86 ...
3
votes
1answer
43 views

Background color whitespace when end of the terminal reached

I am working with control sequences for text formatting and have stumbled upon some unexpected behavior. I have some text to output, in the middle of this text there is some smaller text block ...
0
votes
2answers
47 views

Java programs not running in terminal

I have java 8 installed on fedora 20. Any java program runs perfectly fine via eclipse but when I run the same program on terminal it reports an error saying 'could not load main class' . what could ...
0
votes
1answer
22 views

dsniff not showing

How can I check a package? I installed dsniff and I can't access any of it's tools from terminal. I type arpspoof and nothing. Tab key doesn't autocomplete. Dsniff is installed using sudo apt-get ...
1
vote
1answer
26 views

Gimp canvas resize through terminal

I have multiple images in wrong canvas sizes and I need to resize them like this: for i in *; do blabla $i -resize 500x500 $i; done I can already resize image with convert tool but I need to resize ...