Beruflich Dokumente
Kultur Dokumente
Study and Practice on various commands like man, passwd, tty, script, clear, date, cal, cp, mv, ln,
rm, unlink, mkdir, rmdir, du, df, mount, umount, find, umask, ulimit, ps, who, w.
man command:
NAME
SYNOPSIS
man [-acdfFhkKtwW] [--path] [-m system] [-p string] [-C config_file] [-M pathlist] [-P pager]
[-B browser] [-H htmlpager] [-S section_list] [section] name ...
DESCRIPTION
man formats and displays the on-line manual pages. If you specify section, man only looks
in that section of the manual. name is normally the name of the manual page, which is
typically the name of a command, function, or file.
passwd command:
NAME
SYNOPSIS
passwd [-k] [-l] [-u [-f]] [-d] [-n mindays] [-x maxdays] [-w warndays] [-i inactivedays] [-S] [--
stdin] [username]
DESCRIPTION
tty command:
NAME
tty - print the file name of the terminal connected to standard input
SYNOPSIS
tty [OPTION]...
DESCRIPTION
NAME
SYNOPSIS
DESCRIPTION
Script makes a typescript of everything printed on your terminal. It is useful for students who
need a hardcopy record of an interactive session as proof of an assignment, as the typescript file
can be printed out later with lpr.
clear command:
NAME
SYNOPSIS
clear
DESCRIPTION
clear clears your screen if this is possible. It looks in the environment for the terminal type
and then in the terminfo database to figure out how to clear the screen.
date command:
NAME
SYNOPSIS
DESCRIPTION
Display the current time in the given FORMAT, or set the system date.
cal command:
NAME
SYNOPSIS
DESCRIPTION
Cal displays a simple calendar. If arguments are not specified, the current month is displayed.
cp command:
NAME
SYNOPSIS
DESCRIPTION
mv command:
NAME
SYNOPSIS
DESCRIPTION
ln command:
NAME
SYNOPSIS
DESCRIPTION
In the 1st form, create a link to TARGET with the name LINK_NAME. In the 2nd form, create
a link to TARGET in the current directory. In the 3rd and 4th forms, create links to each TARGET
in DIRECTORY. Create hard links by default, symbolic links with --symbolic. When creating hard
links, each TARGET must exist. Symbolic links can hold arbitrary text; if later resolved, a relative
link is interpreted in relation to its parent directory.
rm command:
NAME
SYNOPSIS
rm [OPTION]... FILE...
DESCRIPTION
This manual page documents the GNU version of rm. rm removes each specified file. By
default, it does not remove directories.
If the -I or --interactive=once option is given, & there are more than three files or the -r, -R, or -
-recursive are given, then rm prompts the user for whether to proceed with the entire
operation. If the response is not affirmative, the entire command is aborted.
Otherwise, if a file is unwritable, standard input is a terminal, and the -f or --force option
is not given, or the -i or --interactive=always option is given, rm prompts the user for whether to
remove the file. If the response is not affirmative, the file is skipped.
unlink command:
NAME
unlink - call the unlink function to remove the specified file
SYNOPSIS
unlink FILE
unlink OPTION
DESCRIPTION
mkdir command:
NAME
SYNOPSIS
DESCRIPTION
rmdir command:
NAME
SYNOPSIS
DESCRIPTION
du command:
NAME
SYNOPSIS
du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F
DESCRIPTION
df command:
NAME
SYNOPSIS
df [OPTION]... [FILE]...
DESCRIPTION
This manual page documents the GNU version of df. df displays the amount of disk space
available on the file system containing each file name argument. If no file name is given, the
space available on all currently mounted file systems is shown. Disk space is shown in 1K blocks
by default, unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte
blocks are used.
If an argument is the absolute file name of a disk device node containing a mounted file system,
df shows the space available on that file system rather than on the file system containing the
device node (which is always the root file system). This version of df cannot show the space
available on unmounted file systems, because on most kinds of systems doing so requires very
nonportable intimate knowledge of file system structures.
mount command:
NAME
SYNOPSIS
mount [-lhV]
DESCRIPTION
All files accessible in a Unix system are arranged in one big tree, the file hierarchy,
rooted at /. These files can be spread out over several devices. The mount command serves
to attach the filesystem found on some device to the big file tree. Conversely, the
umount(8) command will detach it again.
This tells the kernel to attach the filesystem found on device (which is of type type) at
the directory dir. The previous contents (if any) and owner and mode of dir become invisible,
and as long as this filesystem remains mounted, the pathname dir refers to the root of the
filesystem on device.
umount command:
NAME
SYNOPSIS
umount [-hV]
DESCRIPTION
The umount command detaches the file system(s) mentioned from the file hierarchy. A file
system is specified by giving the directory where it has been mounted. Giving the special
device on which the file system lives may also work, but is obsolete, mainly because it will fail in
case this device was mounted on more than one directory.
Note that a file system cannot be unmounted when it is busy - for example, when there are
open files on it, or when some process has its working directory there, or when a swap file
on it is in use. The offending process could even be umount itself - it opens libc, and libc in its
turn may open for example locale files. A lazy unmount avoids this problem.
find command:
NAME
DESCRIPTION
This manual page documents the GNU version of find. GNU find searches the directory tree
rooted at each given file name by evaluating the given expression from left to right,
according to the rules of precedence (see section OPERATORS), until the outcome is known
(the left hand side is false for and operations, true for or), at which point find moves on to the
next file name.
If you are using find in an environment where security is important (for example if you are
using it to search directories that are writable by other users), you should read the "Security
Considerations" chapter of the findutils documentation, which is called Finding Files and comes
with findutils. That document also includes a lot more detail and discussion than this manual
page, so you may find it a more useful source of information.
umask command: