Computer Science, asked by TbiaSamishta, 1 year ago

Write a script to display the date, time, username and current directory.

Answers

Answered by aqibkincsem
1

"It requires a list of commands in order to make the date time, username in the current directory.


The set of instructions are accompanied by various symbols which are mandatory for it to work


A script to display the date, time, username, and current directory is:

#!/bin/bash

#

echo ""Hello, $LOGNAME""

echo ""Current date is `date`""

echo ""User is `who i am`""

echo ""Current direcotry `pwd`""


"

Similar questions