From f59bcc25dfba087c425e30415e07db9226fd4ee1 Mon Sep 17 00:00:00 2001 From: feninf Date: Sat, 10 Nov 2018 13:13:07 +0000 Subject: [PATCH] interm-team: added three commands git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@84 a672b425-5310-4d7a-af5c-997e18724b81 --- site/pages/cmd/interm/basename.html | 35 +++++++++++++++++++++++++++ site/pages/cmd/interm/cat.html | 37 +++++++++++++++++++++++++++++ site/pages/cmd/interm/passwd1.html | 36 ++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 site/pages/cmd/interm/basename.html create mode 100644 site/pages/cmd/interm/cat.html create mode 100644 site/pages/cmd/interm/passwd1.html diff --git a/site/pages/cmd/interm/basename.html b/site/pages/cmd/interm/basename.html new file mode 100644 index 0000000..0f67881 --- /dev/null +++ b/site/pages/cmd/interm/basename.html @@ -0,0 +1,35 @@ +--- +layout: page +category: Intermediate commands +tags: basename +author: Fabiano Fenini +title: BASENAME +next-page: "" +--- + +

The basename command deletes any prefix ending with the last slash "/" character present in string and also a suffix. +

+ +

Usage

+ +

The default basename command syntax is: + +

+basename [flags] [string] [suffix]
+
+ +Where [flags] are the cat flags, read below for more info, the string command is the pathname and the suffix, if indicated, will be also deleted. + +

+ +

Flags

+ +

Here are some of the most common basename flags: + +

+ +

diff --git a/site/pages/cmd/interm/cat.html b/site/pages/cmd/interm/cat.html new file mode 100644 index 0000000..9814fb8 --- /dev/null +++ b/site/pages/cmd/interm/cat.html @@ -0,0 +1,37 @@ +--- +layout: page +category: Intermediate commands +tags: cat +author: Fabiano Fenini +title: CAT +next-page: "" +--- + +

The cat command can be easily associated to the word “concatenation” but it doesn’t have that only function: in fact, cat command gives us the possibility to create files and also to display them. +

+The name stands for catenate. + +

Usage

+ +

The default cat command syntax is: + +

+cat  [flags] [--] [file1] [file2 ...]  ]
+
+ +Where [flags] are the cat flags, read below for more info, [--] indacates that the following parameters won't be considered as flags, while the file parameters indicates the names of one or more files to concatenate. +Between the names of two files is possible to use the shell redirection symbol ">", in order to redirect the output to the file considered. + +

+ +

Flags

+ +

Here are some of the most common cat flags: + +

+ +

diff --git a/site/pages/cmd/interm/passwd1.html b/site/pages/cmd/interm/passwd1.html new file mode 100644 index 0000000..86aaf69 --- /dev/null +++ b/site/pages/cmd/interm/passwd1.html @@ -0,0 +1,36 @@ +--- +layout: page +category: Intermediate commands +tags: password +author: Fabiano Fenini +title: PASSWD +previous-page: "" +--- +

The passwd command allows us to change or to assign a password of authentication of an user currently in the system. When the user doesn’t have particular privileges, he is only able to change is password, while the root user has the possibility to change also other users’ passwords.
+The name stands for password. + +

Usage

+ +

The default passwd command syntax is: + +

+passwd  [flags]  [user]
+
+ +Where [flags] are the passwd flags, read below for more info, the parameter [user] can only be specified by the root user. If no user is provided, passwd proceed to set the password of the user who uses this command. You will first be asked to enter the user password. + +

+ +

Flags

+ +

Here are some of the most common passwd flags: + +

+ +