The date (Sobell, page 62) utility displays the date and time. Write and exe- cute a shell script that displays the date and time, the name of your home directory, and the value of your PATH variable.

What will be an ideal response?

$ cat mine
#!/bin/bash
# This script displays time and date,
# the name of your home directory, and
# the value of your PATH variable.
date
echo $HOME
echo $PATH
$ ./mine
Fri Oct 19 16:24:43 PDT 2012
/home/max
/usr/local/bin:/bin:/usr/bin:/sbin:/home/max/bin

Computer Science & Information Technology

You might also like to view...

Grouping and summary data can be added to a report in the ________ view

Fill in the blank(s) with correct word

Computer Science & Information Technology

The port number for HTTP is 88

Indicate whether the statement is true or false.

Computer Science & Information Technology