Write a shell script to get current date, time, user name and current working directory.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Shell Script Interview Questions

How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.

5 Answers   Wells Fargo,


Is powershell a bash?

0 Answers  


what does "kill -9" and "kill -1" do

2 Answers   Amazon,


What is @echo off?

0 Answers  


What are the two files of crontab command?

0 Answers  






What does .sh file contain?

0 Answers  


What is shell and shell script?

0 Answers  


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

0 Answers  


What is the use of echo in shell script?

0 Answers  


State the advantages of shell scripting?

0 Answers  


Create a bash shell script that removes all files whose names end with a "~" from your home directory and subdirectories. Name this script "cleanup.sh"

6 Answers  


Explain about sourcing commands?

0 Answers  


Categories