diff --git a/site/pages/cmd/advanced/vi.html b/site/pages/cmd/advanced/vi.html index 716ac7c..231eaa9 100644 --- a/site/pages/cmd/advanced/vi.html +++ b/site/pages/cmd/advanced/vi.html @@ -8,35 +8,46 @@ title: vi previous-page: pages/cmd/advanced/tr.html next-page: pages/cmd/advanced/wc.html --- +

The default editor that comes with the UNIX operating system is called vi (visual editor).
The UNIX vi editor is a full screen editor and has two modes of operation: +

  1. Command mode commands which cause action to be taken on the file
  2. Insert mode in which entered text is inserted into the file.
+

In the command mode, every character typed is a command that does something to the text file being edited; a character typed in the -command mode may even cause the vi editor to enter the insert mode.
+command mode may even cause the vi editor to enter the insert mode. +

+

In the insert mode, every character typed is added to the text in the -file; pressing the {Esc} (Escape) key turns off the Insert mode.
+file; pressing the {Esc} (Escape) key turns off the Insert mode. +

+

While there are a number of vi commands, just a handful of these is usually sufficient for beginning vi users. To assist such users, this Web page contains a sampling of basic vi commands. The most basic and useful commands are marked with an asterisk (* or star) in the tables below. With practice, these commands should become -automatic.
+automatic. +

+

Both UNIX and vi are case-sensitive. Be sure not to use a capital letter in place of a lowercase letter; the -results will not be what you expect.
+results will not be what you expect. +

How to start vi

+

To use vi on a file, type in vi filename. If the file named filename exists, then the first page (or screen) of the file will be displayed; if the file does not exist, then an empty diff --git a/site/pages/cmd/basic/4-man.html b/site/pages/cmd/basic/4-man.html index 8baaa07..9841b1f 100644 --- a/site/pages/cmd/basic/4-man.html +++ b/site/pages/cmd/basic/4-man.html @@ -8,6 +8,7 @@ title: man previous-page: pages/cmd/basic/3-ls.html next-page: pages/cmd/basic/5-open.html --- +

The man tool allows you to explore the various utilities of the Shell. To search for more information about a command, just write

@@ -15,11 +16,13 @@ of the Shell. To search for more information about a command, just write

man command-name +

As result, a new session will be opened with information about the command you have typed (and more specifically about its functions and flags).
Using some flags, you can obtain with this command the same results you get -when you use other commands.

+when you use other commands. +

Flags

diff --git a/site/pages/cmd/basic/6-more-less.html b/site/pages/cmd/basic/6-more-less.html index 30ccf7f..9a40519 100644 --- a/site/pages/cmd/basic/6-more-less.html +++ b/site/pages/cmd/basic/6-more-less.html @@ -8,25 +8,31 @@ title: more and less previous-page: pages/cmd/basic/5-open.html next-page: pages/cmd/basic/7-clear.html --- +

Both commands show the content of one or more files and it’s possible to do a research with particular flags, but the “less” one allows us to go also backwards while reading the text of a file.
More is quite old, less is more recent and powerful.
-General syntax for both is:
+General syntax for both is: +

 less [flags] path/name-file.*
 more [flags] path/name-file.*
 
+

The command less provides some useful commands to navigate and modify the file content. -Commands does not include flags, which are included under Options.

+Commands does not include flags, which are included under Options. +

Commands

+

Such commands must be used once the file has been displayed. They are not flags. For a single operation there can be multiple commands. +