Linux commands: Difference between revisions

Jump to navigation Jump to search
589 bytes removed ,  2 December 2019
m
(→‎Text file manipulation: Show certain lines by line number)
Line 243: Line 243:
* {{kbd | key= TZ=Asia/Taipei date}} ({{Linux}}) output the time from the Taipei/CST timezone <ref>[http://unix.stackexchange.com/questions/48101/how-can-i-have-date-output-the-time-from-a-different-timezone How can I have `date` output the time from a different timezone? - Unix & Linux Stack Exchange]</ref>
* {{kbd | key= TZ=Asia/Taipei date}} ({{Linux}}) output the time from the Taipei/CST timezone <ref>[http://unix.stackexchange.com/questions/48101/how-can-i-have-date-output-the-time-from-a-different-timezone How can I have `date` output the time from a different timezone? - Unix & Linux Stack Exchange]</ref>
* {{kbd | key= date/t}} ({{Win}}) (parameter: /t will not ask you to change the current date)
* {{kbd | key= date/t}} ({{Win}}) (parameter: /t will not ask you to change the current date)
<pre>output:
 
OS in English: Thu 05/03/2012
More on the page [[Show current time]]
OS in Mandarin Chinese (XP): 2012/05/03 星期四
OS in Mandarin Chinese (Windows 8, 10): 2014/07/01 週二
</pre>
* {{kbd | key= <nowiki>prompt $d $t $_$P$G</nowiki>}} ({{Win}}<ref>[http://stackoverflow.com/questions/673523/how-to-measure-execution-time-of-command-in-windows-command-line batch file - How to measure execution time of command in windows command line? - Stack Overflow]</ref>)
<pre>output:
OS in Mandarin Chinese (Windows 10): 2017/02/03 週五 15:35:31.61
</pre>
* related pages: [[Time server]], [[PHP_and_MySQL_syntax#timestamp | timestamp in PHP and MySQL syntax]]


=== specify the location where Linux or MS-DOS looks when using a command ===
=== specify the location where Linux or MS-DOS looks when using a command ===

Navigation menu