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 to read systems current date and time

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to connect to a remote server and execute some commands, how can I achieve this?

1056


What is .sh file in mac?

1049


Suppose you execute a command using exec, what will be the status of your current process in the shell?

1117


What is the default ubuntu terminal?

1184


How will you print the login names of all users on a system?

1017


What is c in shell script?

1117


Where is bash history?

988


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

2823


Why is used in shell scripting?

1046


What are the different types of shell scripting?

1172


Is shell scripting a programming language?

1094


How to get the last line from a file using just the terminal?

1274


Is powershell a bash?

1127


What is the use of echo in shell script?

1061


Write a script to print the first 10 elements of fibonacci series.

2408