Skip to main content

Home/ The Apple Group/ Group items tagged command line

Rss Feed Group items tagged

Robert Ogden

Install software updates from the command line - 0 views

  •  
    To install software updates from the command line, you'll use the aptly named 'softwareupdate' command. Here are the most relevant usages of the command for most users: softwareupdate -l will give you a list of all updates available softwareupdate -i [package name] will install the specified package softwareupdate -i -a will install all updates available softwareupdate -i -r will install only the recommended updates softwareupdate --ignore [package name] will ignore specified update softwareupdate --help for more info on the softwareupdate command You'll likely need to use the sudo command to actually install the updates on a Mac, simply place sudo in front of one of the above commands to run it with full permissions as root. For example: sudo softwareupdate -i -r
Jeff Johnson

airport - the Little Known Command Line Wireless Utility - OS X Daily - 0 views

  •  
    Strangely hidden from the casual user is a spiffy command line utility that allows you to view, configure, and troubleshoot your Mac's wireless connection. It doesn't appear to be well documented, and judging by the obscure location of the command, Apple probably didn't think it would be too useful for the average Mac user. But the hidden command line airport tool is very useful indeed, so here is how to access it, and how you can use it too. The first thing you'll want to do is create a symbolic link to the airport command, because it is situated in a very inconvenient location for quick usage.
Jeff Johnson

Sleepwatcher for Mac OS X - 0 views

shared by Jeff Johnson on 06 May 09 - Cached
  •  
    SleepWatcher is a command line tool (daemon) for Mac OS X that monitors sleep, wakeup and idleness of a Mac. It can be used to execute a Unix command when the Mac or the display of the Mac goes to sleep mode or wakes up or after a given time without user interaction. It also can send the Mac to sleep mode or retrieve the time since last user activity. A StartupItem, sample start and sleep scripts and the source code for sleepwatcher are included in the download. A little bit knowledge of the Unix command line is required to benefit from this software. SleepWatcher is published under the GNU General Public License.
David Corking

25 Terminal Tips Every Mac User Should Know | Maclife |2008 | Jonathan Williams - 0 views

  • free up some system memory by terminating the Dashboard with two quick Terminal commands. First, set its default to Off by executing defaults write com.apple.dashboard mcx-disabled -boolean YES. Second, kill and restart the Dashboard and Dock with this command: killall Dock.
  • Textutil can convert between Word, rich-text, and plain-text formats--and it can combine multiple documents, change fonts, and adjust font size while doing it
  • screencapture -x -t jpg capture.jpg.
  •  
    If there's a more neglected or misunderstood Mac utility than the Terminal, OS X's built-in command-line app, we've yet to find it. In an age where Apple's $200 smart phone offers the most intuitive graphical user interface the world has ever seen, turning to a text-only command-line window can seem stubbornly retro, reminding us of audiophiles who vociferously insist that vinyl records sound better than music CDs. But there are plenty of reasons for using the command line beyond mere nostalgia: speed, flexibility, and familiarity with OS fundamentals, to name a few. We've collected 25 Terminal-based solutions for common desktop issues, because knowing these tricks is an invaluable addition to any Mac user's toolbox. And while there is no reason to abandon the Finder, think of mastering the Terminal as learning to drive a car with a manual transmission-once you can drive a stick, you can drive anything.
Jeff Johnson

Apple Remote Desktop - Macenterprise.org - 0 views

  •  
    Apple Remote Desktop includes tools, remote UNIX commands, and command line tool info
Jeff Johnson

GeekTool - 6 views

  •  
    Mac OS X only: GeekTool is a nifty utility that incorporates text files, the output of shell commands and images onto your Mac's desktop. GeekTool ranks up there with Quicksilver in my "Oh my God, why doesn't this exist for Windows" list. Especially indispensable for command line lovers, GeekTool is fantastic for keeping tabs on your system or tracking your life in .txt right on your desktop.
Jeff Johnson

Use networksetup to change AirPort networks from the command line - 2 views

  •  
    Sure enough: networksetup -setairportnetwork Airport 'Your SSID Here' 'Network Pa$$wOrd Here' did just what I wanted, and it did not require an administrator password or sudo. If you need to get a listing of all of the current Wi-Fi networks which are broadcasting SSIDs, you can use 'airport -s' for a list which will also show what security measures are used. By the way, if you aren't familiar with networksetup, you should definitely read up on it. It has a lot of features that could come in handy. It also wields a great amount of power, so be careful. The command listed above is fairly innocuous but there is a lot more it can do.
Robert Ogden

Repair disk permissions from the command line - 0 views

  • diskutil repairPermissions /
  •  
    diskutil repairPermissions /
Jeff Johnson

dockutil 1.0 released « Pattern Buffer - 0 views

  •  
    As a Mac sysadmin, I've had the need to manipulate the dock on hundreds of systems at a time. I used to cobble together terrible shell scripts to do the job, but now thanks to plistlib and python, plist manipulation is really easy. I am releasing this utility free under the Apache 2.0 license. Hopefully some other sysadmins will find it useful. dockutil is a command line utility for managing Mac OS X dock items. It can add, replace, list, move, find, and delete dock items. It supports Applications, Folders, Stacks, and URLs. It can act on a specific dock plist or every dock plist in a folder of home directories. It is compatible with Mac OS X Tiger and Leopard.
yc c

Mac OS X - 0 views

  •  
    dscl -- Directory Service command line utility
Jeff Johnson

Luicd : Utilities : Dock Tools - 0 views

  •  
    Add Item to Dock is a flexible, open-source tool, released for the benefit of system administrators. Add Item to Dock provides an interface to the defaults program, allowing you to add items to the dock via the command line.
sofarso Shawn

Mac OS X Internals - 0 views

  •  
    >> get rid of those pesky softwareupdates ~ sr/sbin/softwareupdate is a command line utility to perform software updates under Mac OS X.
Graham Perrin

XBinary: Extended Binary Format Support for Mac OS X - 0 views

  • Extended Binary Format Support
  • © Amit Singh
  • January 2009
  • ...51 more annotations...
  • —With the advent of x86-based Macintosh computers, Universal binaries, originally known as "fat" or multiple-architecture binaries, appeared in Mac OS X.
  • Universal Binaries
  • for one or more architectures
  • along with a header that describes each constituent binary.
  • a wrapper that contains Mach-O binaries
  • a "4-way fat" executable could consist of Mach-O executables for the i386 (32-bit Intel), x86_64 (64-bit Intel), ppc (32-bit PowerPC), and ppc64 (64-bit PowerPC) architectures
  • Mac OS X does not provide any kernel-level or user-level interfaces to extend binary format support.
  • we'll need to write special software
  • new kernel functionality
  • software will involve a kernel extension.
  • extend the kernel
  • and execute them through specified handler programs.
  • Let us call the new software that implements these features XBinary. binfmt_misc Those familiar with the Linux kernel will realize that functionality similar to what's been described here exists in Linux as the binfmt_misc kernel feature. XBinary is conceptually similar
  • XBinary also has some Mac OS X specific features.
  • download and install the XBinary package
  • a command-line tool (xbinary
  • a kernel extension (xbinary.kext)
  • research software at this point
  • choosing the best library from an extended fat library file.
  • for developers, researchers, and power users
  • take XBinary for a spin
  • XBinary: extended binary format support for Mac OS X Copyright (c) 2009 Amit Singh. All Rights Reserved. http://osxbook.com The XBinary software allows you to extend the Mac OS X kernel such that it can recognize arbitrary binary formats and execute them through specified handler programs. (Mac OS X natively supports executing only Mach-O binaries, Universal (fat) binaries, and interpreter scripts.) XBinary consists of a kernel extension (xbinary.kext) and this command-line tool, which lets you control the XBinary facility. This requires superuser privileges, so you should run this tool using sudo(8). The XBinary kext must be loaded for the facility to be available.
  • You can add and manipulate in-kernel entries that enable recognition of binary formats.
  • You can also specify flags that affect how a matched entry is processed. By default, the argument vector IS adjusted and setuid/setgid binaries are NOT allowed.
  • make experimentation involving new binary formats easy
  • Let us look at Java applications
  • then specify this wrapper script as the interpreter
  • and subsequently invoke the Java application launcher.
  • given a Java class file
  • a wrapper script
  • We don't even have to write such scripts
    • Graham Perrin
       
      :-)
  • a Universal binary containing, say, Tiger and Leopard versions
  • simplify code creation and maintenance.
  • Consider a 2-way fat binary containing i386 and x86_64 architectures.
  • operating system versions in addition to processor architectures.
    • Graham Perrin
       
      :-)
  • Now think of an "extended" fat binary mechanism that incorporates
  • our hypothetical extended fat binary contains eight "architectures"
  • the extended fat feature as implemented by XBinary is not a complete implementation
  • These examples assume that you are on an x86 (little-endian) machine.
  • XBinary requires Mac OS X 10.5.x (Leopard).
  • Executive Summary This document discusses XBinary, a new software that lets you add kernel-level support for executing files in arbitrary binary formats on Mac OS X.
  • Extending Executability
  • recognize arbitrary binary formats
  • using the xbinary tool
  • copious "help" output
  • Each entry must have as its name a unique identifier string up to 31 bytes in size. Additionally, a set of other arguments specify to the kernel how to recognize that binary format and which interpreter to invoke to handle it. XBinary can recognize a binary EITHER by matching magic bytes within the first page of the file OR by matching a file extension. OTHER_ARGS must be a valid combination of the following arguments (some are optional).
  • that will determine the startup class name
  • Bonus Feature: Extra Fat Binaries
  • Since XBinary is experimental, why not experiment with such a feature too?
  • XBinary wouldn't be able to help the dynamic linker
  • The XBinary software
Jeff Johnson

Adjust Mac OS X display brightness from the Terminal - Matt [Danger] - 0 views

  •  
    One of the classrooms I maintain is comprised of 2.4Ghz iMacs (MB323LL/A) that are dual booted with Windows XP and Mac OS X. Sometimes when the workstations are restarted from XP to OS X the display brightness gets changed to its dim power saver setting. This requires the user manually increase the display brightness by pressing the F2 key, which is inconvenient. I haven't been able to determine the cause of this issue so I wanted to create a login hook to increases the brightness as a temporary fix. OS X doesn't ship with a command line utility that let's you change display brightness. Fortunately, Nicholas Riley has written a utility that uses OS X frameworks to accomplish this quickly and easily. Here's the code
yc c

QTCoffee - 1 views

  •  
    QTCoffee 1.2.5 is a set of command-line Mac OS X utilities for manipulating QuickTime movies and other QuickTime readable media (AVIs, MPEGs, as well as audio files such as MP3s and AACs). Features include: Joining (concatenating) movies or audio files, so they play one after the other Multiplexing of movies so they play at the same time. Useful for: Putting together audio and video tracks from other utilities Masking unwanted (noisy) parts of a video Letterboxing content Picture-in-picture effect Watermarking video Scaling movie tracks (for resizing video content) Changing the playback rate of movies or audio Extracting or removing tracks Extracting or removing chapters Splitting a movie into equal duration pieces or at specified times Splitting a movie into individual chapters Creating chapters or connecting chapter tracks and creating chapter files for AAC podcasts to be processed with Apple's ChapterTool
yc c

Clam AntiVirus - 0 views

  •  
    Clam AntiVirus is an open source (GPL) anti-virus toolkit for UNIX, designed especially for e-mail scanning on mail gateways. It provides a number of utilities including a flexible and scalable multi-threaded daemon, a command line scanner and advanced tool for automatic database updates. The core of the package is an anti-virus engine available in a form of shared library.(Read more...)
1 - 17 of 17
Showing 20 items per page