lunes, 9 de mayo de 2011
Comandos de unix SFTP
1.- SFTP
sftp is an interactive file transfer program, similar to ftp(1), which performs all operations over an encrypted ssh(1) transport. It may also use many features of ssh, such as public key authentication and compression. Sftp connects and logs into the specified host, then enters an interactive command mode.
The second usage format will retrieve files automatically if a non-interactive authentication method is used; otherwise it will do so after successful interactive authentication.
2.- GET
remote-path [local-path]
Retrieve the remote-path and store it on the local machine. If the local path name is not specified, it is given the same name it has on the remote machine. remote-path may contain glob(3) characters and may match multiple files. If it does and local-path is specified, then local-path must specify a directory. If the -P flag is specified, then full file permissions and access times are copied too.
3.- PUT
local-path [remote-path]
Upload local-path and store it on the remote machine. If the remote path name is not specified, it is given the same name it has on the local machine. local-path may contain glob(3) characters and may match multiple files. If it does and remote-path is specified, then remote-path must specify a directory. If the -P flag is specified, then the file's full permission and access time are copied too.
4.- Proceso
Se le llama proceso en Unix a un programa en ejecución y al objeto abstracto que crea el sistema operativo para manejar el acceso de ese programa a los recursos del sistema (memoria, CPU, dispositivos de E/S). Pueden coexistir varias instancias de un mismo programa ejecutando en forma simultánea. Cada una de ellas es un proceso diferente.
5.- PS
The ps utility displays a header line, followed by lines containing information about all of your processes that have controlling terminals. A different set of processes can be selected for display by using any
combination of the -a, -G, -g, -p, -T, -t, -U, and -u options. If more than one of these options are given, then ps will select all processes which are matched by at least one of the given options.
For the processes which have been selected for display, ps will usually display one line per process. The -M option may result in multiple output lines (one line per thread) for some processes.
By default all of these output lines are sorted first by controlling terminal, then by process ID. The -m, -r, and -v options will change the sort order. If more than one sorting option was given, then the selected processes will be sorted by the last sorting option which was specified.
For the processes which have been selected for display, the information to display is selected based on a set of keywords (see the -L, -O, and -o options). The default output format includes, for each process, the
process' ID, controlling terminal, CPU time (including both user and system time), state, and associated command.
6.- KILL
The kill utility sends a signal to the processes specified by the pid operand(s). Only the super-user may send signals to other users' processes. terminate or signal a process
lunes, 2 de mayo de 2011
Script
¿Qué es un script?
Un script es una serie de instrucciones los cuales conforman a los programas escritos en unix. Es una lista de comandos en un archivo, y que se pueden ejecutar todos de una sola vez, sólo invocando el nombre del archivo
Suscribirse a:
Entradas (Atom)