Home Linux How to get the date for next week friday or any other day of the week via the command line in Linux?
 
 
 

How to get the date for next week friday or any other day of the week via the command line in Linux?

PDF Print E-mail

Question: How to get the date for next week friday or any other day of the week via the command line in Linux?

 

Answer: 

  1. Open a new Terminal Window
  2. Type in the following command
    date -d fri

    Description:
    • date = print or set the system date and time
    • -d = display time described by STRING, not `now'
    • Replace fri with any day of the week you prefer.
  3. This will output something similar as below
    Fri Aug  6 00:00:00 SAST 2010

 

+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!