Questions tagged [terminal]

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, also referred to as a "system console".

Related Tags

Additional Info

  • Terminals are also commonly referred to as a CLI (Command Line Interface).
4833 questions
387
votes
21 answers

How do I detach a process from Terminal, entirely?

I use Tilda (drop-down terminal) on Ubuntu as my "command central" - pretty much the way others might use GNOME Do, Quicksilver or Launchy. However, I'm struggling with how to completely detach a process (e.g. Firefox) from the terminal it's been…
AnC
290
votes
10 answers

How do I find a file by filename in Mac OSX terminal?

I want to find a file on my Macbook with the filename: abc.dmg. I've tried to use spotlight, but it doesn't find it. When I tried find, and used: find -name abc.dmg -path /, I got errors back. What is the proper syntax to find a file by filename…
SPRBRN
  • 7,384
  • 14
  • 61
  • 90
263
votes
9 answers

In vim, how can I quickly switch between tabs?

In gnome-terminal, I can just press Alt + (1, 2, 3, etc.) to switch to specific tabs. I can also use Ctrl + (PgUp / PgDn) to cycle through tabs (admittedly less convenient, but it can be remapped). If I want to use vim tabs instead of gnome-terminal…
Matthew
  • 14,496
  • 18
  • 73
  • 119
252
votes
8 answers

Way to avoid ssh connection timeout & freezing of GNOME Terminal

When I connect via ssh to certain servers, it timeouts and "freezes" the terminal (doesn't accept input, doesn't disconnect, can't Ctrl-C to kill the ssh process or anything). This is in Ubuntu's gnome-terminal though it seems to be pausing the…
Kzqai
  • 2,858
  • 3
  • 20
  • 16
252
votes
5 answers

How to find files with certain text in the Terminal

I'd like to find all files that contain a certain string of text. How would you do that in the Terminal?
Svish
  • 38,310
  • 61
  • 136
  • 181
230
votes
6 answers

What is the difference between shell, console, and terminal?

I'm confused with the terminology. What is the difference between shell, console, and terminal?
claws
  • 4,229
  • 15
  • 46
  • 62
209
votes
17 answers

With Bash + iTerm2, how to name tabs?

In iTerm2 (Build 1.0.0.20120203), I typically open several tabs, each of which has split panes , and is about one particular theme of work, for example revision control, coding, managing files, mysql terminal work. I typically need to switch…
qazwsx
  • 8,599
  • 24
  • 58
  • 86
194
votes
10 answers

List the current folder folder's sizes with the terminal?

I want a list of the folders from the current directory or one that I specify with their size. I have tried with du but I only get the size of the directories I specify (du . ./f1), and ls doesn't show the size of the folders. How do I do this…
kevin
  • 2,184
  • 2
  • 14
  • 12
192
votes
8 answers

Why does terminal say: "You have mail"?

Any idea why my Mac terminal says: You have mail in /var/mail/lofye How can I make it stop saying that every time I open terminal?
lo_fye
  • 2,261
  • 3
  • 15
  • 10
174
votes
5 answers

How to find out Mac OS X version from Terminal?

I know how to find Mac OS X version from GUI: Apple Menu (top left) > About This Mac Is there a Terminal command that will tell me Mac OS X version?
Željko Filipin
  • 4,717
  • 11
  • 35
  • 40
172
votes
6 answers

How to close a tmux session

I am using tmux to manage multiple terminal windows. Currently I have 2 windows open with multiple panes. I know that I have to use the prefix (for me it is ctrl+a) to enter commands. How can I close the session from inside of tmux? What command…
ph3nx
  • 1,823
  • 2
  • 12
  • 6
153
votes
4 answers

which/whereis differences

What's the difference between which and whereis ?
mk12
  • 3,132
  • 5
  • 29
  • 34
150
votes
5 answers

Where is the .zshrc file on Mac?

I’m using iTerm and wanted to customize the look of my terminal window using Oh My ZSH!. And according to the documentation I need to change the ~/.zshrc file and add a ZSH_THEME value: Once you find a theme that you want to use, you will need to…
Leon Gaban
  • 2,425
  • 9
  • 30
  • 35
136
votes
10 answers

Keyboard shortcut to jump between tabs on OS X Terminal

In OS X Terminal.app, if you open new windows, you can easily switch between them with Cmd-1, Cmd-2, Cmd-3, etc. You can also cycle between tabs, using Cmd-Shift-{ and Cmd-Shift-}. (or Cmd-Shift-Left and Cmd-Shift-Right) But is there a way to jump…
Dan Fabulich
  • 2,917
  • 5
  • 27
  • 17
126
votes
12 answers

How to force GPG to use console-mode pinentry to prompt for passwords?

Using gpg from a console-based environment such as ssh sessions fails because the GTK pinentry dialog cannot be shown in a SSH session. I tried unset DISPLAY but it did not help. The GPG command line options do not include a switch for forcing the…
ccpizza
  • 7,456
  • 6
  • 54
  • 56
1
2 3
99 100