Bourne Shell Command Line Examples

This section provides some Bourne shell command line examples with explanations.

Below are some Bourne shell command line examples with explanations:

set
      Displays the values of all shell variables.

PS1=\$
      Sets the prompt to be the dollar sign $

D=`pwd`
      Sets the current working directory to variable d.

echo $D
      Displays the value in variable D

date
      Displays the date.

cat > myself
(Type in some words about yourself)
^D
      Creates a file and lets you to enter text from the keyboard.

ls -l
      Lists the contents of the current directory in long format.

cat myself
      Displays the contents of "myself" on the screen.

sleep 200
^C
      A dummy command. It runs for 200 seconds.
      "Ctrl-C" cancels the execution of any command.

sleep 200
^Z
      "Ctrl-Z" stops the execution of any command.

command &
      Runs the command in the background

Table of Contents

 About This Book

 2002 - .NET Framework Developed by Microsoft

 1995 - PHP: Hypertext Preprocessor Created by Rasmus Lerdorf

 1995 - Java Language Developed by Sun Microsystems

 1991 - WWW (World Wide Web) Developed by Tim Berners-Lee

 1991 - Gopher Protocol Created by a University of Minnesota Team

 1984 - X Window System Developed a MIT Team

 1984 - Macintosh Developed by Apple Inc.

 1983 - "Sendmail" Mail Transfer Agent Developed by Eric Allman

 1979 - The Tcsh (TENEX C Shell) Developed by Ken Greer

 1978 - Bash (Bourne-Again Shell) Developed by Brian Fox

 1978 - The C Shell Developed by Bill Joy

1977 - The Bourne Shell Developed by Stephen Bourne

 What Is the Bourne Shell

Bourne Shell Command Line Examples

 Bourne Shell Script File Examples

 1977 - Apple II Designed by Steve Jobs and Steve Wozniak

 1976 - vi Text Editor Developed by Bill Joy

 1974 - Internet by Vinton Cerf

 1972 - C Language Developed by Dennis Ritchie

 1971 - FTP Protocol Created by Abhay Bhushan

 1970 - UNIX Operating System Developed by AT&T Bell Labs

 1957 - FORTRAN Language Developed by IBM

 References

 Full Version in PDF/EPUB