From 4b189fea1f61c828fd52aceee7326b531a093dfb Mon Sep 17 00:00:00 2001
From: bevilj chsh
command can be used to change the following user's login shell properties:
diff --git a/site/pages/cmd/interm/cowsay.html b/site/pages/cmd/interm/cowsay.html
new file mode 100644
index 0000000..aa9d3c7
--- /dev/null
+++ b/site/pages/cmd/interm/cowsay.html
@@ -0,0 +1,47 @@
+---
+layout: page
+category-page: intermediate
+category-title: Intermediate commands
+tags: cow print say dragon lolcat
+author: Joao Tomazoni
+title: cowsay
+previous-page: pages/cmd/interm/chsh.html
+next-page: pages/cmd/interm/curl.html
+---
+
+cowsay
is a entertainment command, however it's not guaranteed that your terminal is
+going to have this command available as default. It most likely won't, however you can download
+it yourself using a package manager like brew.sh.
+
+
+cowsay "Hello there"
+
+
+Very useful wouldn't you agree?
+You can also pipe commands like ls with cowsay, for example:
+
+
+ls | cowsay
+
+
+It returns the cow saying the list of files in the current directory.
+
+Flags
+
+-f if you aren't satisfied with the cow, you have other possibilities of
+animals instead of cow. One example is the dragon which you can get by using "-f dragon",
+it will now draw a fantasy-like dragon.
+
+
+cowsay -f dragon "Burn World"
+
+
+There are more animal drawings for the cowsay command, just type cowsay -l in your terminal for
+the list of the animals you can use.
+
+Suggestion: combine with
+
+lolcat
lolcat
is another entertainment command that is also installed with the brew pack you
+installed previously for the cowsay
command, and they work perfectly together.
+Adding lolcat at the end of the cowsay command and its quote will add random colours for the
+drawing.
diff --git a/site/pages/cmd/interm/curl.html b/site/pages/cmd/interm/curl.html
index 76a360c..fb286f7 100644
--- a/site/pages/cmd/interm/curl.html
+++ b/site/pages/cmd/interm/curl.html
@@ -5,7 +5,7 @@ category-title: Intermediate commands
tags: curl download http client crawler request online
author: Claudio Maggioni
title: curl
-previous-page: pages/cmd/interm/chsh.html
+previous-page: pages/cmd/interm/cowsay.html
next-page: pages/cmd/interm/fg.html
---
The curl
command is a fast and versatile shell program that can
diff --git a/site/pages/cmd/interm/sudo.html b/site/pages/cmd/interm/sudo.html
new file mode 100644
index 0000000..4571fd2
--- /dev/null
+++ b/site/pages/cmd/interm/sudo.html
@@ -0,0 +1,58 @@
+---
+layout: page
+category-page: intermediate
+category-title: Intermediate commands
+tags: super user admin execute root
+author: Joao Tomazoni
+title: sudo
+previous-page: pages/cmd/interm/strings.html
+next-page: pages/cmd/interm/sync.html
+---
+
+sudo
stands for Substitute User DO or SuperUser DO.
+It's a powerful command that you must handle with great care.
+If you are a member of the proper group and have permission to do sudo
+commands than you can execute commands as if you were the root user.
+
+Say you're an administrator in the users folder, and you would like to see a subfolder
+inside the home folder from another user named Nate, you may attempt to use the command:
+ls -lr Nate
, but you will come by a whole bunch of permissions denied messages,
+this happens because even-though you're an administrator, you don't
+have the rights or permissions to get inside of Nate's home folder and look
+inside those subfolders.
+That's where the sudo command comes in:
+
+
+ls -lr Nate
+
+
+Returns denied access messages. To fix this, proceed to add sudo before the
+previously inserted command:
+
+
+sudo ls -lr Nate
+ Password: (type the local administrator password)
+
+
+Now, Instead of the denied messages now you actually get a listing of all those subfolders
+in Nate's home folder. So you can execute commands temporarily as if you were the root user,
+which can do absolutely anything on the system. It's is very powerful to troubleshooting
+or fixing problems.
+
+Flags
+
+-s: If you're going to execute a lot of commands with sudo, you can go inside
+the root shell using the flag -s
,
+so that you won't need to keep typing sudo over and over again.
+By typing whoami command after typing sudo -s
should return you "root".
+This is what it look likes:
+sudo -s +Password: (type the local administrator password) +whoami + root ++ +Remember, with great power comes great responsibility, be careful with sudo commands.
diff --git a/site/pages/fs/touch.html b/site/pages/fs/touch.html
index e66fd29..d547bb5 100644
--- a/site/pages/fs/touch.html
+++ b/site/pages/fs/touch.html
@@ -6,6 +6,7 @@ tags: directory list create new file
author: Mattia Hijman
title: touch
previous-page: pages/fs/rm.html
+next-page: pages/fs/zip.html
---
The touch
command updates the modification and access time of the a file.
diff --git a/site/pages/fs/zip.html b/site/pages/fs/zip.html
new file mode 100644
index 0000000..a524472
--- /dev/null
+++ b/site/pages/fs/zip.html
@@ -0,0 +1,49 @@
+---
+layout: page
+category-page: fs
+category-title: FileSystem
+tags: compress file directory extract
+author: Joao Tomazoni
+title: zip
+previous-page: pages/fs/rm.html
+---
+
+zip
is the command to package and compress files together as .zip extension.
+Simply type zip + name of the zip file + name of the files to be compressed as .zip.
+
+
+zip -r [target.zip] [source1] [source2] ++ +Say you want to compress a file named test.txt and an image named image.png together +in one zip file named test.zip. This is what it should look like: + +
+zip -r test.zip text.txt image.png ++ +In this case it should return a test.zip file in your desktop with a directory inside +containing the two files together.
+zip -e test.zip text.txt image.png + Enter password: (password required to unzip the file) ++
+zip -u test.zip newtext.txt ++ The newtext.txt file will be added to the current test.zip file. +
+zip -d test.zip newtext.txt ++ The newtext.txt file will be removed from the current test.zip file. +