Linux commands: Difference between revisions

Jump to navigation Jump to search
308 bytes added ,  10 November 2014
Line 197: Line 197:
=== show current time ===
=== show current time ===
* {{kbd | key= date}} ({{Linux}}) output: Thu Oct 25 15:05:10 CST 2012 <ref>[http://linux.vbird.org/linux_server/0440ntp.php 鳥哥的 Linux 私房菜 -- NTP 時間伺服器]</ref><ref>[https://en.wikipedia.org/wiki/DATE_(command) DATE (command) - Wikipedia, the free encyclopedia]</ref>
* {{kbd | key= date}} ({{Linux}}) output: Thu Oct 25 15:05:10 CST 2012 <ref>[http://linux.vbird.org/linux_server/0440ntp.php 鳥哥的 Linux 私房菜 -- NTP 時間伺服器]</ref><ref>[https://en.wikipedia.org/wiki/DATE_(command) DATE (command) - Wikipedia, the free encyclopedia]</ref>
* {{kbd | key= TZ=Asia/Taipei date}} ({{Linux}}) output the time from a 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:
<pre>output:

Navigation menu