Comandos unix

Páginas: 87 (21503 palabras) Publicado: 19 de marzo de 2011
Unix / Linux commands
Unix command ALIAS Description Create abbreviations (aliases) for commands Change the current directory Execute a command at a specified time Details alias abbreviation=command Displays a list of all aliases, standard arguments can be used (-a, -l, etc.). To cancel the alias use the unalias command. F.e. alias my_command='ls -al'. archie filename Search the Archie databasefor a file on a FTP site. at [-filename][-m] time -filename - Read the command(s) from the file specified. -m = Notify the user by mail when the job is completed. time = The time when the commands are going to be executed. bc To use decimals, type scale = number (of decimal digits). End the calculator with Ctrl-D. bg [%n] %n = Without this parameter it displays the jobs that are currently executedin the background. With a number the process with the given number is executed in the background. & = At the end of a command starts the process in the background. cal [month][year]

ARCHIE

AT

BC

Use the calculator

BG

Execute processes in the background

CAL

Display the calendar of the current month Cancel requests for printing

CANCEL

cancel [ -u user] print-requestRequests can be cancelled by using the printer-id or by specifying the printer name. -u user = Cancel print jobs that are queued for the specified user. cat [-sn] [filenames] If more than one filename is supplied, it is added at the end of the previous file and displayed. -n = Display numbers in ascending order in front of each line.

CAT

Display one or more files

-s = Do not comment aboutnonexistent files. filenames = The filename(s) in the order that you want them to be displayed. CD Change the current directory cd [pathname] Change the current directory to pathname or to root directory if no pathname is given. chgrp groupname filename(s) | directory name(s) Change group of the named file or directory. chmod [ugo,+-,rwx] filename | directory name Change mode permissions of thenamed file(s) or directory(ies). See File permissions for detailed information. chown username filename | directoryname Change the owner of a file or directory. chsh Change the Unix shell you log into. clear Clears the display. Only the prompt is displayed. cmp filename filename Compares the named files. If they are equal nothing is returned, otherwise it returns the first character and line wherethe two files differ. compress [-v] filename Compress the named file. The compressed file gets .Z appended to the filename. -v = Ask for verification after compressing the file. cp oldname newname [-r][-i] pathname (cp index.html index1.html) The cp command allows you to copy files to new files, or copy files and directories to new directories. The command line cp index.html otherdir will copy thefile index.html to the directory otherdir. -i = Ask before updating a file or directory that exists in the destination with the same name. -r = To copy a directory including its contents to a new directory, recursive. crontab filename [-r][-l][-e] pathname

CHGRP

Change group name Set file access permissions

CHMOD

CHOWN

Change owner

CHSH

Change shell

CLEAR

Clears displayCMP

Compare files

COMPRESS

Compress file

CP

Copy a file

CRONTAB

Scheduled files

The crontab command allows you to run, delete or edit scheduled tasks. -l = lists your currently scheduled tasks. -r = deletes all currently scheduled tasks. -e = edit your scheduled tasks. DATE List current date and time Disk space info date

DF

df [-k] [filesystem] Shows disk spaceavailable on the system. -k = Use 1024 byte blocks instead of the default 512. filesystem = If omitted displays the amount of disk space used and available on all mounted filesystems. du [-aks] [filename | directoryname] Shows how much disk space is being used up by folders. -a = Shows counts for all files encountered, not only directories. -k = Use 1024 byte blocks instead of the default 512. -s...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • COMANDOS UNIX
  • Comandos Unix
  • Comandos de unix
  • comandos unix
  • Comandos unix
  • Comandos Unix
  • COMANDOS UNIX
  • Comandos R Unix

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS