Popular Hamilton C shell Aliases


Alias
Definition
Function
app cat >> Append to a file.
beep eval echo -n ^a Beep sound.
breaksw break Older BSD4.3 name for a break statement inside a switch.
cdd cd +c Change the directory and disk in one command.
copy local s; @ s = $nowild; @ nowild = 1; safecopy Invoke the standard IBM/MS copy command with shell wildcarding turned off so copy will work sensibly.
date dt Display the current time and date.
del local s; @ s = $nowild; @ nowild = 1; safedel Invoke the del command with shell wildcarding turned off so "del *.*" will still produce the "Are you sure?" message.
di diff -b! Run the diff command, ignoring white space differences and using color to highlight the changes.
dir cmd /c dir Invoke the cmd.exe dir command. (Alternately, you may wish to intercept dir the same way copy or del is done, turning off shell wildcarding before running the command.)
duc du -c Disk usage for the current disk only.
dumphist history -s > ~\history.csh Dump out the history list.
endif end Older BSD4.3 name for the end of an if statement.
endsw end Older BSD4.3 name for the end of switch statement.
erase del Alternate name for del.
f fgrep Quicker name for fgrep.
fn fgrep -n Fgrep and print line numbers.
g grep Quicker name for grep.
h history Quicker name for history.
help Under OS/2, invoke the IBM/Microsoft help command. Under Windows NT or Windows 95, this is a procedure using winerror (in the samples directory) to print the message corresponding to the return code from the last command.
home cdd ~ Change to the home disk and directory.
ld ls -a +D -. List only the subdirectories.
ll ls -L List directories, long format.
loadhist source -n ~\history.csh Load the history list without executing any of it.
md mkdir Make directories.
mi more -i Quick interactive startup of your favorite version more. Clears the screen when it starts up and doesn't just exit if there's less than a screenful.
mih moreh -i Huge interactive more. (OS/2 only.)
mis more -i Small interactive more. (OS/2 only.)
pause echo -n Press any key when ready ...; @ getchar; echo Pause, waiting for any keystroke or character from stdin.
q exit Exit the C shell
rd rmdir Remove empty directories.
ren rename Another name for the rename alias.
rename local s; @ s = nowild; @ nowild = 1; saferename Invoke the standard IBM/MS rename command with shell wildcarding turned off so the rename will work sensibly.
rot13 tr 'n-za-mN-ZA-M' 'a-zA-Z' Encoder/Decoder for off-color jokes on Internet.
start cmd /c start Start a new session via the cmd.exe start command.
type cat Copy files to stdout.
uud uudecode Uudecode binary data.
uue uuencode -c Uuencode using cp-style syntax.
vol vl List volume labels.
w (wait; beep) Wait for background processes and beep.
xcopy local s; @ s = nowild; @ nowild = 1; safexcopy Invoke the standard IBM/MS xcopy command with shell wildcarding turned off so xcopy will work sensibly.



Previous Topic | Next Topic

Hamilton C shell | Free Updates | Free Demo Software | Win32 Training
Y2K | Customer Testimonials | On-line Hamilton C shell User Guide
Home | Email | Support | Company Profile | Distributors | Links



Copyright © 1997-2001 by Hamilton Laboratories. All rights reserved.
You are visitor number 1247. This page was last modified August 9, 2001.