Manual

Solo disponible en BuenasTareas
  • Páginas : 27 (6674 palabras )
  • Descarga(s) : 0
  • Publicado : 25 de noviembre de 2010
Leer documento completo
Vista previa del texto
AIX COMMAND GUIDE

INTRODUCTION
This is my unix command help file which has been built up over the years. This file was built primarily for my own reference and is not intended to be an authoratative guide to all commands for AIX - often if there is a very short description for a command, you can take this as RTFM. I am not a systems administrator, but have been called on to do the joboccasionally (and install a box or two) - this helpfile should be ideal for people who use AIX, but aren't responsible for the deep magic required for hardware configuration. You may find this file helpful despite the numerous omissions nonetheless. This file was originally a plain text file but I have converted to HTML using Lemmy (A vi clone for Windows). Because it has been hand-converted from theoriginal text document, there's a few hangovers from it that I just can't be bothered to remove such as the caps headings. Additionally, some browsers may not render certain characters. I've tried (and quite probably failed) to keep several conventions within this document - any command, if mentioned in the description of another command should have a bookmark link to the description of that command;all examples are in blue text - apologies to lynx users, but examples should be written so that they're recognisable anyway (and if you're using lynx, you probably know unix quite well anyway so I don't really know why I'm apologising ;-). If a command has more than one useful option, I've tried to put them into Unordered list tags. If a command stands almost alone, or is complex within itself,it doesn't appear in this file but in it's own separate file (with a link if I've converted it to html. Examples are vi and awk.

BASIC FILE HANDLING
ls - list files in directory; use with options -l (long format) -a (list . files too) -r (reverse order) -t (newest appears first) -d (do not go beyond current directory) -i (show inodes) For a more detailed description of ls see ls -l

AIXCOMMAND GUIDE
more - used to control input by pages - like the dos /p argument with dir. e.g. $ more /etc/motd ******************************************************************* ************ ** ** * Welcome to AIX Version 4.1! * ** ** * Please see the README file in /usr/lpp/bos for information pertinent to * * this release of the AIX Operating System. * ** ********************************************************************* ************ motd: END Useful keys for use with more: b (back a page) ' (go to top) v (vi the file) / (Search) q (quit) ' ' (down a page) Control-G (View current line number (down a line) See also pg which is extremely similar pg - used to control input by pages - like the dos /p argument. pg performs the same function as the more command but has different control,as it is based on ex Helpful keys for pg: 1 (go to top) $ (go to bottom) h (help) / (Search) ? (Search back) q (quit) -1 (back a page) pwd - show present working directory. e.g. $ pwd /usr/live/data/epx/vss2

AIX COMMAND GUIDE

To change the current working directory use cd cd - change directory (without arguments, this is the same as $ cd $HOME or $ cd ~) cp - copies a file from onelocation to another. e.g. $ cp /etc/hosts /etc/hosts.backup # make a backup of the hosts file $ cp /etc/motd /tmp/jon/ # Copy file /etc/motd to directory /tmp/jon/ Options -f (to force the copy to occur) -r (to recursively copy a directory) -p (to attempt to preserve permissions when copying) synonym: copy mv - move a file from one location to another. e.g. $ mv /tmp/jon/handycommands.txt . # movehandycommands in /tmp/jon to current directory $ mv -f vihelp vihelp.txt # Move file vihelp to vihelp.txt (forced) Options -f (to force the move to occur) -r (to recursively move a directory) -p (to attempt to preserve permissions when moving) synonym: move . rm - removes a file. e.g. $ rm /tmp/jon/*.unl # remove all *.unl files in /tmp/jon $ rm -r /tmp/jon/usr # remove all files recursively...
tracking img