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

Write the syntax for "if" conditionals in linux?

0 Answers  


What is a scripting language simple definition?

0 Answers  


Hi, i want to zip the files that generates automatically every few minutes (files generated are in .arc extension)....any body write a script for this... thanks in advance

5 Answers   HP,


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

0 Answers  


What are the Different types of shells?

5 Answers  






What makes c shell a more preferable option than the bourne shell?

0 Answers  


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

0 Answers   TCS,


What are the different kinds of loops available in shell script?

3 Answers  


In shell scripting if text is surrounded by single quotes what does it denotes?

3 Answers  


How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }

0 Answers   Wipro,


How to change our default shell?

5 Answers  


What is a shell script? Can you name some of its advantages?

0 Answers  


Categories