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

0
votes
2answers
1k views

How to check terminal color capability from command line?

I write: $ infocmp -1 xterm ... colors#8, bold=\E[1m, blink=\E[5m, ... $ tput -Txterm colors && echo OK || echo err 8 OK $ tput -Txterm blink && echo OK || echo err ...
3
votes
0answers
637 views

Enabling Italics, Underline on Emacs, Xterm and Putty

I'm using a Ubuntu (11.04 Server Edition) virtual machine as my development environment. It doesn't have a desktop environment since I don't think its necessary and I want to keep it lightweight. I'm ...
0
votes
1answer
149 views

Quickest way to learn the useful terminal commands [closed]

I'm an iPhone developer but surprisingly (even to myself) I am completely unfamiliar with terminal. The only things I know how to do are cd, ls, top, kill and the git commands for setting up ...
0
votes
1answer
2k views

iTerm 2 on Mac OS X - How to get rid of all characters before the $ on each line?

I installed iTerm 2 but my shell windows show: "computer name":"current directory" "user" $ This is far too long. I'd like to just see: "current directory" $ Is there an option for this? I ...
4
votes
2answers
3k views

How to let Ctrl + Page Down switch tabs inside Vim in Terminal.app?

When running vim inside the Terminal in Ubuntu, I can use Ctrl + Page Up or Page Down to switch between the vim tabs. How do I set up this for Terminal.app or iTerm2 for Mac OS X? I have a Macbook Air ...
4
votes
1answer
2k views

tmux: sharing current window title (#T) from within nested tmux sessions

I have begun using tmux recently to really improve my terminal sessions. One thing I need to be able to do is connect to a remote server, which is also running tmux. However, I have found that the ...
1
vote
0answers
77 views

How do I set the meta key with the meta convert feature in most *nix terminals?

.Xdefaults: xterm*eightBitInput: false This command apparently allows you to use a meta key + something to enter vi editing mode in a linux terminal. But what is the meta key and how do you set the ...
1
vote
0answers
73 views

Financial and real-time market-data software for the command line

I can easily build HUDs at command prompts for stuff like the weather, my to-dos, Twitter, IRC, etcetera; but the one thing I’m always stuck going to my iPhone or browser for, constantly, is real-time ...
26
votes
1answer
3k views

What does Terminal app's “Show Alternate Screen” do? (OS X)

Today, I discovered a menu item called "Show Alternate Screen" in Terminal.app. I am just curious about what it does. It seems to be sharing the same shell process (unlike tabs), since I see output ...
0
votes
1answer
454 views

Linux clear console [duplicate]

Possible Duplicate: Bash: Reset and Clear Commands I know about Linux command clear, but it just moves previous output from visible part of terminal window (KDE Konsole). I can still scroll ...
5
votes
3answers
6k views

I can't clear the terminal in Mac OS X Lion - “terminals database is inaccessible”

UPDATE 3 - Better Solution I kept Google'ing this until I came to a different solution. I ended up downloading the terminfo directory from somewhere (I forgot where so I just posted the zip on my ...
6
votes
1answer
3k views

Redirecting Terminal.app to iTerm.app

Is it possible to redirect an app in Mac OS X to another app? If not, can you redirect Terminal.app to iTerm.app, so every app that wants to open a Terminal window, instead opens an iTerm window. ...
0
votes
1answer
410 views

issues adding print drivers (Xerox 3250, 4510, 8560) to a terminal server so I can print from it

After remoting into another company's site (using Open VPN) and connecting to a machine their end to access their Accounts databases, I realised my printers hadn't been carried over by Terminal ...
1
vote
1answer
604 views

OSX terminal stopped working?

For some reason, many command I try to execute I get command not found I've tried touch, mkdir, sudo, ln -s all the same result ilyas-mac-pro:~ ilya$ mkdir bla -bash: mkdir: command not found
2
votes
1answer
2k views

Using regular expressions in Linux with grep

I can't get this simple regular expression to work for matching emails: '\w*(?:\.\w*)*@\w*(?:\.\w*)*\w\{2,5\}' It should be working as I have tested it with regex pal and it works just fine. I ...
3
votes
2answers
1k views

Missing the first character of a line on full screen apps on Linux server ssh'ed from OS X Terminal

I am having problems with the Terminal application on Mac OS X Snow Leopard. I use ssh to connect to a remote Linux server and perform configuration file editing. For some reason, it sometimes ...
0
votes
1answer
485 views

Shell starts in incorrect directory in OS X Lion Terminal

In OS X Lion, when I launch a new tab in the Terminal with Cmd+T, the shell starts in the / directory. $ pwd /
1
vote
2answers
4k views

Can an iPhone be SSH'd without jailbreaking it?

I had my iPhone jailbroken and used MobileTerminal all the time. But I just wanted to go back to normal, and I have an app now that allows me to SSH to other computers. Is there a way to SSH to my ...
10
votes
4answers
3k views

What are the PowerShell consoles for Windows?

Linux is known for having lots of terminals and consoles that are built upon GTK, Qt, GNOME, KDE or X to run the shell (like bash). PowerShell on Windows runs with the Windows console (the same as ...
1
vote
2answers
30 views

Goes to the start of the command in screen

After running a command that spits out a lot of output in screen. I drop to Copy mode and try to find where the command start. This becomes very very challenging when there are lots of lots of similar ...
5
votes
3answers
10k views

OSX Lion terminal lost all colors

I recently upgraded to Lion only to find that Terminal.app (and iTerm2, which I actually use instead) have totally lost all colors. This means no syntax highlighting in Vim, no colored directory names ...
6
votes
5answers
7k views

Can you find out the IP SSH-ing your computer?

If computer A SSHs computer B, can computer B find the IP of computer A? If so, how?
3
votes
4answers
259 views

Deleting and recreating folders in bash

I am using the program hazel to tidy my downloads folder every time a file is downloaded. I am now telling it to run a shell script, every week, to delete every folder in my downloads folder and then ...
3
votes
1answer
1k views

Change password of encrypted disk image in OS X with Terminal

I would like a program that would exist on my flash drive that, when run, would open an encrypted disk image with a stored password then change the password to a random number store it for using it ...
7
votes
2answers
3k views

Mac OS Lion - Always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over? I imagine there's some Terminal command I can enter to adjust ...
4
votes
1answer
541 views

Parallel processing slower than sequential?

EDIT: For anyone who stumbles upon this in the future: Imagemagick uses a MP library. It's faster to use available cores if they're around, but if you have parallel jobs, it's unhelpful. Do one of ...
2
votes
1answer
934 views

how to list and kill processes accessing internet in linux

How to kill the processes accessing Internet in background using terminal commands. Command to stop (disconnect) the processes accessing Internet. Command to kill the process accessing Internet.
0
votes
0answers
527 views

Parallel port (LPT) file transfer software

I am looking for (preferably freeware/opensource) Windows (XP/Vista) based application which allows files to be transferred across two computers through their parallel ports, something like ...
2
votes
1answer
103 views

What is the opposite of this terminal keyboard action?

Open terminal > preferences > keyboard I have control cursor right as \005. I like it! When inside Vim, it moves the page down 1 line while keeping my cursor unmoved. Try it. My question is: how ...
1
vote
1answer
2k views

How to specify directory for apt-get to save the packages

is there any way to specify the destination directory for each download in apt -get command to save all the downloaded packages in a custom directory instead of archive directory for offline use. If ...
3
votes
5answers
4k views

Terminal in OS X Lion: can't write åäö on remote machine

Can't type åäö on the command line when ssh'ing to a Debian machine. It works locally though. Changing 'Declare terminal as' to 'xterm-color' doesn't seem to help, either.
9
votes
6answers
15k views

How to open a clean terminal in Mac OS X Lion?

Whenever I open a terminal, the last used commands appear. I'd like to get a clean terminal when I open it, but I haven't found how to do it. For example if while using the terminal I do: defaults ...
2
votes
1answer
1k views

launch application from osx terminal in 32bit mode

How can I pass an argument to the "open" command to launch an application from the terminal in 32-bit mode? open /path/to/some.app [--args arguments] I have to manually check and uncheck the ...
6
votes
3answers
563 views

How to delete entire system using Terminal

How can I delete my entire system using terminal? I know that the beginning is rm, but then what?
3
votes
1answer
517 views

Console.app alternative for Terminal

Is there a neater way to follow console messages in Terminal rather than tail -f tons of logs?
-1
votes
1answer
486 views

Deleting content in swap space and emptying cache using terminal in linux

Wish a script which would delete cache content and remove additional files which have been downloaded via the internet and saved voluntarily by the user and files any thing other than those used by ...
5
votes
3answers
6k views

How to prevent the “Symbol's function definition is void: error” when running emacs in the console?

To disable the scrollbar in emacs I added (toggle-scroll-bar -1) to the my .emacs file and it works great when I run emacs outside of console mode. However when I run emacs in the terminal I get the ...
12
votes
1answer
11k views

How do I use Split in the Mac OS X Terminal to split files directly to another directory?

How do I use the OS X Terminal command split to split a file into several pieces, and store them in a different folder, on a different drive? The reason is that I need to move files to a FAT32 ...
3
votes
2answers
3k views

How to set a theme as default in terminal

While I'm sure I need to use defaults write com.apple.Terminal to do this, I'm not sure how to use a terminal theme file like IR_Black.terminal and set it to the default theme for a user. Basically, ...
5
votes
2answers
2k views

How can I update cygwin shell environment variables set in System Properties window

Suppose I go into the System Properties window and add an environment variable to the Path. If I have a terminal window open, it will be unaware of the change, so I close it and open another one. Is ...
1
vote
0answers
43 views

Gem procress as Terminal title

I run Snow Leopard and I use the Terminal for Rails development. If you do web development, you would realize that regardless of the gems being run, your terminal name switches from bash to ruby. ...
1
vote
0answers
586 views

Command prompt hangs until keypress?

Problem: For some reason once in a while my command prompt would hang until I press a random key, and it would continue operation as if nothing happened. Occurrence: This happens when I am running ...
0
votes
1answer
2k views

Terminal: change to admin user

Right now I am logged in to Terminal as a standard user, is there a way to sudo as the admin user?
2
votes
2answers
1k views

Mac OSX shell will not change [closed]

I'm trying to get ZSH as my default shell, I've installed using the installer from the oh-my-zsh project and it all installs fine, but I cannot change it to be the default shell: When I echo $SHELL ...
1
vote
1answer
243 views

Access Terminal from OSX 10.4 install disk to replace corrupted libSystem.dylib

Ive corrupted the libsystem.b.dylib on my PPC mac running 10.4 and i have the install disk. i know its corrupt because i was the one who corrupted it (long story stinging from GCC errors...) anyway i ...
0
votes
2answers
652 views

No Commands are working on Mac OS X Terminal

When I run terminal using the icon on my desktop, I get this error: -bash: export: ...
19
votes
1answer
8k views

Use terminal scrollbar with tmux

I know how to scroll in tmux using the keyboard, but I noticed that it looks like there's a way to use the terminal scrollbar with GNU Screen. Can this be done with tmux?
48
votes
4answers
16k views

less is more? Is more less? I'm so confused

When I first heard their names, I got really confused when I tried to guess what these tools might do, I thought I'd misheard something. What's the difference between more and less, i.e. why ...
0
votes
1answer
554 views

Locate sql file in my computer to upload to remote database using mysql commands?

In a Mac I open the Terminal and type this command to connect to a remote database: /Applications/MAMP/Library/bin/mysql -h hostDb -u userDb -p nameDb I get the connection and then I need to add a ...
3
votes
1answer
305 views

Assign control-slash to undo in Terminal.app

I'd like to have the standard Emacs key binding \C-/ for undo in zsh as well. However on Mac using Terminal.app, this keybinding doesn't seem to be transmitted. It will just beep, and cat/read doesn't ...