Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 10065

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.

21 votes

OS X Terminal "must have" utilities

Inconsolata-dz (Free) This is a slight modification of the original Inconsolata. It is a fantastic monospaced font for use with Terminal.app, TextMate, MacVim and anywhere else you need one. A must ha …
Community's user avatar
  • 1
1 vote

How to wake the screen from terminal?

That sounds like your Mac is actually sleeping (suspend-to-ram) and not just turning it's screen off. If the screen was just turned off, simulated mouse/keyboard input from Synergy should wake it back …
Ingmar Hupp's user avatar
  • 3,574
1 vote

How can I switch terminal settings using a keyboard shortcut?

You can do this via Terminal's AppleScript interface, for example to set the background colour of the first tab in the first window to green: tell application "Terminal" set tabsettings to current … There are a few crazy AppleScripts out there that adjust the background opacity by emulating keypresses to Terminal, but that approach is too horrible to even link to. …
Community's user avatar
  • 1
1 vote

Simple File Transfer Logs

Have a look at iosnoop or possibly fs_usage. Although what you want isn't easy to accomplish without major filtering, because "file transfers" can be a lot of different things at syscall level: mv o …
Ingmar Hupp's user avatar
  • 3,574
6 votes
Accepted

Show text in large type on the screen via terminal

Since you already have QuickSilver installed: osascript -e 'tell application "Quicksilver" to show large type "your text here"' You can use this to define a bash function (and put somewhere like ~/ …
Lorin Hochstein's user avatar
10 votes
Accepted

Where is nmblookup in Lion?

On OS X 10.7 (Lion): smbutil lookup <hostname> Example: $ smbutil lookup NAS1 Got response from 10.21.0.133 IP address of NAS1: 10.21.0.133
Ingmar Hupp's user avatar
  • 3,574
3 votes

How to recover .profile on Mac OS?

Show hidden files in Finder. Then you can either fix the problem in TextEdit, or simply remove/rename the file. There is no default ~/.profile on Mac OS X, only a global /etc/profile (and you may also …
Ingmar Hupp's user avatar
  • 3,574
18 votes

How do I make symbolic links invisible in the Finder?

To hide: chflags -h hidden <symlink> To show again: chflags -h nohidden <symlink>
Ingmar Hupp's user avatar
  • 3,574
3 votes
Accepted

Details of the proxy address which is being used by Mac

Either get ProxyConf, which does exactly this. Or retrieve the web proxy with networksetup -getwebproxy Ethernet (replace Ethernet with the one you're using from networksetup -listallnetworkservices) …
Ingmar Hupp's user avatar
  • 3,574
16 votes

OS X Terminal "must have" utilities

MTR (Free) by BitWizard - combines ping and traceroute Installation: brew install mtr --no-gtk Packets Pings Host …
Community's user avatar
  • 1
3 votes

Lion Terminal remembers sudo password after quitting

By default, sudo retains authentication state for 5 minutes (this is not new to Lion). This default timeout can be controlled with the timestamp_timeout setting in /etc/sudoers (use visudo to edit). S …
Ingmar Hupp's user avatar
  • 3,574
5 votes
Accepted

How do I delete a locked, invisible file in the Trash?

The file could simply still be open by something. Use lsof <file> to see which process is hogging it, if any. Otherwise sudo rm -rf /.Trashes/501/Users/myusername/Desktop should get rid of it If that …
Ingmar Hupp's user avatar
  • 3,574
1 vote
Accepted

show battery in prompt and have it update after every command

The above script is so terribly written it brings tears to my eyes. Considering you're running it on every prompt, you may not want to fork so much. Awk can do all of the above in one line: ioreg - …
Ingmar Hupp's user avatar
  • 3,574
1 vote

How do I get the Mac Terminal to show the gray font color

On Snow Leopard you can install the TerminalColours plugin, which lets you modify the default colours. On Lion you get a thoroughly updated Terminal.app that lets you do this out of the box and also …
Ingmar Hupp's user avatar
  • 3,574
0 votes

How do I get Terminal to remember previous commands after closing window in SL 10.6.8?

This is controlled globally by enabling System Preferences -> General -> Restore windows when quitting and re-opening apps.
Ingmar Hupp's user avatar
  • 3,574