Questions tagged [terminal]

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.

Filter by
Sorted by
Tagged with
86 votes
4 answers
134k 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
Codebeef's user avatar
  • 1,449
65 votes
5 answers
83k 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 ...
Thomas Vander Stichele's user avatar
59 votes
1 answer
4k 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 machine,...
Zulakis's user avatar
  • 4,173
58 votes
1 answer
18k 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 rectangle?
Unknown's user avatar
  • 1,341
45 votes
5 answers
5k 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.
user342580's user avatar
43 votes
5 answers
24k 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: ...
user9474's user avatar
  • 2,468
36 votes
1 answer
4k views

Recover a running script from a terminal session

So I'm using GNU Screen to manage multiple running scripts/programs. The multiplexing & detachability is quite helpful. I removed a script from disk and now I'm having some trouble finding the ...
Fdo's user avatar
  • 463
35 votes
5 answers
29k 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* ...
user avatar
33 votes
5 answers
29k 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 the ...
Dan Loewenherz's user avatar
31 votes
5 answers
11k 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) ...
jdorfman's user avatar
  • 413
29 votes
3 answers
93k views

How to start qemu directly in the console (*not* in curses or SDL)

I seem to recall being able to start qemu with only the terminal emulator output, with the graphic window disabled. And here I don't mean with the ncurses interface, that one is nice, but I want the ...
anarcat's user avatar
  • 782
27 votes
6 answers
102k views

A better "top" command for Mac OS X? [closed]

The top command on OS X is pretty crappy.. The one included with most Linux distros allows you to change the sort-by column using < and >, there is a coloured mode (by pressing the z key), and a ...
dbr's user avatar
  • 1,568
25 votes
2 answers
4k views

Why does password entering work in a piped sudo command?

If I do: sudo cat /etc/resolv.conf | less It will prompt me for the password, even though less (presumably) takes stdin. Over what fd's is the password prompt shown and how does it get the input ...
Karel's user avatar
  • 639
25 votes
7 answers
3k views

How can I keep the content I was reading from man after I quit?

So we use man whatever to get usage and other info regarding the whatever command, when the relevant section of info is found, I'd like to quit the man command with the info left on screen. So I can ...
NathaneilCapital's user avatar
24 votes
8 answers
33k 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?
Whatsit's user avatar
  • 465
21 votes
3 answers
39k 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 ...
Sparr's user avatar
  • 780
20 votes
2 answers
5k 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 ...
radman's user avatar
  • 1,691
19 votes
12 answers
53k 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 ...
Jamison's user avatar
  • 299
19 votes
7 answers
27k 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 ...
geerlingguy's user avatar
  • 1,357
18 votes
14 answers
7k 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 ...
Mike Pennington's user avatar
17 votes
5 answers
8k 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 I'...
FMaz008's user avatar
  • 429
16 votes
41 answers
3k views

Poll: What is your favourite terminal program? [closed]

What is your favourite terminal program? Are you a xterm traditionalist or an eterm fanboy? Do you stick with what comes with your windowing environment: gnome-terminal, konsole, cmd.exe or terminal....
16 votes
3 answers
39k 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 ...
Mikey T.K.'s user avatar
  • 1,417
15 votes
6 answers
22k 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 ...
user avatar
14 votes
6 answers
21k views

How to find out the virtualization type of an linux VPS?

Having access to an VPS, i need to know which type of virtualization it is running from the terminal. How can determine the virtualization platform that my VM is running on? (OpenVZ, Xen, KVM, etc?)
Samuel G. P.'s user avatar
14 votes
5 answers
18k views

List supported terminal types?

Is there a portable way to list supported terminal types on all NX systems? If not, what's the best way to get this list on Solaris?
pra's user avatar
  • 622
14 votes
1 answer
9k views

OS X Terminal lines don't go into scrollback

I have a problem that crops up when using Mac OS X's Terminal (TERM=xterm): sometimes it gets itself into a state where lines that scroll off the top are not added to the scrollback buffer. I'm not ...
Steve Madsen's user avatar
14 votes
7 answers
26k views

Has anyone found a (eg bash) shell terminal for Windows as good as the OS X one?

I am mostly using 'git-bash' which came with the Windows install of Git vcs. I think it is the same one that comes with Cygwin. It works fine technically but the UI sucks: have to right-click the ...
Anentropic's user avatar
14 votes
4 answers
11k 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 ...
pehrs's user avatar
  • 8,829
13 votes
6 answers
56k views

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

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 scroll ...
Max's user avatar
  • 465
13 votes
5 answers
105k views

Fortinet SSL VPN Client Setup Without GUI on Linux (centos)

How can I install and setup a fortinet SSL VPN client on a VPS that's running on Centos? I have problem to do it because all guide I have are all using GUI which is not installed on the VPS to save ...
Calua's user avatar
  • 131
13 votes
3 answers
31k 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) 2011/02/...
TechRemarker's user avatar
13 votes
4 answers
20k 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 ...
user avatar
13 votes
4 answers
5k 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 ...
Murali Suriar's user avatar
13 votes
1 answer
1k 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?
Adam's user avatar
  • 349
13 votes
4 answers
17k 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 shift-...
Brent 's user avatar
  • 23k
12 votes
3 answers
14k 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 ...
Ben Everard's user avatar
11 votes
3 answers
23k views

Can I recover a nano process from a previous terminal?

My system crashed while I was in a nano session with unsaved changes. When I log back in via SSH I see the nano process still running when I do a ps. davidparks21@devdb1:/opt/frugg_batch$ ps -ef | ...
davidparks21's user avatar
11 votes
4 answers
4k 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 ...
bryan kennedy's user avatar
10 votes
3 answers
9k views

SSH connection - after some time I can't type anything

This keeps hapenning on which ever server I am connected to. I type: ssh user@server I log in, everything works for a couple of minutes. But after some time, possibly when I switch to other ...
Томица Кораћ's user avatar
9 votes
3 answers
26k views

What is the export command supposed to do in Linux?

What is the export command supposed to do in Linux?
benstpierre's user avatar
9 votes
1 answer
14k 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 ...
Brian's user avatar
  • 341
9 votes
3 answers
4k 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 ...
Giovanni Bajo's user avatar
8 votes
6 answers
6k views

How can I watch a terminal window remotely?

I left the office earlier with an active terminal window running a script on a Centos 7 server. Now I've SSHing in from home and I want to see where it's got to. Is this possible? Can I rejoin the ...
it's a hire car baby's user avatar
8 votes
3 answers
15k views

create zip based on contents of a file list

I created a file with diff files diff-files.txt it has 6000+ file paths in it. Now I want want to create a zip based on those files. I know I can zip multiple files with: zip diffedfiles.zip file1 ...
janw's user avatar
  • 272
8 votes
5 answers
3k 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?
user avatar
8 votes
4 answers
17k 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 ...
user209051's user avatar
7 votes
4 answers
24k views

mysql not to print selects output to terminal

Quick question: I have created come commands that will warm-up my DB. The thing is that those selects are large. When I do such a select I get all the "jiba-jaba" into my terminal window. How can you ...
Katafalkas's user avatar
7 votes
3 answers
43k views

Changing terminal colors in Ubuntu Server [closed]

I'd like to change the colors. The lime green hilighting on pale blue colored file names is killing my eyes. I'm not sure if I'm using xterm or gnome or whatever, but I would like to change the ...
Josh K's user avatar
  • 454
7 votes
1 answer
2k 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 password-...
larsks's user avatar
  • 43.9k

1
2 3 4 5
9