Write a script to display the date, time, username and current directory.
Answers
Answered by
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
Science,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Math,
1 year ago