A terminal is a hardware device used for entering data into and displaying information from a computer. Terminals were frequently used in the days of mainframe computers. Today, most operating systems offer text-based "terminal emulators", which replicate the functionality of a classical terminal, ...

learn more… | top users | synonyms

2
votes
2answers
530 views

script command having odd effects when resizing terminal window

A little while ago I decided to log all my terminal activities by adding script -t 0 "/Users/XXXXXXX/terminalLogs/log0$(date '+%y-%m-%d-%H:%M').txt" to my .bash_profile file. This worked ...
3
votes
2answers
1k views

How to set the title of the tab in Terminal.app to the remote server I'm logged in to

I use one Mac to do work on several others. What I'd like to do is find a way to programmatically set the title of a Terminal.app tab to the name of the server I'm ssh-ed into, so I can determine at ...
3
votes
1answer
122 views

terminal - all files that have not been edited today

I edit a bunch of txt files with the line vim *.txt but what I'd really like to do is edit all the files that haven't been modified in the last day (or n days, or n hours) - what's the most ...
1
vote
1answer
211 views

Keep your terminal's PS1 over SSH [duplicate]

Possible Duplicate: Pushing my PS1 prompt over ssh I like to have the username cyan and the host red in my laptop and server machine's PS1 like so: The problem is, when I install a new ...
3
votes
4answers
3k views

Ctrl-C and Ctrl-Z not working in terminal

I setup a virtual pentest lab on my Mac. When I am using lanmap2, every time I try to stop it with Ctrl+Z it just types ^Z, but if I type Ctrl+C, the entire terminal window closes. Are there any ...
2
votes
1answer
691 views

How to make Emacs use a different color palette for ansi-term?

I'm using Emacs' ansi-term which supports colors, but the color palette is quite limited, and the strong colors are really hard to read with a dark background. Can I somehow make Emacs use a ...
2
votes
2answers
3k views

/.ssh/known_hosts file does not exist? (Mac)

I am trying to connect to a server via SSH in Terminal. I am able to connect to the server but during the process it asks me "Are you sure you want to continue connecting (yes/no)?" I type "yes" I ...
1
vote
2answers
606 views

Why does OS X Lion's terminal treat the PS1 prompt codes differently than Snow Leopard?

I get different behaviors in terminal with the same prompt definition in Snow Leopard and Lion. On my Snow Leopard system, I define my terminal prompt in .profile as follows: export ...
0
votes
0answers
758 views

How to create keyboard shortcut for Terminal's “New Terminal/Tab” submenus?

I'm trying to create a keyboard shortcut for the Dev1 menu: What should I put in the shortcut preferences? I've tried: Dev1 New Tab>Dev1 >New Tab>Dev1 Shell>New Tab>Dev1 ...
1
vote
2answers
315 views

List all files in a directory matching a string and copy output

I'm trying to create a series of playlists on my MP3 player, running Rockbox, by finding a file matching a string, using find /cygdrive/g/MUSIC -type f -name "Search Criteria" | ...
1
vote
1answer
37 views

Terminal lettering randomly bunches up and has spaces

As you can see, it looks messed up. How can I fix it?
1
vote
2answers
2k views

Load RVM environment in Screen and ZSH

This topic has been driving me nuts for a while now, and I'd like to be able to figure out what's going wrong. I use zsh with screen in my terminal, and have been for a while. However, for whatever ...
0
votes
4answers
884 views

Blacklisting pcspkr module doesn't work on CentOS 5.7

I hate the terminal beep and I want it removed completely. I added this line to my /etc/modproble.d/blacklist.conf file: blacklist pcspkr However when I reboot the lsmod output shows it loaded: ...
3
votes
1answer
1k views

How can I get Terminal to repaint the contents when I resize the terminal?

A default terminal width might be 80 characters, however the output of a command might have been 100 characters (wider than the width of the terminal), so it spills over and puts 80 characters on one ...
0
votes
1answer
81 views

Can I make different tabs of (gnome) Terminal have different profiles?

I've seen that it's easy to have the terminal set up so it opens up my tabs as I wan't to have them, but is it possible to have a different profile attached to each of those tabs? I was happily ...
1
vote
1answer
156 views

Why does my terminal have funny characters for the date field? Looks like Russian?

Strangely my terminal has funny characters in the date area that look like Russian. Does anyone know why it displays these characters? (I'm running Mac OS X Lion)
1
vote
1answer
864 views

Rename a printer for LP and LPSTAT

I have a printer named "Home" set up in Mac OS X Lion: However, when I use lpstat -a on the command line (to get the printer name to use with the lp command) I still get a non-user-friendly name: ...
2
votes
1answer
321 views

Using Ctrl-<ArrowKey> and Home/End with (u)rxvt

I'm using rxvt-unicode for it's the less flawed terminal emulator I know. I'm looking for using Ctrl + Arrow keys and Home / End to navigate through command line text, to emulate the behavior of all ...
3
votes
3answers
226 views

Bulk renaming files [duplicate]

Possible Duplicate: How can I mass rename files from the command line or using a 3rd party tool? So I have a series of files with the following format Their real file name followed by the ...
0
votes
1answer
311 views

Change font of the virtual terminal in Fedora

Typically, I can change the terminal's font via Edit->Preference->General and pick a font. But my problem is, the fonts available in the Preference->General is too limited, the font that I ...
1
vote
1answer
4k views

Can't cd to Desktop folder Mac commandline

I am using OSX Lion and every time I tried to cd to my Desktop folder using "cd ~" and cd "Desktop" it stays in my home directory instead of going to Desktop. I've tried to perform the commands using ...
1
vote
1answer
5k views

Is tab completion in terminal on OSX directory-sensitive?

Why does tab completion only work some of the time in OS X terminal? e.g. cd docuTab For example, when I'm at /Users/ it works fine. But when I'm at ~/ it doesn't work at all. Once inside ...
4
votes
2answers
15k views

Close SSH connection

I'm using Mac's Terminal App and I know how to connect to an external server via ssh (ssh -l username domain.com). But how do I close the connection once I'm done? Thanks.
1
vote
0answers
157 views

Running terminal commands from Chrome's Omnibar

I would like to use Google Chrome's Omnibar to execute terminal commands. Is there any way to do that? Edit: I found that I could add a custom search engine as "terminal://%s". However, there seems ...
4
votes
1answer
1k views

How to get different terminals for dual monitor scheme without X

I have Ubuntu installed without X.org with two monitors(single card: vga and dvi) Login shell is cloned for both monitors. I there any way to have different shells(tty) for these monitors?
-2
votes
0answers
50 views

Create an executable from a shell script in OS X [duplicate]

Possible Duplicate: Can I create a configuration file for a shell script? I need to create an executable from shell (.command) in OS X, with parameters. Example: backup -s1 -s1 is ...
5
votes
2answers
892 views

How to reclaim ^S in zsh?

I've found ^S mapped to be the fwd-search key for zsh (ohmyzsh) but I would like to use it in vim for various mappings as well - it seems like the zsh mapping is preventing me from using it now. Any ...
1
vote
1answer
2k views

Using rsync to synchronise folders without overwriting files of same name on Mac OS X

I would like to synchronise the contents of two directories. Without overwriting but to create a copy if two files have the same name, but different sizes Without duplicating if two files have the ...
2
votes
2answers
234 views

How do I use non-latin alphabet characters in a framebuffer console?

How do you guys use Linux when you have lots of files with non-Latin alphabets, or even Chinese/Japanese? I don't have a problem with Windows, because I do everything in the GUI (it's hard not to), ...
1
vote
1answer
587 views

SSH download file from web server

I need to do a backup on a website, but I need to download locally to a folder on my hard drive. Example: scp name.zip -> MyMac/Documents/Backup This can be done via shell, Terminal, etc. What ...
1
vote
2answers
528 views

Fedora 16 terminal delay on bad command

Is it possible to get of the (~3s) delay one gets when typing a bad command in Fedora 16? My friend keeps changing the key map but the delay is even more annoying.
0
votes
1answer
74 views

Clear a line in the terminal

I sometimes start writing a command in the terminal (iTerm2) which half-way written I want to erase. How can quickly remove all the characters on the line being worked on in the terminal?
11
votes
3answers
34k views

How do I partition and mount a 3TB Hard Disk using the terminal?

I have a 3TB Hard disk which I wish to mount as a single partition under Ubuntu 11.10 server Because it is over 2TB I know there are some issues with this. I'm unsure of what I need to do to make ...
1
vote
2answers
1k views

Arch Linux: colors from terminal in bash script?

In addition to ArchLinux - yaourt: save updatelog? With tee I am able to get the output at a file and at the terminal at the same time. But when I execute yaourt -Syu | tee yaourt.log in a bash file ...
0
votes
1answer
207 views

Colour-code terminal windows by host

I regularly work on different hosts using ssh, and I sometimes get confused about which computer I'm running commands on. I've occasionally come close to issuing halt(8) commands to the wrong host. ...
4
votes
2answers
2k views

How do you move to the next or previous word in a Terminal in Mac OS?

I usually use Linux, no expert at all (very far from it) but I use it daily. Sometimes I find myself using (someone else's) Mac and typing commands into a Terminal. In Linux, I can use Ctrl+Left and ...
6
votes
4answers
11k views

How do I write code of more than 1 line in the Python interpreter?

I have a problem coding Python in terminal. I'm just learning basics so I have no need to create .py files. In terminal I can run one line of code in the Python interpreter, but how do I write more ...
1
vote
2answers
5k views

Running MATLAB from Mac OSX terminal

I'd love to run matlab from the terminal on my Macbook (running Lion), forgoing the standalone matlab interface. All the information I've found online suggests that the command is simply something ...
2
votes
1answer
421 views

“Large Type” function from OS X command line

Is there a way to call this function: 'Large Type' in Mac like in Address Book application from the command line?
1
vote
2answers
434 views

How do I work with an untypeable keyboard character?

I am in the process of making a bash script to scrape a weather.com to get the weather report. I need to process a line of text that has an unusual character. Here is the text: 30°FHigh 35°High ...
0
votes
2answers
317 views

How do I input Terminal commands when running a rails server?

I just started using Rails a few days ago, and I'm having trouble with terminal commands. The textbook I am reading keeps telling me to run Terminal commands while having a Rails server running. This ...
2
votes
1answer
532 views

Is it possible to change linux terminal color whenever I am connected (ssh) to another machine

I would like to have my terminal colors changed whenever I am connected (through ssh) to another linux machine. This way, I know that I am putting commands in a remote computer just by looking at ...
1
vote
1answer
423 views

Copying files across computers in different networks using scp Mac Lion

I forgot how to do this and I found this other StackOverflow post about it but now I'm getting this error: ssh: connect to host xx.xx.xx.xx port 22: Permission denied lost connection I am ...
1
vote
2answers
527 views

Script for toggling OS X “Show Hidden Files” in Terminal

Is there a way to toggle the hidden files visibility on/off with a terminal script? In pseudocode: if can view hidden files set com.apple.Finder AppleShowAllFiles false else set ...
13
votes
3answers
4k views

Is it possible to view images in a terminal?

I have ssh access to my web server. I have some image files there and I would like to see a preview of. Is there a tool that will help me? Is there a curses-based viewer that will approximate the ...
1
vote
2answers
5k views

Use tar and gz to create archive in Ubuntu Terminal

I want to archive 3 folders, given their names in Ubuntu command prompt. When I use tar -c abc tt zz -> it will do nothing.
1
vote
0answers
224 views

Creating a shortcut in launcher to run a terminal command with more than one parameter as argument

How do you create a shortcut in launcher that lets you run a terminal command using more than one variable? For example, how do you create a launcher shortcut that will prompt you for varA and varB ...
0
votes
1answer
154 views

How to reconnect a screen session every time terminal is fired?

I wrote this command to reconnect an active screen session when Terminator is opened. It works find but there has got to be a better way to to it This is goes in the Terminator config file (note ...
0
votes
1answer
417 views

How do I set up Debian 6.0.3 to work with serial terminal?

My problem is that most guides on the Internet I've found explain how to enable serial terminal on GRUB 1 and it appears that they moved to GRUB 2 on Debian. I'm running Debian inside VMware and have ...
2
votes
1answer
1k views

OS X Terminal Ignoring SOCKS Proxy Setup

Previously I've used an SSH tunnel: ssh -D 1234 user@remoteHost As a system wide proxy in OS X by going to System Preferences -> Network -> Advanced -> Proxies -> Tick SOCKS Proxy and enter ...