Write Script to see current date, time, username, and current directory


#!/bin/bash

#
echo "Hello, $LOGNAME"
echo "Current date is `date`"
echo "User is `who i am`"
echo "Current direcotry `pwd`"

2 comments:

  1. close, but not quite. On line 6, "`who i am'" should be changed to "`whoami`." Also, directory is not spelled direcotry.

    ReplyDelete
  2. Write a shell script to get the current date time user name and current working directory

    ReplyDelete

Thank You for your Comments, We will read and response you soon...