add clock and day to terminal window

Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
When I run the command watch df, I see a clock and time on the right upper corner of the terminal window. Is there any command that I can use to visualize time/date in terminal window? it seems that this is possible, because command watch df can do it?
command-line
add a comment |Â
up vote
2
down vote
favorite
When I run the command watch df, I see a clock and time on the right upper corner of the terminal window. Is there any command that I can use to visualize time/date in terminal window? it seems that this is possible, because command watch df can do it?
command-line
sure - a simple script can do this. But terminals by themselves do not do this.
â Thomas Dickey
2 days ago
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
When I run the command watch df, I see a clock and time on the right upper corner of the terminal window. Is there any command that I can use to visualize time/date in terminal window? it seems that this is possible, because command watch df can do it?
command-line
When I run the command watch df, I see a clock and time on the right upper corner of the terminal window. Is there any command that I can use to visualize time/date in terminal window? it seems that this is possible, because command watch df can do it?
command-line
command-line
edited 2 days ago
Goro
7,56753371
7,56753371
asked 2 days ago
TNT
337313
337313
sure - a simple script can do this. But terminals by themselves do not do this.
â Thomas Dickey
2 days ago
add a comment |Â
sure - a simple script can do this. But terminals by themselves do not do this.
â Thomas Dickey
2 days ago
sure - a simple script can do this. But terminals by themselves do not do this.
â Thomas Dickey
2 days ago
sure - a simple script can do this. But terminals by themselves do not do this.
â Thomas Dickey
2 days ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
This command will do something similar to watch df in regard of adding a clock on the right upper corner of terminal window:
while true; do echo -ne "e[se[0;$((COLUMNS-27))H$(date)e[u"; sleep 1; done &
Adjust the sleep value as you want to update time accordingly
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
This command will do something similar to watch df in regard of adding a clock on the right upper corner of terminal window:
while true; do echo -ne "e[se[0;$((COLUMNS-27))H$(date)e[u"; sleep 1; done &
Adjust the sleep value as you want to update time accordingly
add a comment |Â
up vote
3
down vote
accepted
This command will do something similar to watch df in regard of adding a clock on the right upper corner of terminal window:
while true; do echo -ne "e[se[0;$((COLUMNS-27))H$(date)e[u"; sleep 1; done &
Adjust the sleep value as you want to update time accordingly
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
This command will do something similar to watch df in regard of adding a clock on the right upper corner of terminal window:
while true; do echo -ne "e[se[0;$((COLUMNS-27))H$(date)e[u"; sleep 1; done &
Adjust the sleep value as you want to update time accordingly
This command will do something similar to watch df in regard of adding a clock on the right upper corner of terminal window:
while true; do echo -ne "e[se[0;$((COLUMNS-27))H$(date)e[u"; sleep 1; done &
Adjust the sleep value as you want to update time accordingly
answered 2 days ago
Goro
7,56753371
7,56753371
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473686%2fadd-clock-and-day-to-terminal-window%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
sure - a simple script can do this. But terminals by themselves do not do this.
â Thomas Dickey
2 days ago