Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What difference between cmp and diff commands?

1316


What is awk used for?

1140


What is unix command?

1272


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

1316


Who invented grep?

1167


What are the differences among a system call, a library function, and a unix command?

1237


What is the difference between cat and more command?

1308


What is {} in find command?

1117


What is updatedb?

1058


Is it inbetween or in between?

1071


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

2273


What is the use of egrep command in unix?

1199


Which unix command lists files/folders in alphabetical order?

1766


What is the significance of the 'tee' command?

1203


What is awk command used for?

1250