OSXFAQ Mac OS X UNIX Tip-of-the-Day

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
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
|