Comandos Unix

 
Comandos back to Unix

Comandos:

  • accept Enable one printer spool, accept jobs in the queue.
  • alias name=string Create an alias for a new name.
  • at runs a program "at" specific time. It's controlled by the files, /var/adm/cron/at.allow and /var/adm/cron/at.deny.
  • banner mshows the parameter text in large letters
  • batch schedule a job to run in the background at lower priority; the system decides when runs the job.
  • bcheckrc checks if the system was properly shutdown
  • bdf Reports the number of free space in disk.
  • cancel to cancel one print job.
  • cat to see the content of one file or used to concat files.
  • catman creates cat pages for the manual
  • cd path changes the actual directory. by default back to HOME, cd - goes back to the previous directory, (OLDPWD).
  • chacl fich changes the access list to one file.
  • chgrp newgroup fich changes the group file.
  • chmod  [u ser|g roup|o ther|a ll] [+|-|=] [rwx- o octal] rwx changes the rigth of one file.
  • chown owner [:group] fich  change the owner of the file.
  • clear clears the screen.
  • cp [-ir] copies files, -i interactive, -r recursiv.
  • cpio -o[cvx]  or cpio -i[cdmtux]. Generate -o an archive or restore from an archive -i. c writes header in ASCII format, d creates de directory structure, m retains the actual modification date, t display the table of contents, u unconditionally restores, v display the files processes, -x handles special (devices) files.
  • crontab [-l|-r]  file schedule one or more jobs at specific intervals. -l lists all the jobs scheduled, -r removes all jobs. Controlled by the files /var/adm/cron/cron.allow and /var/adm/cron/cron.deny. The file has to follow the cronfile structure minute (0-59)  hour (0-23) day (1-31) month (1-12) day on the week (0-6 0 Sunday) command to be executed.
  • cut -c list [file] or cut -f list [-dlist] [-s] [file] cut columns or fields.
  • date date and time in the system.
  • dd Disk to disk copy.
  • diff differential file and directory comparator.
  • disable disable the printout in one printer.
  • dos2ux convert ASCII file format
  • du Disk usage. See one file system usage du -sk * | sort -nb
  • echo shows a message in the screen.
  • eisa_config Running this program the eisa boards are configured in the system. The configuration (cfg) are located in the directory /sbin/lib/eisa. Automatic mode runs /sbin/bcheckrc after root file is mounted. The configuration is write to /sbin/lib/eisa/system.sci.
  • elm  Mail friendly user interface, needs the directories $HOME/Mail and $HOME/.elm
  • enable enable one printer to print.
  • env to display all the environment variables.
  • exec command To execute one command in different shell, when is  finish then return to the previous one.
  • export Make global one variable.
  • extendfs extends a file system
  • fbackup backups
  • fg [%number| %string] Bring one processes from background, identify by the number or the string.
  • file determines the file type.
  • find pathlist expression Searches files in the hierarchy; find / -user username, the files belows by username; find /tmp -type f -atime +7, the files not being accessed the last 7 days.
  • freedisk recover disk space
  • frestore restore backups
  • fsck checks the file system consistency and makes repairs.
  • ftp hostname Remote copy files from-to hostname. Commands: get, put, ls, ? quit. sftp hostname Secure Ftp
  • fuser to see which user is using which files
  • grep [-efcinv] Searching in the source for a pattern. -e various patterns search, -f indicates that the patterns are in one file, -c shows the count of the matching lines, -I ignore the case search, -n prints de number of the each line, -v displays the lines that NOT match.
  • head give first few lines.
  • history [-n | a z] Show the last n commands. Or the commands between the numbers a and z. Typing r number you re-enter the command number number.
  • hostname Computer network name.
  • hpnpadmin -cpublic  printer to see the status of one printer.
  • id shows the user id and the user-group id..
  • insf to setup one disk during the booting, creates a device file if the file is not assigned yet.
  • ioscan -f Class and instance number of one device file.
  • jetadmin to install Jetadmin software, is in /opt/hpnp/admin
  • jobs list the active jobs in the system.
  • kill [-s signal] PID To send one signal to the process PID. Kill -l list all the process signals.
  • laserrom initiate the HP laserrom documentation.
  • last, lastb Command used to display the history logins. (backgwards)
  • ln crear un link a un fichero o directorio.
  • lp [-ndtowp] prints a file. -nnumber number of copies,  -dprinter destination printer, -ttitle title of the page, -ooption shows the printer options, -w shows a message to the user when is finish, -p priority.
  • lpadmin [-pxd] to administrate printers. -p names a printer, -x removes one destination, -d marks the default printer in the system. With option -p must used -v device full path name, -m model, should be in the directory /etc/lib/lp/model, and can be used this options as well, -c printer's class -g priority of the printer. Lpadmin -xPrintername to deleted a printer.
  • lpalt moves one printer request form one to another.
  • lpfence to reduce the priority of one printer job.
  • lpmove moves all printers requests form one printer to another.
  • lpsched runs the printers scheduler.
  • lpshut stops the printer scheduler.
  • lpstat [-t] shows the status of one printer queue. With -t we see all the printer queues
  • lpstat [-tu] muestra información sobre la cola de impresión, -t muestra información sobre el scheduler, -u determine the id of one output.
  • ls [-adlFR] lista los ficheros  que hay en el directorio actual. En HP-UX está ademas lsf, ll, lsr.
  • lsacl fich gives the access list of one file. (* No compatible con chmod, pero mas completo).
  • lsdev t list the drivers and classes of devices in the file.
  • lssf gives the device information listing.
  • lvdisplay display the information of the logical volumes.
  • lvdisplay extends the logical volume information
  • lvextend extends a logical volume group
  • lvreduce reduces a logical volume
  • mail & mailx Mails clients applications.
  • man -k keyword Manual del sistema.
  • mesg [y|n] permite o no recibir mensajes.
  • mkdir [-pmmodo] creates a  directory, -p creates the directories intermedium if are necessary, m modus creates the file with the rigths that indicate m.
  • mklost+found (/usr/sbin) creates the directory lost+found if doesn't exists.
  • mknod make a i-node.
  • mksf make device file is the device is know in the system.
  • more to ver el contenido de un fichero o una pantalla.
  • mount -F fstype block-device -file mount point directory mount one file system.
  • mountall scripts that mounts all the files systems.
  • mv change the name of one file or directory.
  • newfs create a new file system.
  • newgroup Creates a new users group.
  • newgrp nombre-grupo cambiar el grupo de usuario.
  • news [-a|-n] muestra las news del sistema.
  • netstat shows all the network connections.
  • nice to reduce the priority of one process.
  • nohup command To execute one command and keep it executing after logout.
  • omnidb Query the Omniback II database.
  • omnicc Reports the number of configured and available Omniback II licences
  • omnimm Manages HP Omniback II media.
  • passwd changes user's password.
  • pr [-kat] [file ] Formats stdin, -k produces k column output, -a produces multicolumn, with the -k print across, -t removes the trailer and header.
  • ps prints the running processes
  • pvcreate Create a physical volume.
  • pwd shows the actual uestra el directorio actual.
  • rcmodel remote print cancel, one script in the directory /usr/lib/lp/cmodel.
  • rcp host1:source host2:dest  Remote copy, /etc/hosts.equiv & .rhosts used for not asking password.
  • reboot reboot the system
  • reject disable one printer spool, don't accept jobs in the queue.
  • remsh host command Remote shell, /etc/hosts.equiv & .rhosts used for not asking password.
  • resize to readapt the TERM configuration to the X Window terminal.
  • rlogin hostname Remote login Berkley service. /etc/hosts.equiv & .rhosts used for not asking password.
  • rlp sends remote printer jobs.
  • rlpdaemon to setup remote printers.(in /ect/inetd.conf insert the line rlpdaemon to run it, send one signal to the main daemon ps -ef |   inetd; kill  -HUP inetd_number.
  • rm [-fri] delete a file. -f force the file being delete with or without error, -r recursive delete, -i interactive delete, ask before every delete.
  • rmdir borra un directorio.
  • rsmodel remote print status, one script in the directory /usr/lib/lp/smodel
  • ruptime Display the status of the machines with rwho daemon.
  • rwho Users connected in machines with rwho running.
  • set To display all the environment and local variables.
  • setboot (/usr/bin/setboot) set the options for the system startup
  • sh unshars patches
  • shutdown shutdown the system.
  • sort [-dnu] alphabetical sort, dictionary -d, numerical -n, unique (no duplicates) -u.
  • source to read the specifications of one profile file or set up one parameter without write it in the profile.
  • strings Finds printable strings in binary files.
  • su user switch.
  • swacl change access SD-UX software objects
  • swagentd distribution daemon
  • swapinfo Prints information about the swap space.
  • swapon manages the swap space.
  • swconfig configures and unconfigures installed software
  • swcopy copying software from a distribution software media
  • swgettools to get a new version of Unix.
  • swinstall installing or updating software
  • swlist list the software installed in the system
  • swpackage create software packages for software distribution
  • swreg make a depot visible to other systems
  • swremove removing software from the system
  • swverify verify the integrity of the software in the system
  • syncer periodically sync for file system integrity. (update /etc/mnttab)
  • tail [-n] file shows the last n lines in one file.
  • tar -Key [f device file] [file..] Archives files in a tape file. c new file is created, x extract files, t print table of contents, r files are append to the file, u new files or modifies are the only to be added, v echoes the filenames processed.
  • tee [-a] file To write the actual redirection in one file, and still could use it with other Unix program.
  • telnet hostname Remote login ARPA.
  • top display and update information about the top processes on the system.
  • touch [-amtc] cambia los atributos de un fichero, -a time cambia el tiempo de acceso, -m time cambia el tiempo de modificación, -t time usa time en vez de la fecha actual. -c si el fichero no existe no lo crea.
  • tr [-s] [string1 [string2]] translate characters. See e cut.
  • trap cmd #  Trap the signal # and executes cmd
  • umask [-S] modo cambiar el tipo por defecto de un fichero al crearse. -S muestra la mascara actual. Para cambiarla se pasa modo igual que chmod.
  • umount umount one specific file system.
  • unset To remove one variable.
  • useradd Enters a user in the system.
  • userdel Deletes a user in the system.
  • usermod Modifies the user properties.
  • ux2dos convert ASCII file format
  • vgcfgbackup backup the original LVM configuration
  • vgcfgrestore restore the original LVM configuration
  • vgextend extends a volume group.
  • wall sends a message to all users logged in and interrupt him immediately.
  • wc [-lwc] count the number of lines -l, words -w or characters -c.
  • whereis [-b|-m|-s] command Searches for a  command, -b binary files, -m man pages and -s source code.
  • whereis find files or commands.
  • which locates an executable in your PATH.
  • who [am i] or whoami shows the users log in the system.
  • write sends one message to the users. Ctrl-d to finish.

  •  
    Principio

    1