From 63e1cd9725de39e6ff82d200029305aed0fbcdf2 Mon Sep 17 00:00:00 2001 From: bevilj Date: Sun, 18 Nov 2018 22:31:01 +0000 Subject: [PATCH] interm: add pages by @tomazj git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@261 a672b425-5310-4d7a-af5c-997e18724b81 --- site/pages/cmd/interm/bash.html | 2 +- site/pages/cmd/interm/caffeinate.html | 32 ++++++++++++++++++++++++++ site/pages/cmd/interm/cat.html | 2 +- site/pages/cmd/interm/git.html | 2 +- site/pages/cmd/interm/htop.html | 33 +++++++++++++++++++++++++++ site/pages/cmd/interm/ifconfig.html | 2 +- site/pages/cmd/interm/tar.html | 4 ++-- 7 files changed, 71 insertions(+), 6 deletions(-) create mode 100644 site/pages/cmd/interm/caffeinate.html create mode 100644 site/pages/cmd/interm/htop.html diff --git a/site/pages/cmd/interm/bash.html b/site/pages/cmd/interm/bash.html index b17da22..283dc98 100644 --- a/site/pages/cmd/interm/bash.html +++ b/site/pages/cmd/interm/bash.html @@ -6,7 +6,7 @@ tags: bash shell terminal author: Marco Farace title: bash previous-page: pages/cmd/interm/basename.html -next-page: pages/cmd/interm/cat.html +next-page: pages/cmd/interm/caffeinate.html --- Bash is an sh-compatible command language interpreter that executes commands diff --git a/site/pages/cmd/interm/caffeinate.html b/site/pages/cmd/interm/caffeinate.html new file mode 100644 index 0000000..b33d704 --- /dev/null +++ b/site/pages/cmd/interm/caffeinate.html @@ -0,0 +1,32 @@ +--- +layout: page +category-page: intermediate +category-title: Intermediate commands +tags: sleep coffee kafee stand by buongiornissimo +author: Joao Tomazoni +title: caffeinate +previous-page: pages/cmd/interm/bash.html +next-page: pages/cmd/interm/cat.html +--- + +The caffeinate command prevents the computer to go into sleep mode, +just as if you would set it to never sleep in the system preferences. +Type caffeinate -d in your terminal and it will prevent your screen to sleep +without changing the system preferences.

+ +
+caffeinate -d
+
+ +You can also prevent your computer to go sleep while another process is taking place, but turn sleep +mode on again when the process is over, for that you use the same code as above, and then type the +arguments you want to run and prevent computer to go on sleep mode. For example, say you have a +big file on your desktop that you want to md5, and you want to prevent your computer to enter +the sleep mode: + +
+caffeinate -d ~/Desktop/bigfile
+
+ +Doing so, your computer is now prevent to enter on sleep mode while the md5 process is running, +and automatically turn the sleep mode on again when the process is completed. diff --git a/site/pages/cmd/interm/cat.html b/site/pages/cmd/interm/cat.html index 2523a6e..5b95651 100644 --- a/site/pages/cmd/interm/cat.html +++ b/site/pages/cmd/interm/cat.html @@ -5,7 +5,7 @@ category-title: Intermediate commands tags: cat content file show concatenate author: Fabiano Fenini title: cat -previous-page: pages/cmd/interm/bash.html +previous-page: pages/cmd/interm/caffeinate.html next-page: pages/cmd/interm/chroot.html --- The cat command can be easily associated to the word “concatenation” but diff --git a/site/pages/cmd/interm/git.html b/site/pages/cmd/interm/git.html index 63a13f1..52a5738 100644 --- a/site/pages/cmd/interm/git.html +++ b/site/pages/cmd/interm/git.html @@ -6,7 +6,7 @@ tags: versioning commit merge software source code author: Andrea Brites Marto title: git previous-page: pages/cmd/interm/fg.html -next-page: pages/cmd/interm/ifconfig.html +next-page: pages/cmd/interm/htop.html --- If you want to use Git on the shell you need to know how this command works.
The git command providesa set of high-level operations and full access to internals.
diff --git a/site/pages/cmd/interm/htop.html b/site/pages/cmd/interm/htop.html new file mode 100644 index 0000000..a3f2c16 --- /dev/null +++ b/site/pages/cmd/interm/htop.html @@ -0,0 +1,33 @@ +--- +layout: page +category-page: intermediate +category-title: Intermediate commands +tags: process status stats cpu ram memory +author: Joao Tomazoni +title: htop +previous-page: pages/cmd/interm/git.html +next-page: pages/cmd/interm/ifconfig.html +--- + +The htop command is used to display the system resources +usage and the active processes. +You can use it to see how your computer is running and what's using the +RAM and the CPU. + +
+htop
+
+ +To quit htop you need to type q on your keyboard. You can also click +with the mouse or touchpad to sort the columns of the displayed data.
+You can move across the stats using the keys on your keyboard. + +

Flags

+ + diff --git a/site/pages/cmd/interm/ifconfig.html b/site/pages/cmd/interm/ifconfig.html index 70bb859..e7ad473 100644 --- a/site/pages/cmd/interm/ifconfig.html +++ b/site/pages/cmd/interm/ifconfig.html @@ -5,7 +5,7 @@ category-title: Intermediate commands tags: command ifconfig author: Matteo Omenetti title: ifconfig -previous-page: pages/cmd/interm/git.html +previous-page: pages/cmd/interm/htop.html next-page: pages/cmd/interm/install.html --- diff --git a/site/pages/cmd/interm/tar.html b/site/pages/cmd/interm/tar.html index 2698ce2..44a695e 100644 --- a/site/pages/cmd/interm/tar.html +++ b/site/pages/cmd/interm/tar.html @@ -1,7 +1,7 @@ --- layout: page -category_title: interm -category-page: interm +category-page: intermediate +category-title: Intermediate commands tags: tar shell command compress archive author: Nicola Brunner title: tar