How does a user get the current date, time in UNIX?

Answer Posted / niranjan

command : $ date

date having different options according to reqirement like MMDDYY or day of the week,month name,weekday plenty off:)

$date %c gives current time with date month year

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain ‘system calls’ with respect to unix commands?

595


Which command should you use to find the remaining disk space in unix server?

696


What is awk used for?

611


How do I search for a file in unix command?

539


What does touch command do in unix?

715






How do you grep a case insensitive?

531


How do you grep recursively?

545


What will the following command do?

606


Which command can you use to find the currently running process in unix server?

579


Who command in unix operating system?

654


What do chmod command do?

596


What is the comma to show the space allocation of files?

553


How to use grep command to list find the records of a file containing 10 different strings?

638


Name the unix command to find how many days the server has been up.

591


What is the use of finger command?

585