DirectNET

Data Center Management Solutions including UPS Systems, Data Center Cooling, KVM over IP & IP Power Strips, Server Racks and Server Rack accessories; KVM Switches and KVM Extenders; Rackmount Monitors and Rackmount Keyboards.


NAVIGATION
Home
Store
INSIDE MAC
Television Shows
Broadcast Shows
Daily News Shows
Special Shows
EVENTS
DAILY TIPS
Design
Mac OS X
Mac OS X UNIX
COMMUNITY
Forums
Surveys
NEWS
Current
Press
Archive
FEATURES
Editorial
Dr. Mac
Reviews
Reader Reports
RESOURCES
FAQ
Documentation
Learning Center
MAN pages
Glossary
Tutorials
Tips
Links

OUR PARTNERS

OSXFAQ Mac OS X UNIX Tip-of-the-Day   back to index

Week 102 - Unix Commands Reference II (21 March 2005)

by Adrian Mayo - Editor, OSXFAQ

Friday - Commands to Control the Shell

alias ... alias a command line to a keyword
(Bash and tcsh)

function ... assign a function to a keyword
(Bash only)

(See tips weeks 12, 20, 71, 77, 99 - Tuesday)

tee ... split a pipe into to streams
Can be used to direct the output of a command to a file and to terminal at the same time

set ... set a shell variable
unset ... remove a shell variable
setenv ... set an shell environment variable
unsetenv ... remove a shell environment variable

(tcsh only)
(See tips week 54 - Monday)

expect ... script a dialogue with interactive programs

script ... make a transcript of a terminal session

bindkey ... to change shell key functionality

batch ... execute commands in non-busy periods
The command is delayed until system load levels are low.
The load level is controlled by atrun, see Wednesday's tip.

exec ... executes command in place of shell

nohup ... execute a command immune to hangups
The command will not be stopped bu 'kill -HUP' or when the current shell exits
(See tips week 78)

lockfile ... prevent file from being accessed by more than one process

rehash ... refresh shell's executable list
(tcsh)
(See week 21 - Friday)

hashstat ... give hash hit statistics
(tcsh)

exit ... quit non-login shell

logout ... quit a login shell


Discuss this trick in the Learning Center forum


If you want to learn more about Mac OS X Unix visit the Learning Center  click.

  • For beginners: Mac OS X Unix Tutorials
  • For detailed information on specific topics: Advanced Unix
  • For OS X in gereral: Mac OS X Tutorials

Copyright © 2000-2008 Inside Mac Media, Inc. All rights reserved.
Apple assumes no responsibility with regard to the selection, performance, or use of the products or services. All understandings, agreements, or warranties, if any, take place directly between the vendors and prospective users.
Apple, the Apple logo, Mac, PowerMac G4, PowerMac G5, Xserve, Xserve RAID, PowerBook, iBook, Airport, AirPort Extreme, iMac, eMac, iLife, iMovie, iCal, iPhoto, iTunes, QuickTime, FireWire, iPod, iSight, AppleWorks, Macintosh, Jaguar, Panther, Mac OS, Mac OS X and Mac OS X Server are trademarks of Apple Computer, Inc.