Linux commands: Difference between revisions

Jump to navigation Jump to search
874 bytes added ,  2 January 2016
Line 149: Line 149:


== system operation ==
== system operation ==
=== install package ===
* {{Linux}}: ex: install the [http://www.ivarch.com/programs/pv.shtml Pipe Viewer] (pv) package
*# [http://www.tecmint.com/enable-rpmforge-repository/ How to Enable RPMForge Repository in RHEL/CentOS 7.x/6.x/5.x/4.x]
*# (1){{kbd | key =yum install pv}} for RHEL / CentOS / SL / Fedora Linux<ref>[http://www.cyberciti.biz/open-source/command-line-hacks/pv-command-examples/ Linux / Unix pv Command: Monitor Progress of Data Sent Via a Pipe]</ref>;  (2) {{kbd | key =apt-get install pv}} for Debian / Ubuntu<ref>[http://www.ivarch.com/programs/pv.shtml ivarch.com: Pipe Viewer]</ref>;
* {{Mac}}
*# install [http://brew.sh/ Homebrew]  "package manager for OS X"
*# {{kbd | key =brew search PACKAGE_NAME}} ex: {{kbd | key =brew search wget}}
*# if the package is available. {{kbd | key =brew install PACKAGE_NAME}} ex: {{kbd | key =brew install wget}}
=== 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>

Navigation menu