team-leader: W3C validator code review (2)
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@257 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
parent
4a3961e749
commit
e5232f38ee
8 changed files with 47 additions and 18 deletions
site/pages/cmd
|
@ -8,35 +8,46 @@ title: vi
|
|||
previous-page: pages/cmd/advanced/tr.html
|
||||
next-page: pages/cmd/advanced/wc.html
|
||||
---
|
||||
<p>
|
||||
The default editor that comes with the UNIX operating system is called
|
||||
<code>vi</code> (visual editor).<br>
|
||||
|
||||
The UNIX vi editor is a full screen editor and has two modes of operation:
|
||||
</p>
|
||||
|
||||
<ol>
|
||||
<li>Command mode commands which cause action to be taken on the file</li>
|
||||
<li>Insert mode in which entered text is inserted into the file.</li>
|
||||
</ol>
|
||||
|
||||
<p>
|
||||
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.<br>
|
||||
command mode may even cause the vi editor to enter the insert mode.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
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.<br>
|
||||
file; pressing the {Esc} (Escape) key turns off the Insert mode.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
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.<br>
|
||||
automatic.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Both UNIX and vi are <b>case-sensitive</b>. Be sure not to use a
|
||||
capital letter in place of a lowercase letter; the
|
||||
results will not be what you expect.<br>
|
||||
results will not be what you expect.
|
||||
</p>
|
||||
|
||||
<h3>How to start <code>vi</code></h3>
|
||||
<p>
|
||||
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
|
||||
|
|
|
@ -8,6 +8,7 @@ title: man
|
|||
previous-page: pages/cmd/basic/3-ls.html
|
||||
next-page: pages/cmd/basic/5-open.html
|
||||
---
|
||||
<p>
|
||||
The <code>man</code> tool allows you to explore the various utilities
|
||||
of the Shell. To search for more information about a command, just write</p>
|
||||
|
||||
|
@ -15,11 +16,13 @@ of the Shell. To search for more information about a command, just write</p>
|
|||
man command-name
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
As result, a new session will be opened with information about the command
|
||||
you have typed (and more specifically about its functions and flags).<br>
|
||||
|
||||
Using some flags, you can obtain with this command the same results you get
|
||||
when you use other commands.<br><br>
|
||||
when you use other commands.
|
||||
</p>
|
||||
|
||||
<h3>Flags</h3>
|
||||
|
||||
|
|
|
@ -8,25 +8,31 @@ title: more and less
|
|||
previous-page: pages/cmd/basic/5-open.html
|
||||
next-page: pages/cmd/basic/7-clear.html
|
||||
---
|
||||
<p>
|
||||
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.<br>
|
||||
More is quite old, less is more recent and powerful.<br>
|
||||
|
||||
General syntax for both is:<br>
|
||||
General syntax for both is:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
less [flags] path/name-file.*
|
||||
more [flags] path/name-file.*
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
The command <code>less</code> provides some useful commands to navigate and modify the file content.
|
||||
Commands does not include flags, which are included under Options.<br><br>
|
||||
Commands does not include flags, which are included under <i>Options</i>.
|
||||
</p>
|
||||
|
||||
<h3>Commands</h3>
|
||||
|
||||
<p>
|
||||
Such commands must be used once the file has been displayed.
|
||||
They are not flags. For a single operation there can be multiple commands.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><code>ENTER RETURN e ^E j ^N CR </code>:
|
||||
|
@ -51,13 +57,14 @@ They are not flags. For a single operation there can be multiple commands.
|
|||
|
||||
<h3>Jumping</h3>
|
||||
|
||||
<p>
|
||||
Such commands must be used once the file has been displayed.
|
||||
They are not. For a single operation there can be multiple commands. </p>
|
||||
|
||||
<ul>
|
||||
<li><code> g < ESC-< </code>:
|
||||
<li><code> g < ESC-< </code>:
|
||||
Go to line N, by default 1, if N is not specified.</li>
|
||||
<li><code> G > ESC-> </code>:
|
||||
<li><code> G > ESC-> </code>:
|
||||
Go to line N, by default the last one , if N is not specified.</li>
|
||||
<li><code> t </code>:
|
||||
Go to the (N-th) next tag. </li>
|
||||
|
|
|
@ -38,7 +38,7 @@ number, line breaks are added every specified "number" characters.
|
|||
base64 -b number path/input.file path/output.file
|
||||
</pre>
|
||||
|
||||
By leaving the number field empty, an unbroken stream will be generated.<
|
||||
By leaving the number field empty, an unbroken stream will be generated.
|
||||
|
||||
<h3>Decode Base64</h3>
|
||||
Using the <code>-D</code> flag (which stands for decode), you obtain as
|
||||
|
|
|
@ -9,6 +9,7 @@ previous-page: pages/cmd/interm/mount.html
|
|||
next-page: pages/cmd/interm/pass.html
|
||||
---
|
||||
|
||||
<p>
|
||||
Neofetch is a fast, higly customizable system info script. a CLI system
|
||||
information tool written in BASH. Neofetch displays information about your
|
||||
system next to an image, your OS logo, or any ASCII file of your choice.</p>
|
||||
|
|
|
@ -29,7 +29,7 @@ system clipboard, erasing them after a certain number of seconds (usually
|
|||
<p>
|
||||
<code>pass</code> has many unofficial GUI clients and migration scripts from
|
||||
other password managers. For more information, check out
|
||||
<a href=https://www.passwordstore.org/">the official website</a>.
|
||||
<a href="https://www.passwordstore.org/#other">the official website</a>.
|
||||
</p>
|
||||
|
||||
<h3>Setup</h3>
|
||||
|
|
|
@ -5,16 +5,19 @@ category-title: Intermediate commands
|
|||
tags: strings read binaries file
|
||||
author: Marco Farace
|
||||
title: strings
|
||||
previous-page: pages/cmd/interm//ssh.html
|
||||
next-page: pages/cmd/interm//sync.html
|
||||
previous-page: pages/cmd/interm/ssh.html
|
||||
next-page: pages/cmd/interm/sync.html
|
||||
---
|
||||
|
||||
<p>
|
||||
The strings command returns each string of printable characters (ASCII)
|
||||
in files. Its main uses are to determine the contents of and to extract text
|
||||
from binary files (i.e., non-text files). From the Shell manual: "find the
|
||||
printable strings in a object, or other binary, file".<br>
|
||||
printable strings in a object, or other binary, file".
|
||||
</p>
|
||||
|
||||
Strings can be used to extract character information and string of a given lenght
|
||||
<p>
|
||||
Strings can be used to extract character information and string of a given length
|
||||
from text file(s). When used without any options, strings displays all strings
|
||||
that are at least four characters in length in the files whose names are
|
||||
supplied as arguments (i.e., input data). Strings that are on separate lines
|
||||
|
@ -22,13 +25,15 @@ in the input files are shown on separate lines on the screen, and an attempt
|
|||
is made to display all strings found on a single line in a file on a single
|
||||
line on the screen (although there may be a carryover to subsequent lines in
|
||||
the event that numerous strings are found on a single line). strings looks in
|
||||
all sections of the object files except the (__TEXT,__text) section.<br>
|
||||
all sections of the object files except the (__TEXT,__text) section.
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
strings [options] file_name(s)
|
||||
</pre>
|
||||
|
||||
<h3> Flags <h3>
|
||||
<h3>Flags</h3>
|
||||
|
||||
<ul>
|
||||
<li>-n: Specify the minimum string length, where the number argument is
|
||||
a positive decimal integer. The default is 4.</li>
|
||||
|
|
|
@ -8,13 +8,15 @@ title: sync
|
|||
previous-page: pages/cmd/interm/strings.html
|
||||
next-page: pages/cmd/interm/tar.html
|
||||
---
|
||||
|
||||
<p>
|
||||
The <code>sync</code> utility force the completion of pending disk writes.</p>
|
||||
|
||||
<pre>
|
||||
sync
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
This command can be used to verify that there are no pending disk writes,
|
||||
so that all the operations are completed, before the processor is stopped by other
|
||||
commands.
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue