Universal Command Guide
Universal Command Guide
sh / jsh
bash
bash
tcsh
tcsh
bsh
ash
ksh
csh
ksh
csh
ksh
csh
zsh
sh
Command Description
# Marks a comment. • • • • • • • • • • • • • • •
. Run scripts in the current environment. • • • • • • • • • •
var=value Assign values to variable. • • • • • • • • • •
alias Command alias. • • • • • • • • • • •
alloc Shows memory usage. • •
autoload Marks function for auto loading. •
bg Place job in background. • • • • • • • • • •1 • • • • •
bind Binds editor keys. • •
bindkey Binds editor keys. • •
break Break out from a loop. • • • • • • • • • • • • • • •
breaksw Break from a switch. • • • • •
bltin Shows builtins commands. •
builtin Shows builtins commands. • • •
builtins Shows builtins commands. • •
bye Will leave the shell. •
case label: Defines a label in a switch. • • • • •
case Starts a switch statement. • • • • • • • • • •
cd Change directory. • • • • • • • • • • • • • • •
chdir Change directory. • • • • • • • • •
command Runs commands without shell function lookup. • • • • •
compgen Shows possible command completions. •
complete Will define completions. • • •
continue Continues execution of a loop. • • • • • • • • • • • • • • •
declare Sets variables and/or variable attributes. • • •
default: Specifies default choice in a switch. • • • • •
dirs Shows directory stack. • • • • • • • •
disown Remove active jobs from the job list. • • •
disable Disable builtin commands. •
echo Show text on screen. • • • • • • • • • • • • • •
echotc Sends commands to the terminal. • • •
enable Will enable or disable built in commands. • • •
emulate Emulate other shells. •
eval Evaluate the command. • • • • • • • • • • • • • • •
exec Execute the command. • • • • • • • • • • • • • • •
exit Leave the shell. • • • • • • • • • • • • • • •
export Export shell variables to the environment. • • • • • • • • • •
false Returns a false value. •
fc Will fix command in the history list. • • • • • •
fg Place a job in the foreground. • • • • • • • • • •1 • • • • •
filetest Will test file attributes. • •
function Declares functions • • • • • • • • • •
functions Manipulate function attributes. •
for Perform a loop. • • • • • • • • • •
foreach Perform a loop. • • • • •
AIX BSD LINUX Solaris Solaris 8
sh / jsh
bash
bash
tcsh
tcsh
bsh
ash
ksh
csh
ksh
csh
ksh
csh
zsh
sh
Command Description
getln Reads from the buffer stack. •
getopts Gets options form the arguments. • • • • • • • • • •
glob Expands the given filenames. • • • • •
goto Go to the specified label. • • • • •
hash Shows remembered commands. • • • • • • • • • •
hashstat Shows statistics from the hash table. • • • • •
help Shows help information. • •
history Shows the history list. • • • • • • • •
hup Runs command and allow hang up signals. • •
integer Manipulates integer variable attributes. •
if Make decisions. • • • • • • • • • • • • • • •
jobid Shows processid for the job. •
jobs Shows active jobs. • • • • • • • • • •1 • • • • •
kill Kill a process. • • • • • • • • • • • • • •
lc Rerun last command. •
let Performs arithmetic operations. • • • • • •
limit Sets system resource. • • • • • •
local Creates local variables. • • •
log Shows logged in user from $watch. • • •
login Log in. • • • • • • • • • • •
logout Log out • • • • • • • •
ls-F Shortcut for ls –F. • •
newgrp Change effective group. • • • • • •
nice Change scheduling priority. • • • • •
nohup Runs command and ignore hang up signals. • • • • •
noglob Will not perform any file globing. •
notify Notify the user when a job is finish. • • • • •
onintr Tells the shell to go to label on interrupt. • • • • •
print Show text on screen. • • • •
popd Pops directory from the directory stack. • • • • • • • •
pushd Push directory to the directory stack. • • • • • • • •
pushln Push line to the editor stack. •
printenv Shows environment variables. • •
printf Shows formatted text on screen • •
pwd Shows working directory. • • • • • • • • • •
r Rerun last command. •
read Read from the keyboard. • • • • • • • • • •
readonly Marks a variable read only. • • • • • • • • • •
rehash Will make the hash table recomputed. • • • • • •
return Return from a function. • • • • • • • • • •
repeat Repeat a specified number of times. • • • • •
sched Simple scheduler. • •
select Makes interactive selection from a list. • • • • • •
set var=value Sets shell variable. • • • • •
AIX BSD LINUX Solaris Solaris 8
sh / jsh
bash
bash
tcsh
tcsh
bsh
ash
ksh
csh
ksh
csh
ksh
csh
zsh
sh
Command Description
set options Sets shell options. • • • • • • • • • •
setenv Sets environment variables. • • • • •
setopt Sets shell options. •
setvar Sets shell variable. •
settc Specifies terminal capability. • •
setty Will control tty modes. • •
shift Shifts shell arguments. • • • • • • • • • • • • • • •
shopt Sets shell options. • •
source Runs a script in the current environment. • • • • • • • •
stop Stops a job. • • • • • • • • • • •
suspend Suspend the execution of the shell. • • • • • • • • • • • • • •
switch Starts a switch selection. • • • • •
telltc Shows terminal capability. • •
test Tests file status and other things. • • • • • • • • •
time Shows execution time for commands. • • • • •
times Shows shell times. • • • • • • • • •
trap Defies behavior on interrupts. • • • • • • • • • •
true Returns true. •
ttyctl Will freeze or un freeze the tty. •
type Shows the command type. • • • • • • • • •
typeset Sets variables and/or variable attributes. • • • • • •
ulimit Sets system resource. • • • • • • • • •
umask Sets and shows the umask. • • • • • • • • • • • • • • •
unalias Removes command alias. • • • • • • • • • • •
unfunction Removes the function. •
unhash Disable the internal hash table. • • • • • •
uncomplete Will remove completions. • •
unlimit Unsets system resource. • • • • • •
unset Unsets shell variables. • • • • • • • • • • • • • • •
unsetenv Unsets environments variables. • • • • •
unsetopt Will unset shell options. •
until Repeat until condition is met. • • • • • • • • • •
wait Wait for background jobs. • • • • • • • • • • • • • • •
where Shows all known commands in path. • • •
which Shows which command is to be executed. • • •
while Repeat while condition is met. • • • • • • • • • • • • • • •
whence Shows how command is interpreted. • • • •