how to read systems current date and time
Answers were Sorted based on User's Feedback
In Unix, to know the current date and time, the command is
date.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / santana20142003
$date -u +%r -->02:26:38 PM
$ date -u +%T -->14:26:48
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kirtiranjan sahoo
we can use DATE command to know the system date and time.
and want to any modify, then
date +%Y-%m-%d
Y: Year
m: No of month
d: date number
If you want to know the yesterday date, simply you can write the below command
date -d "yesterday"
or
date -d "-1day"
| Is This Answer Correct ? | 0 Yes | 0 No |
how did u debugging in unix/ linux platform ??( project Related)
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
c program to check whether all the directories in the path exists has read and write permission
Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"
What is the difference between a shell variable that is exported and the one that is not exported?
How can the contents of a file inside jar be read without extracting in a shell script?
What is the equivalent of a file shortcut that we have a window on a linux system?
How to enable the shell to know what program should be run to interpret the script?
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.
What is basename in shell script?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
defination of mapfile in winrunner?