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
1answer
32 views

Unable to print awk'ed datum in bash script

I am dumping datum into a csv file (my_datum_file.csv). The contents are all comma seperated, and I want to find the last instance of the 4th parameter (i.e. the last instance of datum regarding MX3, ...
7
votes
1answer
250 views

mkdir: cannot create directory: Function not implemented

I am in college and have to submit my cs homework from a school Linux machine, but I like doing the homework on my laptop (Mac). So instead of copying my files over every time, then submitting them, I ...
0
votes
2answers
20 views

Reopen a last closed tab in gnome terminal?

Can we reopen an accidentally closed tab in gnome terminal? Assume the closed tab is the last closed one. In firefox, we can use Ctrl-shift-t to do that. But I haven't found away in gnome terminal ...
2
votes
1answer
29 views

How to disable mouse support in terminal?

I'm asking this question while using xfce4-terminal, but I'm interested in a general solution: is there a way to stop a terminal emulator announcing mouse support in consoles? I need mouse-select and ...
2
votes
1answer
30 views

Windowless xterm? (Faking a terminal for a process)

I'm fighting with a rather odd problem with Matlab. The startup script is located in /opt/matlab_2013b/bin and is called matlab. When I run it in terminal, it works fine. But I want to make a ...
4
votes
2answers
51 views

How to get the real name of the controlling terminal?

How can one get the real name of the controlling terminal (if there is one, else an error) as a pathname? By "real name", I mean not /dev/tty, which cannot be used by other arbitrary processes to ...
3
votes
2answers
41 views

Terminal with image support

Is it possible to have sort of a hybrid terminal that can display isolated images in one or more designated panes? As I understand it, modern terms are graphical emulations anyway, so obviously they ...
0
votes
0answers
6 views

Using snmpdf on a linux or unix machine

After searching and thrusting many different tries into play, I cannot find a command or variation of one that will print results different from: $ snmpdf -v 2c -c inserted_tries here Description ...
1
vote
0answers
45 views

Why doesn't manpage show the available options?

When I open a manual in bash in Linux Mint 17.1, e.g. man man, the available options are not shown. Why is that and how do I fix it?
0
votes
1answer
17 views

unix2dos not recogonizing outfile

I typed unix2dos /path/to/filename_unix.txt /path/to/filename_dos.txt in the CentOS 7 terminal, but I got the following in response: unix2dos: converting file /path/to/filename_unix.txt to DOS format ...
1
vote
2answers
15 views

Linux copy range of folders

I found this link with an example of how i can actually copy range of files Copy a range of files in command line (ZSH/BASH), using this $cp P10802[75-83].JPG ~/Images/. Is there any way i can also ...
0
votes
0answers
24 views

What could be the reason for a delayed display of the prompt ?

When I click on the Xfce-Terminal Logo, the terminal window opens, but for about 30 seconds there is no prompt and no reaction to a command. On the picture below, the lower window already attained ...
-1
votes
0answers
19 views

Terminal Initializes in a Master Branch

When I open iterm my initial prompt has the following: calebfristoe at Calebs-iMac in ~ on master* No idea why. I deleted the cache in Brackets text editor from the command line and that's last ...
1
vote
1answer
22 views

How to tell screen session to regenerate its socket?

Note: the situation described here is completely different from this one. I have a couple of still-attached screen sessions, but screen -list produces % screen -list No Sockets found in ...
1
vote
1answer
33 views

Terminator does not keep color profile between splits and new tabs

I just downloaded terminator 0.97. I have several profiles in my configuration file (~/.config/terminator/config). I don't usually work with the default profile. One issue is the problem of keeping ...
0
votes
1answer
14 views

Is it possible to see which components were uninstalled (last time or as back in time as possible)?

I am running Elementary OS Freya beta2 which being beta may run into trouble. One error that may appear is a message in terminal saying that certain components that are in fact useful and even vital ...
0
votes
2answers
23 views

how do I find the location of mysql drivers on CentOS 7?

MariaDB is installed on a remote CentOS 7 server. How can I find the location of the nearest equivalent to mysql-connector-java-5.0.8.jar in the server's file system? grep seems to only search ...
2
votes
1answer
25 views

calling javac from CentOS 7

I want to be able to use the javac command on the CentOS 7 terminal. How do I set the PATH variable in order to accomplish this? The following explains relevant aspects of my current environment. ...
0
votes
1answer
17 views

what do i need to do additionally to start X in order to not end in a black screen?

From the xfce desktop environment in Linux Mint, I pressed Ctrl + Alt + Fn in order to get into a virtual terminal, then I stopped the mdm display manager with killall mdm. So far it worked, but once ...
0
votes
1answer
74 views

Running Java classes in a package --> Error: Could not find or load main class

I'm learning how to compile and run java classes in terminal using the commands javac and java. I have no problem compiling and running an individual class, however, when I put that class into a ...
0
votes
1answer
67 views

command to clean up old log files

I was trying to automate some auto cleaning of my Ubuntu System, with Cron Jobs I tryed to simplify this: sudo find /var/log -type f -name "*.1.gz" -delete sudo find /var/log -type f -name "*.2.gz" ...
0
votes
0answers
40 views

How do i log into a virtual terminal ?

I do not know what a virtual terminal is, but i have to enter one, in order to switch off the display manager in a fashion that allows me to type next a command in the virtual terminal that starts the ...
1
vote
1answer
34 views

Detect how much of Unicode my terminal supports, even through screen

Here's the problem: I want to be able to discern if my terminal is capable of decent unicode or not, in order to use some characters or not, much like glances does, that sometimes uses colors and ...
0
votes
2answers
30 views

is the shell a frontend to the terminal? [duplicate]

Is the shell only an addon to the terminal, so that a terminal daemon has to work in order to to start a shell as its frontend. What controll does the terminal exherts upon the shell?
6
votes
2answers
386 views

How do I find number of vertical lines available in the terminal?

I'm writing a script which shows the git log for a directory when I cd into it. Such a log can be overwhelming, containing hundreds of lines. So far I have been limiting that to a hard-coded 20 lines ...
1
vote
1answer
43 views

Display result of a command right aligned in terminal

I have a script that goes through many different checks and I use the success, failure functions defined in /etc/init.d/functions to clearly show the action result on the terminal. That works great, ...
0
votes
0answers
56 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 ...
3
votes
1answer
62 views

How to clean stdout/stderr color output

I have a program that would output something like this: ^[0;33m"2015-02-09 11:42:36 +0700 114.125.x.x access"^[0m Is there built in linux program that could clean that output up into something like ...
3
votes
1answer
24 views

Parent restarted by child doesn't respond to CTRL-C

I wrote a program. It starts a process (call it A) that spawns a child process (call it D) that shutdowns and restarts A. Problem is, now I can't kill A nicely from the terminal (ie. CTRL-C isn't ...
2
votes
0answers
32 views

urxvt - force column width

I'm using urxvt with a tiling window manager (awesome) and would like to have my terminals maintain 80 columns irrespective of the window's size. So I was wondering if there is a way to force urxvt ...
0
votes
0answers
36 views

Issue with a script launching URL, then pkill firefox after X seconds with cron job

I am trying to create a shell script that will start firefox on a certain URL, then kill it 120s later. I have a script that mostly works and a bad crontab job that doesnt seem to. testscript.sh: ...
0
votes
0answers
15 views

How to run ping in background, disconnect from current terminal session and get back the ping process later on from new terminal session? [duplicate]

I want to monitor 2 of edge routers that currently have intermittent issue. I want to monitor their percentage availability using default ping parameter (1 ping per 1 second). If I run the ping ...
0
votes
0answers
122 views

Using chown $USER:$USER inside bash script

In a small bash script I'm running I am attempting to chown a new directory that is created. I've added: sudo chown $USER:$USER /var/www/$sitename sudo chmod 775 /var/www/$sitename after the line ...
0
votes
2answers
29 views

Keep execution of bash script when aborted via CTRL+X or CTRL+C

This is very nooby question I belive and I've tried everything to avoid asking it here, but I didn't found answere anywhere on whole internet. Go on and give me downvote but please answer me how to ...
1
vote
0answers
25 views

How to set environment variable for BACI compiler and interpreter?

I have installed executable files for BACI compiler and interpreter in my Ubuntu system. But now every time I have to compile my .cm file I have to go to the program folder and run ./bacc and ...
0
votes
1answer
31 views

How can I disable auto scrolling in gnome terminal?

When I enter a command with a long output such as locate linux, the output is too long to show on the current terminal screen, and so the terminal will scroll right to the end of the output. How can I ...
4
votes
5answers
265 views

sort order explanation

Giving a lot of files, sort -n gives me this result: f1.txt f10.txt f2.txt which doesn't seem right to me. What is the explanation? Can I get this by default: f1.txt f2.txt f10.txt
0
votes
1answer
39 views

Remote terminal application

Does anyone know if there exist an application which allows admin run other apps in kind of desktop environment. What i mean is a kind of VNC application which only gives user the terminal console, ...
0
votes
1answer
35 views

Change the way folders are displayed in terminal [duplicate]

I moved over from Xubuntu to Fedora. In a colored Xubuntu terminal the folders appear in bold blue wheras in Fedora they appear as normal blue. I'm familiar with ANSI codes for colors and style but ...
0
votes
1answer
18 views

Nano Editor over Screen in Terminal isn't fullscreen

When I connect to a device using Screen in terminal, if I open Nano text-editor it only takes up a fraction of the screen. How do I make it fullscreen?
0
votes
0answers
31 views

Broken prompt writes from the wrong position and overwrites text

From time to time, when I SSH from my Android device to my home Linux server my terminal randomly start overwriting text that was previously outputted. I am using JuiceSSH as my SSH client, and I've ...
0
votes
3answers
79 views

How do I print a certain line of python code using the Linux terminal?

If I am writing some python and I only want the terminal to show a certain line, what command do I use? For example my program is: print("line one") print("line two") print("line three") And I only ...
1
vote
1answer
54 views

Read a character from an x-y coordinate on the screen

Is there a way in bash to read a character from an x-y coordinate on the screen? This command would be something similar to cget 12 30 which would return the character at the 12th row and 30th ...
0
votes
0answers
17 views

how do I save atom io files to be executed in terminal

so i am new to atom and i was trying to figure how to run saved atom io files and then run it as an executable program from terminal? Right now i am trying to use the command ./filename.py for ...
11
votes
3answers
714 views

Terminal vs bash? [duplicate]

I'm on a Mac but I think this is generally Unix-applicable. I'm in the process of learning shell scripting and there's something I seem to be missing. When I'm in the ordinary terminal, I can use ...
0
votes
0answers
21 views

Create an alias using Command, Option, Control, or Fn key as part of the input

How can we map these keys into part of an alias or custom shortcut within the terminal? Is it the key codes that must be used or is there another way?
0
votes
1answer
40 views

Terminal sandbox commands

I was wondering if there's a way to run shell commands that affect only a certain directory and its subdirectories. I'm using PHP and I want to make an app that allows the user to execute shell ...
0
votes
2answers
37 views

Turn off mail notification in terminal

I'm running some cron jobs on my machine and every time I fire up a terminal session I'm getting a 'You have mail' message (the job produces output on success which gets mailed to me). Any way to ...
0
votes
2answers
61 views

Tilde on unix:hpux and / or solaris

On Linux press F9 return a correct ~ On unix(solaris or hpux) return 0~ How to set correct tilde on those systems?
0
votes
1answer
107 views

How do I grep on a live log (stdout)?

I'm not sure if that what stdout is, but that's what I think. What I want to do is filter out a certain log message when running an executable. I tried this: Executable 2>&1 /dev/null | ...