Terminal: 1) A device or program used to talk to a terminal server, usually over Serial or RDP, 2) A synonym for command-shell or command line, 3) A specific OS X program.

learn more… | top users | synonyms

54
votes
1answer
3k views

Can't enter the letter 'e' over ssh [duplicate]

Right now I am experiencing some very, very weird behaviour on a Ubuntu 14.04.2 LTS server I am managing. Connecting to the server over ssh either from cygwin(mintty) or a terminal on a Linux ...
41
votes
5answers
3k views

Is there a linux terminal command that lets you see the amount of data coming in to your tcp connections in real time?

It would be something similar to top, where you see your cpu processes in real time. I'm not looking for a GUI like Wireshark to do it.
38
votes
4answers
29k views

How can I launch a screen session with a command over ssh on a remote server from my desktop?

I want to be able to launch screen sessions on remote servers from a single ssh command on my desktop. However, screen seems to need a terminal, which is not available when running a command through ...
18
votes
14answers
2k views

Reasons for missing IP info in `last` output on pts logins?

I have five CentOS 6 linux systems at work, and encountered a rather strange issue that only seems to happen with my userid across all the linux systems I have... This is an example of the problem ...
16
votes
1answer
3k views

Block select on a Linux console?

Is there any Linux console (konsole, gnome-terminal, etc.) that allows selecting text in a block mode, like you can in a Windows cmd.exe window, using Mark and drawing a square?
15
votes
5answers
6k views

Most long-running commands instantly killed on Amazon EC2 (Ubuntu 10.04)

When running any sort of long-running command in the terminal, the program instantly dies and the terminal outputs the text Killed. Any pointers? Maybe there is a log file with data explaining why ...
14
votes
1answer
951 views

PuTTY typing its name into the console

I was doing a MySQL dump over SSH using Putty, and now it is just typing PuTTY over and over again into the console, Ctrl+C doesn't do anything. Does anyone know why this is happening?
13
votes
4answers
7k views

Is it possible to change value of $TERM when calling ssh?

On my local terminal, I have TERM=konsole-256color, but not all remote machine I connect to have this definition. Is it possible to make ssh change the TERM on remote machine? Without changing .bash* ...
12
votes
5answers
2k views

How to remove many (200 000) files?

I must remove 200 000 files (all of them) from a folder, and I don't want to delete the folder itself. using rm, I get an "Argument list too long" error. I've tried to do something with xargs, but ...
12
votes
5answers
11k views

How to scroll back in screen within a ssh session from OS X?

I do the following: Open Terminal.app Open a ssh session to a remote Linux server Open a screen session on the server Start a program who breaks with many lines of error reporting… How can I ...
12
votes
4answers
9k views

How can I find the path to an executable in OSX

Is there a command I can use to easily find the path to an executable? I'm looking for identify on my local machine - something like pwd? pwd identify => /usr/local/bin/identify
12
votes
7answers
9k views

SSH garbling characters in vim/nano on remote server

... and it's driving me insane. Basically (this has been happening over the past couple months), I log into a few different CentOS servers (one Linode, another VPS, and a shared host to which I have ...
10
votes
7answers
9k views

How to find out if a terminal supports UTF-8

I'm setting up the CPAN module for perl on CentOs 5, and one of the questions is 'Does your terminal support UTF-8?' (paraphrased). How do I find out?
9
votes
11answers
21k views

How to watch logs in real time via Terminal?

This is a basic question - in the movie "The Social Network" there are several scenes when the young Facebook staff is watching the PHP/Apache server logs on in their TERMINAL in real time. I'm ...
9
votes
5answers
8k views

How can I automatically change terminal colors when I ssh a server?

I'm frequently logging into different servers from my os x terminal window. I'd like to assign a color scheme for different hosts so that my terminal windows are easier to tell apart. Can this be ...
8
votes
5answers
2k views

Allow access to Linux Console

Suppose one is running an SSH session into a GNU/Linux box of a client and he asks you to see "what you are doing". How can you allow this other party to see what's going on in your session?
8
votes
1answer
10k views

OS X WiFi settings via terminal?

I manage a large group of macs and they are all connected via ethernet. I would like to disable wifi on them and then require and administrator to change any wifi settings (pretty much what is shown ...
8
votes
2answers
1k views

Reverse bash console text flow

This is a bit of a weird question and I'm not sure that there is any easy answer to it but I am very interested in finding a solution. So when I work on a linux machine via a console I find that I am ...
6
votes
2answers
11k views

Nginx Restart Issues

All of the sudden when restarting Nginx I get the following error: Restarting nginx: [alert]: could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) ...
6
votes
2answers
8k views

“Cannot set terminal process group” during su to another user as login shell

Note: Please read the updated information starting with "EDIT" near the halfway point of this post - the environment and background of this problem has changed I've got a bog standard Debian 6.0 ...
6
votes
3answers
4k views

How to make the 'less' command handle UTF-8?

On my Mac terminal, printing UTF-8 works in general, but the less doesn't work correctly. So this works correctly: $ echo -e '\xe2\x82\xac' € but piping it into less gives something like this: ...
6
votes
3answers
3k views

List supported terminal types?

Is there a portable way to list supported terminal types on all *N*X systems? If not, what's the best way to get this list on Solaris?
6
votes
4answers
2k views

How can one set a terminal's title with the 'tput' command?

I discovered through this answer that I've been setting terminal colours in my prompt in a naive way for years. I've now modified my .bashrc to use 'tput' commands to colourise various elements of my ...
6
votes
3answers
2k views

Connecting to an analog dial-in PSTN terminal without a PSTN line

there's a computer ("server") that has no Internet connection, and it is located in a place with no GSM signal. The only way to get connection to it is an analog modem (US Robotics 56Kbit/s). This ...
6
votes
2answers
859 views

Creating a pseudoterminal to make sudo happy

I need to automate the provisioning of a cloud instance (running Fedora 17) for which the following initial facts are true: I have ssh-key based access to a remote user (cloud) That user has ...
6
votes
1answer
6k views

Forwarding linux terminal from serial port to TCP with socat

I'm working on embedded ARM platform, Slackware. I'm using G24 Java modem which is configured to forward data between ports /dev/ttyS1 and /dev/ttyACM0, so anything that goes onto any of these ports ...
6
votes
1answer
468 views

Kickstart SSH usage

I have a small Kickstart script which (among other things) connects to our Puppet master, approves the certificate request and then creates a basic framework for a new server. Within my Kickstart ...
5
votes
2answers
291 views

Confusion over terminology SSH, Shell, Terminal, Command Prompt and Telnet

I don't usually use SSH if I can get away with it, but if I have to I do of course, and I've seemingly done this for years while still managing to remain slightly confused about these different terms ...
5
votes
7answers
4k views

Remote Desktop Problems

I rebooted our 2k3 server box, and it looks like its hanging for some reason and I can't connect via terminal services to investigate. Any suggestions to resolve this issue? Update Working on vpn ...
5
votes
2answers
2k views

Cisco console, USB and RJ45?

I have a new Cisco 3750X switch and I want to connect to it via console. Only.... this switch does not have a DB9 connector on it, its Serial port is RJ45. I have a USB to RJ45 cable, and am on ...
5
votes
5answers
2k views

Getting ;5D when hitting ctrl + arrow key in a Terminal on FreeBSD

On centos I can skip a word by hitting ctrl + arrow (left or right) in a terminal. When I ssh into a FreeBSD box and I try the same pattern I get: $ tail -f 20120412.log;5D;5D;5D (each try = ;5D) ...
5
votes
2answers
947 views

Why does CTRL-r act weirdly (showing only part of a command) on OS X

Ctrl-r is a great little tool for searching your .bash_history for previously run commands. However, when I use it in my OS X Terminal.app I see weird behavior, and I was wondering if anyone else ...
5
votes
4answers
5k views

How do I increase size of Terminal on Linux

I have a 48core linux box. I would like to monitor per core cpu usage. However when I use top and press 1 I get an error message "Sorry, terminal is not big enough" Is there anyway I can increase ...
5
votes
2answers
2k views

virsh console and tty size

I have a virtualization server to which I connect over ssh. If I now change the size of the window it will automatically propagate to the server. It's most easily seen using stty -a, checking the ...
4
votes
4answers
239 views

How do you differentiate between a local and remote terminal? [closed]

It's not a common scenario, but I find myself accidentally inserting commands into the wrong terminal. I haven't damaged anything important yet; So before I do, what are some of the best ways to ...
4
votes
4answers
427 views

Recommendations on good terminal multiplexer [closed]

Please recommend me a good terminal multiplexer. I'm new to sys admin work and need a good way to mange multiple boxes. Edit: Just be clear, I'm looking for something like PuTTy that can send ...
4
votes
4answers
3k views

Why do some ssh sessions offer autocomplete and some not?

Very newbie question! I'm sshing to two different servers, both part of the same Amazon AWS cluster. They're not run by me. On one ssh session, the terminal lets me autocomplete. On the other ...
4
votes
3answers
374 views

What do you do when a command floods your terminal with too much output?

I'm trying to solve a common annoyance: when SSH'd into remote servers I often do things that produce a lot more output than I'm expecting. For example, grepping a large log file with a pattern that ...
4
votes
2answers
5k views

Can I create a hidden admin account via the terminal on OSX?

I have around 300 baby macs to look after, and they have lots of different admin accounts, which is a nightmare to work with. ARD has slowly been configured with the accounts of the machine owners, ...
4
votes
2answers
1k views

What does “virtual consoles” in the ubuntu installer stand for?

I am installing ubuntu server in a vmware vm. In the expert installer there is this question (i guess this is the same in the debian installer): Please enter a space delimited list of virtual ...
4
votes
2answers
8k views

How do I reclaim a disown'd process?

Similar to many previous questions, I found myself running a job that I wish I had run in screen. I was forced to disown the process because I needed to disconnect. Now that I have reconnected, I see ...
4
votes
1answer
559 views

control + punctuation doesn't register in terminal

For the purposes of using emacs in a terminal, I want to use key combinations like Control-'. But when I try that key combination, it just writes an ' to the command line. The same thing happens for ...
4
votes
3answers
4k views

Scrollback not working in terminal window (ssh session)

I have an ubuntu slice at slicehost, which means it is a DomU on a Xen host - and it's a pretty stripped down installation. The thing that bugs me is that scrolling back in the terminal using ...
4
votes
2answers
2k views

Terminal.app does not support alt/meta/command-key modifiers such as meta-backspace

This was observed on Mac OS X 10.5, running Terminal.app. On a native Linux machine, from a bash command prompt, typing meta-backspace deletes up until the most recent whitespace. On a Mac, it ...
4
votes
0answers
460 views

CentOS colors in php-cli applications [closed]

I'm managing a server with CentOS 6.5 x64 installed. In my Ubuntu server, when I run composer or Laravel's artisan php cli command, parameters are colorful. But this doesn't happen when I SSH into ...
4
votes
1answer
165 views

ttylog attaches to the wrong process - release notes a bit hard to understand too

I have a lengthy python script running on a machine: [root@server1]# ps aux | grep python root 30640 15.6 0.6 296416 102444 pts/4 S+ 11:29 2:38 python my_script.py But I'm now working ...
3
votes
3answers
2k views

cp command, ignore unchanged files

Is there a way to do a cp but ignoring any files that may already exist at the destination that aren't any older then those files at source. Basically I want to copy the contents of one disk to ...
3
votes
3answers
377 views

Is is possible to reattach a telnet connection?

Our network involves a series of dumb text terminals which telnet into a SCO OpenServer 6 server. Occasionally, one of these terminals will crash, forcing the operator to move to a different terminal ...
3
votes
6answers
14k views

How to setup the Mac OS X Terminal so it's *just peachy*?

My Terminal is awesome, has every detail just right (for me anyway), and now I'm setting up a few new macs around here and I have no idea whatsoever how to get their terminals to a pretty state. My ...
3
votes
5answers
8k views

Running python app in the background on linux

Weird question here, but I'm playing with a python chat server/client combo on my Linux server. Currently, if I do this: $: cd /path/to/chat/server $: sudo python ChatServer_Listen.py This starts ...