From 2e42f1f41b0eafc41bedc3e2f3659e9ae4ef88e4 Mon Sep 17 00:00:00 2001 From: bevilj Date: Fri, 16 Nov 2018 19:47:01 +0000 Subject: [PATCH] More code review git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@238 a672b425-5310-4d7a-af5c-997e18724b81 --- site/_authors/annoum.html | 2 +- site/_authors/luinia.html | 2 +- site/pages/cmd/advanced/colrm.html | 27 +-- site/pages/cmd/advanced/comm.html | 32 ++-- site/pages/cmd/advanced/diff.html | 14 +- site/pages/cmd/basic/chown.html | 36 ++-- site/pages/cmd/basic/pwd.html | 24 --- site/pages/cmd/interm/apropos.html | 11 +- site/pages/cmd/interm/base64.html | 3 +- site/pages/cmd/interm/basename.html | 6 +- site/pages/cmd/interm/bash.html | 54 +++--- site/pages/cmd/interm/cat.html | 2 +- site/pages/cmd/interm/git.html | 49 +++--- .../cmd/interm/{Install.html => install.html} | 0 site/pages/cmd/interm/ping.html | 163 +++++++++--------- site/pages/cmd/interm/strings.html | 2 +- site/pages/fs/absolute.html | 2 +- site/pages/fs/pwd.html | 36 ++-- site/pages/fs/relative.html | 2 +- site/pages/info/motivation.html | 15 +- site/pages/scripts/base-commands.html | 57 +++--- 21 files changed, 270 insertions(+), 269 deletions(-) delete mode 100644 site/pages/cmd/basic/pwd.html rename site/pages/cmd/interm/{Install.html => install.html} (100%) diff --git a/site/_authors/annoum.html b/site/_authors/annoum.html index 8c14360..478e73e 100644 --- a/site/_authors/annoum.html +++ b/site/_authors/annoum.html @@ -1,4 +1,4 @@ --- -name: Marwan Announ +name: Announ Marwan position: FileSystem team --- diff --git a/site/_authors/luinia.html b/site/_authors/luinia.html index c1aa9c6..7042091 100644 --- a/site/_authors/luinia.html +++ b/site/_authors/luinia.html @@ -1,4 +1,4 @@ --- name: Alessandro Luini -position: Intermediate commands team +position: Advanced commands team --- diff --git a/site/pages/cmd/advanced/colrm.html b/site/pages/cmd/advanced/colrm.html index edf3508..4a5a3e1 100644 --- a/site/pages/cmd/advanced/colrm.html +++ b/site/pages/cmd/advanced/colrm.html @@ -6,28 +6,33 @@ category-title: Advanced commands tags: remove column title: colrm --- -The colrm is a command that removes the column that you indicate
+The colrm is a command that removes the column that you indicate
Here we have a file named example.txt that contains two lines to test this command:
-example.txt {% highlight bash linenos %} 123456789 abcdefghi {% endhighlight %} The syntax command is: -
 colrm [first] [last]
+
+colrm [first] [last]
+
-colrm 4 < example.txt
-123
-abc
+colrm 4 < example.txt
+    123
+    abc
 
-

How you can see, if I don't indicate the last column, the command removes all the colums starting from 4 included.

+ +How you can see, if I don't indicate the last column, the command removes +all the colums starting from 4 included.
-colrm 2 4 < example.txt
-156789
-aefghi
+colrm 2 4 < example.txt
+    156789
+    aefghi
 
-

Here, how you can see, the command has removed not all the columns, but only the colums that starting at 2 and ending at 4, included.

+ +Here, how you can see, the command has removed not all the columns, but only the colums that +starting at 2 and ending at 4, included. diff --git a/site/pages/cmd/advanced/comm.html b/site/pages/cmd/advanced/comm.html index 93baa25..866ff0f 100644 --- a/site/pages/cmd/advanced/comm.html +++ b/site/pages/cmd/advanced/comm.html @@ -6,7 +6,8 @@ category-title: Advanced commands tags: compare sorted files title: comm --- -The comm is a command that compares two sorted files line by line and writes the output: the lines that are in common and the lines that are unique.
+The comm is a command that compares two sorted files +line by line and writes the output: the lines that are in common and the lines that are unique.
Here we have two files named example1.txt and example2.txt that contain 5 elements, to test this command:
@@ -30,28 +31,31 @@ Pizza {% endhighlight %} The syntax command is: -
comm [flag][file1] [file2]
+
+comm [flag][file1] [file2]
+
 comm example1.txt example2.txt
-Icecream
-    Chocolate
-Cake
-  Tomato
-    Candy
-Biscuit
-  Pizza
+    Icecream
+        Chocolate
+    Cake
+      Tomato
+        Candy
+    Biscuit
+      Pizza
 
-

The elements of the first file doesn't have the tab.

-

The elements of the second file have one tab.

-

The elements in common have two tabs.

+ -

Flags

+

Flags

diff --git a/site/pages/cmd/advanced/diff.html b/site/pages/cmd/advanced/diff.html index 349bdde..ca436ae 100644 --- a/site/pages/cmd/advanced/diff.html +++ b/site/pages/cmd/advanced/diff.html @@ -46,13 +46,13 @@ and the output will be:
 2,4c2,4
 
-< I need to run the laundry.
-< I need to wash the dog.
-< I need to get the car detailed.
----
-> I need to do the laundry.
-> I need to wash the car.
-> I need to get the dog detailed.
+    < I need to run the laundry.
+    < I need to wash the dog.
+    < I need to get the car detailed.
+    ---
+    > I need to do the laundry.
+    > I need to wash the car.
+    > I need to get the dog detailed.
 
In our output, "2,4c2,4" means: "Lines 2 through 4 in the first diff --git a/site/pages/cmd/basic/chown.html b/site/pages/cmd/basic/chown.html index ebfef09..bc3417f 100644 --- a/site/pages/cmd/basic/chown.html +++ b/site/pages/cmd/basic/chown.html @@ -16,18 +16,32 @@ Use chgrp [:group] file to create a group for a file
Use Sudo chown owner[:group], if you need root permission for add the user to the group

-  chown Joy [students] file
+chown user [group] file1 file2 ...
 
diff --git a/site/pages/cmd/basic/pwd.html b/site/pages/cmd/basic/pwd.html deleted file mode 100644 index 070da58..0000000 --- a/site/pages/cmd/basic/pwd.html +++ /dev/null @@ -1,24 +0,0 @@ ---- -layout: page -category-page: basic -category-title: Basic commands -author: Joy Albertini -tags: directory current path pwd -title: pdw ---- - -

The pwd command (path of working directory)
-The absolute pathname of the current working directory is given as result.

- -
-  cd /home/user
-  pwd = /home/user
-
- - diff --git a/site/pages/cmd/interm/apropos.html b/site/pages/cmd/interm/apropos.html index afdeff1..98212e8 100644 --- a/site/pages/cmd/interm/apropos.html +++ b/site/pages/cmd/interm/apropos.html @@ -7,14 +7,17 @@ tags: search tag apropos keyword title: apropos --- -

The apropos -Apropos is a command to search command in the shell with a keyword, it will output all command related to the keyword
-Example with the command apropos archive, the shell will output tar, zip ecc...

+The apropos command is used to search command in the shell with a keyword, +it will output all command related to the keyword
+ +Example with the command apropos archive, the shell will output tar, zip ecc...
-apropos [-flag] keyword
+apropos [flags] keyword
 
+

Flags

+