interm: fix formatting for new pages
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@139 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
parent
9bc0101ea2
commit
ead6349b9a
5 changed files with 118 additions and 152 deletions
site/pages
|
@ -5,49 +5,39 @@ category-page: intermediate
|
|||
author: Marco Farace
|
||||
title: install
|
||||
---
|
||||
|
||||
<h2>Use: install binaries, move or copy files</h2>
|
||||
|
||||
<p>The file(s) are copied to the target file or directory. If the destination
|
||||
is a directory, then the file is copied into directory with its original
|
||||
filename. If the target file already exists, it is either renamed to
|
||||
file.old if the -b option is given or overwritten if permissions allow.
|
||||
An alternate backup suffix may be specified via the -B option's argument.
|
||||
Basic syntax is in the form <code>install [OPTION]... SOURCE DEST</code>
|
||||
<br><code>$install -D /source/folder/*.xyz /destination/folder</code><br>
|
||||
this line of code copies all .xyz file from /source/folder to
|
||||
/destination/folder</p>
|
||||
|
||||
<p>
|
||||
The file(s) are copied to the target file or directory. If the destination
|
||||
is a directory, then the file is copied into directory with its original
|
||||
filename. If the target file already exists, it is either renamed to
|
||||
file.old if the -b option is given or overwritten if permissions allow.<br>
|
||||
An alternate backup suffix may be specified via the -B option's argument.<br>
|
||||
Basic syntax is in the form
|
||||
|
||||
Here are just some of the most useful options for this command:
|
||||
<ul>
|
||||
<li>-b<br></li>
|
||||
Back up any existing files before overwriting them by renaming
|
||||
them to file.old. See -B for specifying a different backup suffix.
|
||||
(-B suffix Use suffix as the backup suffix if -b is given)
|
||||
<pre>
|
||||
install [OPTION]... SOURCE DEST
|
||||
</pre><br>
|
||||
|
||||
<li>-C<br></li>
|
||||
Copy the file. If the target file already exists and the files
|
||||
are the same, then don't change the modification time of the target
|
||||
This line of code copies all .xyz file from <i>/source/folder</i> to <i>/destination/folder</i>
|
||||
|
||||
<li>-d<br></li>
|
||||
Create directories. Missing parent directories are created as
|
||||
required.
|
||||
<pre>
|
||||
install -D /source/folder/*.xyz /destination/folder
|
||||
</pre><br>
|
||||
|
||||
<li>-f<br></li>
|
||||
Specify the target's file flags; see chflags(1) for a list of
|
||||
possible flags and their meanings.
|
||||
|
||||
<li>-g<br></li>
|
||||
Specify a group. A numeric GID is allowed.
|
||||
|
||||
<li>-m<br></li>
|
||||
Specify an alternate mode. The default mode is set to rwxr-xr-x
|
||||
(0755). The specified mode may be either an octal or symbolic
|
||||
value;
|
||||
|
||||
<li>-o<br></li>
|
||||
Specify an owner. A numeric UID is allowed.
|
||||
<h3>Flags</h3>
|
||||
|
||||
<ul>
|
||||
<li>-b: Back up any existing files before overwriting them by renaming
|
||||
them to file.old. See -B for specifying a different backup suffix.
|
||||
(-B suffix Use suffix as the backup suffix if -b is given)</li>
|
||||
<li>-C: Copy the file. If the target file already exists and the files
|
||||
are the same, then don't change the modification time of the target</li>
|
||||
<li>-d: Create directories. Missing parent directories are created as required.</li>
|
||||
<li>-f: Specify the target's file flags; see chflags(1) for a list of
|
||||
possible flags and their meanings.</li>
|
||||
<li>-g: Specify a group. A numeric GID is allowed.</li>
|
||||
<li>-m: Specify an alternate mode. The default mode is set to rwxr-xr-x
|
||||
(0755). The specified mode may be either an octal or symbolic
|
||||
value.</li>
|
||||
<li>-o: Specify an owner. A numeric UID is allowed.</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
---
|
||||
layout: page
|
||||
category_title: Intermediate commands
|
||||
category-page: intermediate
|
||||
author: Marco Farace
|
||||
title: Who/WhoamI
|
||||
---
|
||||
|
||||
<h2>Use: display a list of all logged in users/display info about current user</h2>
|
||||
|
||||
<p>The who utility displays a list of all users currently logged on, showing
|
||||
for each user the login name, tty name, the date and time of login, and
|
||||
hostname if not local. </p>
|
||||
|
||||
<p>
|
||||
|
||||
Here are just some of the most useful options for this command:
|
||||
|
||||
<ul>
|
||||
|
||||
<li>-b</li><br> Display time of last system boot.
|
||||
|
||||
<li> -d</li><br> Print dead processes.
|
||||
|
||||
<li>-H</li><br> Write column headings above the regular output.
|
||||
|
||||
<li>-m</li><br> Only print information about the current terminal. This is the
|
||||
POSIX way of saying who am i.
|
||||
|
||||
<li>-q</li><br> ``Quick mode'': List only the names and the number of users cur-
|
||||
rently logged on. When this option is used, all other options are
|
||||
ignored.
|
||||
|
||||
<li>-s</li><br> List only the name, line and time fields. This is the default.
|
||||
|
||||
<li>-T</li><br> Print a character after the user name indicating the state of the
|
||||
terminal line: `+' if the terminal is writable; `-' if it is not;
|
||||
and `?' if a bad line is encountered.
|
||||
|
||||
<li>-u</li><br> Print the idle time for each user, and the associated process ID.
|
||||
|
||||
<li>am I</li><br> Returns the invoker's real user name.
|
||||
|
||||
<li>file</li><br> By default, who gathers information from the file /var/run/utmpx.
|
||||
An alternative file may be specified.
|
||||
|
||||
<ul>
|
||||
</p>
|
|
@ -6,78 +6,65 @@ author: Marco Farace
|
|||
title: mount
|
||||
---
|
||||
|
||||
<h2>Use: mount file systems </h2>
|
||||
|
||||
<p>To access a file on a Unix-like machine, the file system that contains it
|
||||
needs to be mounted with the mount command. Mount is frequently used for
|
||||
movable storage devices such as SD cards, DVDs, etc...
|
||||
<p>
|
||||
To access a file on a Unix-like machine, the file system that contains it
|
||||
needs to be mounted with the <code>mount</code> command. Mount is frequently used for
|
||||
movable storage devices such as SD cards, DVDs, etc...<br>
|
||||
|
||||
The mount command instructs the operating system that a file system is ready to
|
||||
use, and associates it with a particular point in the overall file system
|
||||
hierarchy (its mount point) and sets options relating to its access. Mounting
|
||||
makes file systems, files, directories, devices and special files available for
|
||||
use and available to the user.
|
||||
use and available to the user.<br>
|
||||
|
||||
Its counterpart, umount, does exactly the opposite.
|
||||
Both mount and umount require root user persmissions.
|
||||
To display all mounted partitions just write <code> mount </code></p>
|
||||
Its counterpart, umount, does exactly the opposite.<br>
|
||||
Both mount and umount require root user persmissions.<br>
|
||||
To display all mounted partitions just write <code>mount</code>.<br>
|
||||
|
||||
<p> This command will mount the second partition of a HDD:<br>
|
||||
<code> $ mount /dev/hda2 /media/PHOTOS </code>
|
||||
</p>
|
||||
This command will mount the second partition of a HDD:<br>
|
||||
<pre>
|
||||
mount /dev/hda2 /media/PHOTOS
|
||||
</pre><br>
|
||||
|
||||
<p> and will unmount (by referring to the physical disk partition):<br>
|
||||
<code> $ umount /dev/hda2 </code>
|
||||
</p>
|
||||
and will unmount (by referring to the physical disk partition):<br>
|
||||
<pre>
|
||||
umount /dev/hda2
|
||||
</pre><br>
|
||||
|
||||
<p> or (by referring to the mount point):<br>
|
||||
<code> $ umount /media/PHOTOS </code>
|
||||
</p>
|
||||
or (by referring to the mount point):<br>
|
||||
<pre>
|
||||
umount /media/PHOTOS
|
||||
</pre><br><br>
|
||||
|
||||
<p> Here are just some of the most useful options for this command:
|
||||
<ul>
|
||||
<li>-d<br></li>
|
||||
Causes everything to be done except for the actual system call.
|
||||
This option is useful in conjunction with the -v flag to determine
|
||||
what the mount command is trying to do.
|
||||
|
||||
<li>-v<br></li>
|
||||
Verbose mode. (Gives additional detail during the mount process)
|
||||
|
||||
<li>-f<br></li>
|
||||
Forces the revocation of write access when trying to downgrade a
|
||||
filesystem mount status from read-write to read-only.
|
||||
|
||||
<li>-u<br></li>
|
||||
The -u flag indicates that the status of an already mounted file
|
||||
system should be changed. Any of the options discussed above
|
||||
(the -o option) may be changed; also a file system can be changed
|
||||
from read-only to read-write or vice versa. An attempt to change
|
||||
from read-write to read-only will fail if any files on the
|
||||
filesystem are currently open for writing unless the -f flag is
|
||||
also specified.
|
||||
|
||||
<li>-w<br></li>
|
||||
Mount the file system read-write.
|
||||
|
||||
<li>-o<br></li>
|
||||
Options are specified with a -o flag followed by a comma separated
|
||||
string of options. The following options are available:
|
||||
<ul>
|
||||
<li>noexec<br></li>
|
||||
Do not allow execution of any binaries on the mounted file system.
|
||||
<h3>Flags</h3>
|
||||
<ul>
|
||||
<li>-d: Causes everything to be done except for the actual system call.
|
||||
This option is useful in conjunction with the -v flag to determine
|
||||
what the mount command is trying to do.</li>
|
||||
<li>-v: Verbose mode. (Gives additional detail during the mount process)</li>
|
||||
<li>-f: Forces the revocation of write access when trying to downgrade a
|
||||
filesystem mount status from read-write to read-only.</li>
|
||||
<li>-u: The -u flag indicates that the status of an already mounted file
|
||||
system should be changed. Any of the options discussed above
|
||||
(the -o option) may be changed; also a file system can be changed
|
||||
from read-only to read-write or vice versa. An attempt to change
|
||||
from read-write to read-only will fail if any files on the
|
||||
filesystem are currently open for writing unless the -f flag is
|
||||
also specified.</li>
|
||||
<li>-w: Mount the file system read-write.</li>
|
||||
<li>-o: Options are specified with a -o flag followed by a comma separated
|
||||
string of options. The following options are available:
|
||||
<ul>
|
||||
<li>noexec: Do not allow execution of any binaries on the mounted file system.
|
||||
This option is useful for a server that has file systems containing
|
||||
binaries for architectures other than its own.
|
||||
|
||||
<li>noowners<br></li>
|
||||
Ignore the ownership field for the entire volume. This causes all
|
||||
binaries for architectures other than its own.</li>
|
||||
<li>noowners: Ignore the ownership field for the entire volume. This causes all
|
||||
objects to appear as owned by user ID 99 and group ID 99. User ID 99
|
||||
is interpreted as the current effective user ID, while group ID 99 is
|
||||
used directly and translates to ``unknown''.
|
||||
|
||||
<li>nobrowse<br></li>
|
||||
This option indicates that the mount point should not be visible via
|
||||
the GUI (It will not appear on the Desktop as a separate volume).
|
||||
</ul>
|
||||
</ul>
|
||||
</p>
|
||||
used directly and translates to ``unknown''.</li>
|
||||
<li>nobrowse: This option indicates that the mount point should not be visible via
|
||||
the GUI (It will not appear on the Desktop as a separate volume).</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
|
37
site/pages/cmd/interm/who.html
Normal file
37
site/pages/cmd/interm/who.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
layout: page
|
||||
category_title: Intermediate commands
|
||||
category-page: intermediate
|
||||
author: Marco Farace
|
||||
title: who
|
||||
---
|
||||
<p>
|
||||
The <code>who</code> command displays a list of all logged in users/display info
|
||||
about current user
|
||||
|
||||
The who utility displays a list of all users currently logged on, showing
|
||||
for each user the login name, tty name, the date and time of login, and
|
||||
hostname if not local.<br><br>
|
||||
|
||||
<h3>Flags</h3>
|
||||
Here are just some of the most useful options for this command:
|
||||
|
||||
<ul>
|
||||
<li>-b: Display time of last system boot.</li>
|
||||
<li> -d: Print dead processes.</li>
|
||||
<li>-H: Write column headings above the regular output.</li>
|
||||
<li>-m: Only print information about the current terminal. This is the
|
||||
POSIX way of saying who am i.</li>
|
||||
<li>-q: <i>Quick mode</i>: List only the names and the number of users currently logged on.
|
||||
When this option is used, all other options are
|
||||
ignored.</li>
|
||||
<li>-s: List only the name, line and time fields. This is the default.</li>
|
||||
<li>-T: Print a character after the user name indicating the state of the
|
||||
terminal line: "+" if the terminal is writable; "-" if it is not;
|
||||
and "?" if a bad line is encountered.</li>
|
||||
<li>-u: Print the idle time for each user, and the associated process ID.</li>
|
||||
<li>am I: Returns the invoker's real user name. You can also use <code>whoami</code></li>
|
||||
<li>file: By default, who gathers information from the file /var/run/utmpx.
|
||||
An alternative file may be specified.</li>
|
||||
<ul>
|
||||
</p>
|
|
@ -6,6 +6,7 @@ tags: working directory current position where
|
|||
author: Mirko Ponzio
|
||||
title: pwd
|
||||
---
|
||||
|
||||
<p>
|
||||
The command <code>pwd</code>(abbreviation of print working directory, it returns the
|
||||
corrent directory) it is a command of the operation system Unix and Unix-like,
|
||||
|
@ -25,9 +26,8 @@ knowing where you are, you must use the pwd command.<br><br>
|
|||
|
||||
<h3>Flags</h3>
|
||||
<ul>
|
||||
<li> -L : Display the logical current working directory.</li>
|
||||
<li>-P : Display the physical current working directory (all symbolic
|
||||
links resolved).</li>
|
||||
<li> <b>-L</b>: Display the logical current working directory.</li>
|
||||
<li> <b>-P</b>: Display the physical current working directory (all symbolic links resolved).</li>
|
||||
</ul>
|
||||
|
||||
If no options are specified, the -L option is assumed.
|
||||
|
|
Loading…
Reference in a new issue