Documente Academic
Documente Profesional
Documente Cultură
DE LINUX
REPASO
Comandos UNIX
FORMATO DE LOS COMANDOS
SYNOPSIS
date [OPTION]... [+FORMAT]
date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
DESCRIPTION
Display the current time in the given FORMAT, or set the system date.
NAME
who - show who is logged on
SYNOPSIS
who [OPTION]... [ FILE | ARG1 ARG2 ]
DESCRIPTION
-H, --heading print line of column headings
-i, -u, --idle add user idle time as HOURS:MINUTES, . or old
-m only hostname and user associated with stdin
NAME
man - format and display the on-line manual pages
SYNOPSIS
man [-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.
NAME
echo - display a line of text
SYNOPSIS
echo [OPTION]... [STRING]...
DESCRIPTION
Echo the STRING(s) to standard output.
-n do not output the trailing newline
-e enable interpretation of the backslash-escaped characters
listed below
-E disable interpretation of those sequences in STRINGs
--help display this help and exit (should be alone)
--version output version information and exit (should be alone)
NAME
cd - change the current directory
SYNOPSIS
cd [-LP] [dir]
DESCRIPTION
Change the current directory to dir. The variable HOME is the default
dir.
NAME
pwd - print the pathname
SYNOPSIS
pwd [-LP]
DESCRIPTION
Print the absolute pathname of the current working directory.
NAME
mkdir - make directories
SYNOPSIS
mkdir [OPTION] DIRECTORY...
DESCRIPTION
Create the DIRECTORY(ies), if they do not already exist.
-m, --mode=MODE
set permission mode (as in chmod), not rwxrwxrwx -
umask
NAME
rmdir - remove empty directories
SYNOPSIS
rmdir [OPTION]... DIRECTORY...
DESCRIPTION
Remove the DIRECTORY(ies), if they are empty.
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by
default).
NAME
cat - concatenate files and print on the standard output
SYNOPSIS
cat [OPTION] [FILE]...
DESCRIPTION
Concatenate FILE(s), or standard input, to standard output.
SYNOPSIS
more [-dlfpcsu] [-num] [+/ pattern] [+ linenum] [file ...]
DESCRIPTION
More is a filter for paging through text one screenful at a time.
COMMANDS
h or ? Help
SPACE Display next k lines of text.
q or Q Exit.
b or ^B Skip backwards k screens.
/pattern Search for kth occurrence of regular expression.
NAME
cp - copy files and directories
SYNOPSIS
cp [OPTION]... SOURCE DEST
cp [OPTION]... SOURCE... DIRECTORY
DESCRIPTION
Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
NAME
mv - move (rename) files
SYNOPSIS
mv [OPTION]... SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... --target-directory=DIRECTORY SOURCE...
DESCRIPTION
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
SYNOPSIS
rm [OPTION]... FILE...
DESCRIPTION
rm removes each specified file. By default, it does not remove
directories.
OPTIONS
Remove (unlink) the FILE(s).
SYNOPSIS
ln [OPTION]... TARGET [LINK_NAME]
DESCRIPTION
Create a link to the specified TARGET with optional LINK_NAME.
If LINK_NAME is omitted, a link with the same basename as the
TARGET is created in the current directory. Create hard links by
default, symbolic links with --symbolic. When creating hard links, each
TARGET must exist.
SYNOPSIS
chmod [OPTION]... MODE[,MODE]... FILE...
chmod [OPTION]... OCTAL-MODE FILE...
DESCRIPTION
chmod changes the permissions of each given file according to mode,
which can be either a symbolic representation of changes to make, or
an octal number representing the bit pattern for the new permissions.
OPTIONS
Change the mode of each FILE to MODE.
Nivel de la modificación:
u (propietario)
g (grupo)
o (otros)
Si no se indica, se entiende que la modificación afecta a los 3 niveles.
Tipo de modificación:
+ añadir permiso (dejando los demás como están).
– eliminar permiso (dejando los demás como están).
= asignar sólo los permisos asignados (y eliminando los demás).
Permisos:
r lectura.
w escritura.
x ejecución.
NAME
chown - change file owner and group
SYNOPSIS
chown [OPTION]... OWNER[:[GROUP]] FILE...
chown [OPTION]... :GROUP FILE...
DESCRIPTION
chown changes the user and/or group ownership of each given file,
according to its first non-option argument.
--from=CURRENT_OWNER:CURRENT_GROUP
-R operate on files and directories recursively
NAME
chgrp - change group ownership
SYNOPSIS
chgrp [OPTION]... GROUP FILE...
chgrp [OPTION]... --reference=RFILE FILE...
DESCRIPTION
Change the group membership of each FILE to GROUP.
Ocho campos:
1: Usuario que ordena la ejecución del proceso (UID).
2: Número de identificación del proceso (PID).
3: Número de identificación del proceso padre (PPID).
4: Tiempo de utilización del procesador para reparto de gastos.
5: Fecha u hora de comienzo del proceso.
6: Terminal desde la que se ejecuta el proceso.
7: Tiempo de ejecución del proceso.
8: Nombre del proceso.
$ VAR=`PROC`
• Los argumentos sobre los que trabaja el comando test son ficheros,
números enteros y cadenas de caracteres.
• Salir de Emacs: C-x C-c; si existe algún buffer sin guardar, Emacs
nos preguntará si lo queremos guardar o desechar los cambios.
LINK: http://www.sindominio.net/ayuda/emacs/
• EDITOR vi
• EDITOR ex
• EDITOR joe
• EDITOR pico