wiki:Mac

Mac

Commands

  • ldd - The ldd command is not available in Mac OS X but use otool -L to get the same information.
  • open file - file is opened with default application. Can also be used to open an application.app directory from a Mac OS X terminal.
  • open-x11 application - open x11 applications from a Mac OS X terminal.
  • pbcopy, pbpaste - provides copying and pasting to the pasteboard from command line

Compiling and installing open-source software

  • The MacPorts Project is an open-source community initiative to design an easy-to-use system for compiling, installing, and upgrading either command-line, X11 or Aqua based open-source software on the Mac OS X operating system.

Frequently asked questions (and answers)

  1. When I issue `dvips', the created postscript is sent to the printer. How to turn off this behaviour?
    There is a configuration file /opt/local/share/texmf*/dvips/config/config.ps, in which you should comment out a the last line (in example below) so you get:
    % How to print, maybe with lp instead lpr, etc. If commented-out, output
    % will go into a file by default.
    % o |lpr 
    
  2. How to get a descent emacs on my mac?
    Use Carbon emacs, which is available from Apple's open source Download. If you have an older version of OSX, there is an archive here. This will install a binary in your Applications folder. To start emacs from the terminal, you can create a small wrapper script that you place in your PATH
    #!/bin/sh
    /Applications/Emacs.app/Contents/MacOS/Emacs $@
    
  3. Where do I find å, ä, and ö on my American keyboard?
    Try alt-a(å), alt-u a(ä), and alt-u o(ö)
Last modified 6 years ago Last modified on Apr 13, 2011, 6:13:05 AM