Write a shell script to get current date, time, user name and current working directory.
Answer / Amit Kumar Giri
Here's a simple shell script that displays the current date, time, username, and current working directory: `#!/bin/bashndatenecho $USERncd - P | awk '{print $NF}'`
| Is This Answer Correct ? | 0 Yes | 0 No |
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
write a shell script to identify the given string is palindrome or not?
17 Answers CTS, HP, IBM, InfoEst, Wipro,
What is the difference between a shell variable that is exported and the one that is not exported?
How to change our default shell?
Is bash a shell script?
How do I edit a .sh file?
How to get script name inside a script?
What is the default ubuntu terminal?
What can you do with powershell?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
c program to check whether all the directories in the path exists has read and write permission
What are the four fundamental components of every file system on linux?