Questions tagged [terminal]

Questions about the Terminal application or its terminal emulation should use this tag. Use command-line for questions about shells or command-line programs that do not specifically involve Terminal.

Terminal.app icon

Apple's Terminal application (sometimes spelled “Terminal.app”) lets the user interact with their shell and other command-line programs. General shell and command-line related questions should use and optionally the specific shell if that's relevant to the post in question.

6489 questions
144
votes
15 answers

Is there an OS X terminal program that can access serial ports?

What programs can act as a terminal and access serial ports? This is not for terminal access on an IP connection, this is so I can access a hardware device plugged into a USB/serial converter running at 9600/8/N/1.
123
votes
7 answers

How to cd to a directory with a name containing spaces in bash?

I tried cd "~/Library/Application Support/" -bash: cd: ~/Library/Application Support/: No such file or directory also cd ~/Library/Application Support/ -bash: cd: ~/Library/Application Support/: No such file or directory
colinfang
  • 1,437
103
votes
6 answers

reattach terminal tab to another window

Suppose you have a terminal with two tabs. You click, drag, and let go one of these tabs and it becomes an independent terminal window. After a while, you want to take this terminal window and reattach it as a tab to the previous window. How do you…
69
votes
5 answers

Prevent Mac Terminal from reverting to default theme

I can't find any way to change the Terminal theme and have that theme applied permanently. I want to change to another darker theme other than the default 'basic' theme, and (most importantly) have it remain as the theme every time I open Terminal.
Andy
  • 920
57
votes
5 answers

Can a Terminal window be resized with a Terminal command?

So that I could resize the window to a certain size from within Terminal.
54
votes
4 answers

How do split panes in Terminal work?

I tried to open a split pane to run another command but instead it displays the same in both panes and I can only interact with one of them. I thought it would split the view so I could use the two panes independently like two windows. I have the…
Kostas
  • 774
45
votes
10 answers

How can I quickly navigate through man pages in the Terminal

Is there any way to quickly scroll through text-heavy output in Terminal such as man pages ? Using the up and down arrows only move the screen one line at a time; is there any way to scroll faster?
JFW
  • 4,574
45
votes
4 answers

Will Terminal show a progress bar when I copy with "cp"?

Is is possible to display a progress bar when copying files in Terminal using cp?
daviesgeek
  • 38,901
  • 52
  • 159
  • 203
40
votes
4 answers

How to prevent Terminal from resizing when font size is changed

10.8.3/Terminal 2.3. Terminal resizes the entire window in seemingly unpredictable ways whenever I change the size of the font -- a frequent operation when frequently going between laptop and external displays. Is there some way to prevent this? …
jordanpg
  • 405
36
votes
4 answers

How do I open a new Terminal window in the same directory as the current window

When I have a Terminal window open, ⌘N opens a new one. Is there any way to get the current directory in the new window to automatically be the same as it was on the window where I pressed ⌘N?
Bemmu
  • 495
35
votes
2 answers

How to prevent Terminal.app from displaying a tab bar when there is only one tab open

The image below is the header that appears when I open Terminal.app. As you can see, only one tab is open, but a tab bar still shows (just has one tab that says "bash"). How can I prevent the tab bar from showing unless there are >= 2 tabs? It…
Kvass
  • 471
  • 4
  • 6
31
votes
3 answers

In Terminal, how to erase typed command quickly?

In Terminal, let's say I type a long command, but before I press Enter, I decide that actually I don't want to run this command, and want to run another new command instead. In such case, how to quickly remove everything I have typed, so that I can…
30
votes
1 answer

How do I find the sha256 hash of text on a Mac?

I found tutorials on how to find the sha256 hash of files, but cannot seem to find one on simple text (not a text file). Does anyone know how to do that?
zerosofthezeta
  • 402
  • 1
  • 4
  • 8
25
votes
8 answers

Is there a way to make pasting into Terminal safe?

I paste filenames/etc into Terminal all the time, and occasionally the contents of the clipboard isn't what I expect. Often the result is several hundred lines of text (eg, source code) pasted into the command prompt, triggering god only knows what…
Abhi Beckert
  • 2,610
22
votes
3 answers

How can I get the Terminal to keep a separate history per tab/window?

When I restart my Mac it quits and saves the buffers for each tab properly, since it's there again when the computer starts back up. But the command history is not buffered properly per window/tab. They're all the same buffer. I'm assuming it's…
1
2 3
19 20