Skip to Main Content
Linux in a Nutshell, Fourth Edition
book

Linux in a Nutshell, Fourth Edition

by Ellen Siever, Stephen Figgins, Aaron Weber
June 2003
Beginner to intermediate content levelBeginner to intermediate
944 pages
43h 1m
English
O'Reilly Media, Inc.
Content preview from Linux in a Nutshell, Fourth Edition

Differing Features

The following table is a sampling of features that differ between the two shells:

bash

tcsh

Meaning/Action

$

%

Default prompt.

>|

>!

Force redirection.

>>!

Force append.

var=val

set var=val

Variable assignment.

export var=val

setenv var val

Set environment variable.

$#

$#argv

Number of arguments.

$( command ), ``

``

Command substitution.

. file, source file

source file

Execute commands in file.

done

end

End a loop statement.

esac

endsw

End case or switch.

for/do

foreach

Loop through variables.

if [ $i -eq 5 ]

if ($i= =5)

Sample if statement.

fi

endif

End if statement.

ulimit

limit

Set resource limits.

read

$<

Read from terminal.

readonly

set -r

Make a variable read-only.

Tab Tab

Show possible completions.

trap 2

onintr

Ignore interrupts.

until/do

until

Begin until loop.

while/do

while

Begin while loop.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux in a Nutshell, 6th Edition

Linux in a Nutshell, 6th Edition

Ellen Siever, Stephen Figgins, Robert Love, Arnold Robbins
Linux in Action

Linux in Action

David Clinton
Hands-On System Programming with Linux

Hands-On System Programming with Linux

Kaiwan N. Billimoria, Tigran Aivazian
Embedded Linux for Developers

Embedded Linux for Developers

Alexandru Vaduva, Alex González, Chris Simmonds

Publisher Resources

ISBN: 0596004826