AIX BASIC COMMANDS PDF

adminComment(0)
    Contents:

use can user svmon command to monitor memory usage as follows;. (A) #svmon -P -v -t 10 lslpp -al blocwindcotssidi.cf llctl -g reconfig - make nfso -a shows AIX NFS tuning parameters; good to check on if you're getting badcalls in. This volume contains AIX commands that begin with the letters a through c. Contains the basic user attributes, including the user IDs used by the acctprc1. Some basic unix commands several shells available under AIX. The Kron shell or most powerful shells and is the default shell on the AIX machines main-.


Aix Basic Commands Pdf

Author:ARLA BHAKTA
Language:English, Dutch, French
Country:Cameroon
Genre:Children & Youth
Pages:101
Published (Last):20.09.2016
ISBN:811-7-67230-986-1
ePub File Size:28.78 MB
PDF File Size:12.16 MB
Distribution:Free* [*Registration needed]
Downloads:28514
Uploaded by: CYNDY

Non exhaustive list of basic administrative AIX commands to help you survive when administering such servers. AIX Command Crib Sheet. OS LEVEL: AIX. DATE: 29/01/ VERSION: Latest version can be found at blocwindcotssidi.cf commands. For additional details on other AIX courses, please visit: https://www. blocwindcotssidi.cf AIX Version Basic. • Creating, copying, renaming.

The first shows the job id, the second shows a plus sign, dash, or space. The plus sign denotes the current job and the dash represents the next to current job. The third column displays the status of the job. The fourth column will denote the command being executed by the job.

If the -l option is specified, the process id will be displayed before the process status column. The join command is used to join matching lines of two files whose contents are sorted in ascending order. As an additional requirement, the two files must have the same join field. By default, join uses tabs and spaces to separate a line into fields and the first field is used as the join field.

The fieldNo parameters are used to specify which field in the two files is to be used as the join field. The -t option lets you specify which char to use as the field separator. This command is used to terminate a process. For the processID , you can specify a percent sign followed by the job ID returned by the jobs command, or the process ID returned by the ps command.

To terminate these processes, you must specify the -kill signal. This command can be used to link file1 to file2. This has the effect of creating an alias. You can also specify a directory to which the specified files are to be linked. The -s option can be used to create a symbolic link between the two files. If the files are on different file systems, the -s option must be specified. This command should be issued to terminate your session and allow the next user to access the computer.

The logout command will not execute if there are any stopped jobs. To logout, you must first kill or activate the jobs. The logout command will not terminate any jobs running in the background. It is imperative that you remember to kill all background jobs before logging out.

The lp command can be used to send a list of files to a printer. All filenames to be printed should be separated by spaces. The -c option tells AIX to immediately copy the file instead of making a link to the file. If this option is not specified, any changes to the file specified on the command line will be written to the printout if made before the printer finishes printing the file.

By default, your printout will go to the Panasonic printer located in the same lab as you. You can change to another queue by using the -d option and specifying the proper Queue to which your file is to be sent. The -m option can be used if you wish mail to be sent to your account upon completion of the printing.

The -w option will send a message to your first terminal upon completion of the printing. You can specify the number of copies to print by issuing a -n followed by the number of copies.

By default, lp will only print one copy of the specified files. This command can be used to display the contents of a specific print queue. If no parameters are specified, lpq will display all the files on the default queue.

The -l option can be used to display more information about the files on the queue. To view another queue, specify its name after the -P option. You can also view a specific file by typing its jobNumber o the command line, or you can view all your queued files by specifying your userID.

The lpr command is a controllable printing command. By default, lpr will print a banner page before printing the specified set of files. It is recommended that this command be used for printing because this banner page prevents sequential files from being printed on the same page when a formfeed is not sent at the end of a file. This command has many options, enabling you to control how the file is printed and what actions are done when the file is done printing.

You can specify the number of copies to be printed after the - option. The -c option specifies the class to use as the job classification. Using the -h option lets you suppress the printing of the burst page. You can change the indentation from the left margin by specifying the number of spaces to indent after the -i option.

AIX will send you mail upon completion of the printing process if you specify the -m option. Specifying a printer after the -P option will cause AIX to send to the specified printer instead of the default printer. You can specify the -r option to have AIX remove the file upon completion of the printing process. By default, lpr copies the file to the printing area.

If a file is large, and your account has a quota, you may not be able to print the file. Using the -s option alleviates this problem by making a symbolic link to the file instead of physically copying the file.

The -t option can be used to specify a title for use by the pr command. If your printout is wider than the 80 character default, you can specify the width by using the -w option. If you wish to format your output with the pr command, you can specify the -p option. This works almost identically to the command pr lpr. This command lets you remove files from a print queue. Specifying the -P option lets you select the queue from which the files will be deleted. You can delete files by one of three methods.

The first method is to place a dash as a parameter. This will remove all the jobs from the print queue. Specifying a jobNumber will remove only that specific job from the queue. The third approach is to specify a userID which will remove all jobs owned by that user. As with the lpr command, lprm selects a print queue by the following order: This is one of the most useful AIX commands. It is used to display the contents of a directory.

As you can see from the syntax, there are many combinations of options with the ls command. Most people will find a combination they like and use it in an alias to the ls command. On the next page is a table of the various options and a brief description. This command can be used to read your electronic mail E-mail or to send E-mail to another user. If you do not specify any options, AIX will open your mailbox and display your awaiting mail messages. If the - f option is specified, AIX will display a listing of the messages in your mailbox.

To send mail, type the recipient's full E-mail address as the parameter to the mail command.

For more detailed information, please see the Mail handout. This command displays the manual pages for the specified command. If you specify the -k option, AIX will display a one-line synopsis of each manual entry which contains the specified title. The -f option will display a one-line synopsis for the command specified by title.

If you just specify a title , AIX will use the more command to display the contents of the man pages for that entry. Below is a table showing the various section numbers, and the topics they represent. This command specifies whether or not another user can write to your terminal.

If you do not specify any parameters, mesg will report your terminal's current message receiving status. The y option can be specified to allow users to send messages, and the n option will allow only the root user to send messages. The mkdir command is used to create a new subdirectory. Each subdirectory specified by the directories parameter should be separated with the space character. You can change the access mode of the directories created by specifying -m and then the access privileges to be given to that subdirectory.

The -p option can be specified to create any intermediate subdirectories necessary. In order to create a subdirectory, you must have write permission in the parent directory. If the -m option is not specified, AIX will assign the access modes set by the umask command. The more command is used to display text files or output from other applications when used with a pipe from the AIX command line.

This command displays text one screen at a time, pausing after each screen. When pausing, the word "more" will be displayed at the bottom of the screen. If a filename was specified, more will also display the percentage of the file that has been displayed.

While more is pausing, certain commands can be entered to control the program. Pressing the [ENTER] will cause more to display the next line of the text, and pressing the spacebar will cause the next screen of text to be displayed. You can x more lines by issuing the command x [space] where x is the number of lines to display and [space] is the spacebar.

The x b command will skip back x screens of text. Pressing [D] will display 11 more lines of text. You can quit by pressing [Left Arrow] , display the current line number by pressing the equals key, display help by pressing [H] , and invoke the vi editor on the current line by pressing [V]. Shell command can be invoked by placing the command after an exclamation mark. Pressing [. You can skip to the x th file on the command line by issuing the x: This command can be used to rename or move a file.

Specifying the -i option will cause AIX to prompt you before overwriting any existing file. By default, AIX will overwrite any existing files in the specified path.

To rename a file or directory , specify its name followed by the newname to be used. To move a file, specify its name and then the directory to which the file is to be moved. The nice command allows you to change the priority of your process. Unless you are root, you will be unable to raise your priority level, however, you can lower it. If you do not specify a specific priority with the -n command, AIX will use a default value.

The command will be executed just as if typed by itself on the command line. This command lets you change your password, user information, or default shell. If no parameters are specified, AIX will let you change your password. AIX will ask for your old password and then your new password twice. If your passwords were entered correctly all three times, it will be changed. Thus, the next time you login, you will need to use the new password. The -f option invokes the chfn command, allowing you to change your user information.

IBM AIX Documentations

The -s option invokes the chsh command which lets you change your default shell. The pg command formats the specified files on the display. When the screen is full, pg will pause the display allowing you to enter commands. You can advance or go back x pages by specifying the number of pages after a plus or minus sign respectively. Pressing [L] will display the next line of text. Pressing d and -d will scroll the screen forward or backward half a page respectively. The dollar sign can be used to go to the end of the text, provided the pg command is not used in a pipeline.

The -f option tells AIX not to split long lines. You can start the display at the specified linenumber when you precede the option with a plus sign. You can also start the display at the first line containing the text pattern specified between slashes.

This command sends an echo request to the specified address. If the specified host is running, it will send back a reply.

Specifying the -c option lets you set the number of packets to send at count. The -i option lets you specify the wait time between echo requests. You can also have ping display the path taken to reach the host with the -R option. Upon completion of the echo requests, a summary will be printed showing the minimum, average, and maximum times. This command formats the input into pages, each with its own header. You can set the string displayed in the header with the -h option.

You can also set the number of spaces to indent the text with the -o option. The ps command can be used to display the current statuses of processes running on the terminal. If no options are specified, AIX will show all processes belonging to the user's current shell.

The -e option will display all process except kernels. The -f option can be used to generate a full listing or the -l option to generate a long listing.

The -U option should be followed by a list of comma separated userID's in quotation marks. This will display all processes owned by the specified usernames. You must remember to place a space after the comma when separating the usernames. The -U option is AIX specific. This command will display your present working directory. All directories in the path are separated by a forward slash. This command can be used to start a print job. The bottom and top margins can be set by specifying the margin to be used with the -b and -t options respectively.

The -c option tells AIX to make a copy of the file for printing, so that changes can be made to the file before it finishes printing.

You can specify the page number on which printing is to begin with the -g option. The -i option indent s the text the specified number of spaces. You can set the pageLength value of the -l option to specify the number of lines per page. The -n option will tell AIX to notify you when the print job has completed printing the number of copies specified with the -N option.

You can set the pitch characters per inch with the -p option. As with the lpr command, you can override the default print queue settings by using the -P option to specify the receiving queue. The quality specified by the -q option can be used to set the print quality to a value of 0 to 3 representing fast printing to enhanced quality respectively.

The -r option will remove the files being printed after they have completed printing. The -v option lets you specify the number of line per inch. The width can also be set by using the -w option. Many commands are toggles that accept as an option the plus sign or the exclamation mark. Below is a table showing the various option and their definitions. This command is used to display your disk usage and quota information.

If you specify the -g option, it will specify disk information about the groups for which the current account is a member. This command is similar to the nice command in that it alters the priority of a running process. By default, renice effects only those processes of the current user. The priority parameter specifies the level to which the processes are to be set.

Legal values are 0 to 20 with 20 being the lowest priority. This command lets you login to a remote host. If you wish to specify a different userID , place it after the -l option.

The rm command allows you to delete the specified files and directories. The -e option will display a message after each file is deleted. The -f option will not prompt the user before deleting write- protected files, but the -i option will. Using -r will cause AIX to recursively delete subdirectories and their contents when a directory is specified as a filename.

This command lets you remove an empty subdirectory from the system. If you specify the -p option, rmdir will remove all directories specified in the path if they contain no files and you have write permission to the directory. This command can be used to set shell variables. The shell variable will be assigned the optional value specified.

If no value is specified, the variable will be created in the shell. This command is used to set environment variables. The variable will be set with the value specified. Values which include spaces should be included within quotation marks.

This command can be used to sort the contents of a file, merge sorted files, and check if a file has already been sorted.

Sort uses, by default, blank characters as field separators.

Want to learn?

This field character can be changed by specifying the character after the -t option. The -b option will ignore all leading spaces and tabs to find the first column in a field. The -c option will return a nonzero value if the file is not already sorted. You can force AIX to sort the file based only on letters, digits, and spaces if you specify the -d option.

AIX basic commands

The -f option will convert lowercase letters to uppercase before making the comparisons. Specifying -i will cause AIX to ignore all nonprintable characters during comparisons.

You can merge two sorted files with the - m command. If you will be sorting numerical data, use the -n option to specify a sort by numerical value. The output file is specified with the -o option. The sort can be done in reverse order if you specify the -r option. This command can be used to check the spelling in a file. By default, the spell command will write all words to standard output it can not match to the spell file or derive from words in the spell file.

You should use the spellin command to create your own dictionary that contains words used in your documents. The - v option will cause the command to display all possible derivations for words not found in the word file. This command will stop the execution of a background process.

To restart the process in the background, use the bg command. This command can be used to set, reset, or report current standard input parameters.

If you do not specify any options, stty will display some basic parameter settings. The -a option will display all parameter settings. This command will display the last 10 lines of a file. Specifying the -n or the -c option will display the file starting at line number or byte number of the file respectively. This command brings up a windowed interface that allows you to "talk" electronically with the specified userID.

This command is used to create and manipulate archive files. Tar files will have a. Z extension. The -c option will create a new archive file that includes those files specified by files. The -r option will append files to the archive file. The -t option will display the names of the files in the archive, and the -v option will display each filename as it is processed.

The -u option will add those files that are new or modified since last storage into the archive file. Using -x will extract the files from the archive. This command writes standard input to standard output and the specified file. The -a option causes tee to append the text to file instead of overwriting it. The -i option will ignore interrupts.

If your printout is wider than the 80 character default, you can specify the width by using the -w option. If you wish to format your output with the pr command, you can specify the -p option. This works almost identically to the command pr lpr.

Specifying the -P option lets you select the queue from which the files will be deleted. You can delete files by one of three methods. The first method is to place a dash as a parameter. This will remove all the jobs from the print queue. Specifying a jobNumber will remove only that specific job from the queue. The third approach is to specify a userID which will remove all jobs owned by that user. It is used to display the contents of a directory.

As you can see from the syntax, there are many combinations of options with the ls command. Most people will find a combination they like and use it in an alias to the ls command. On the next page is a table of the various options and a brief description.

If you do not specify any options, AIX will open your mailbox and display your awaiting mail messages. If the -f option is specified, AIX will display a listing of the messages in your mailbox. To send mail, type the recipient's full E-mail address as the parameter to the mail command. For more detailed information, please see the Mail handout. If you specify the -k option, AIX will display a one-line synopsis of each manual entry which contains the specified title.

The -f option will display a one-line synopsis for the command specified by title. If you just specify a title, AIX will use the more command to display the contents of the man pages for that entry. Below is a table showing the various section numbers, and the topics they represent. If you do not specify any parameters, mesg will report your terminal's current message receiving status. The y option can be specified to allow users to send messages, and the n option will allow only the root user to send messages.

Each subdirectory specified by the directories parameter should be separated with the space character. You can change the access mode of the directories created by specifying -m and then the access privileges to be given to that subdirectory.

The -p option can be specified to create any intermediate subdirectories necessary. In order to create a subdirectory, you must have write permission in the parent directory. If the -m option is not specified, AIX will assign the access modes set by the umask command. This command displays text one screen at a time, pausing after each screen. When pausing, the word "more" will be displayed at the bottom of the screen. If a filename was specified, more will also display the percentage of the file that has been displayed.

While more is pausing, certain commands can be entered to control the program. Pressing the [ENTER] will cause more to display the next line of the text, and pressing the spacebar will cause the next screen of text to be displayed. You can x more lines by issuing the command x [space] where x is the number of lines to display and [space] is the spacebar. The x b command will skip back x screens of text. Pressing [D] will display 11 more lines of text.

You can quit by pressing [Left Arrow] , display the current line number by pressing the equals key, display help by pressing [H] , and invoke the vi editor on the current line by pressing [V].

Shell command can be invoked by placing the command after an exclamation mark. Pressing [. The :f command will display the current file and line number.

You can skip to the xth file on the command line by issuing the x:n command and x:p will move to the xth previous file on the command line. Specifying the -i option will cause AIX to prompt you before overwriting any existing file.

By default, AIX will overwrite any existing files in the specified path. To rename a file or directory, specify its name followed by the newname to be used. To move a file, specify its name and then the directory to which the file is to be moved. Unless you are root, you will be unable to raise your priority level, however, you can lower it. If you do not specify a specific priority with the -n command, AIX will use a default value.

The command will be executed just as if typed by itself on the command line. If no parameters are specified, AIX will let you change your password.

AIX will ask for your old password and then your new password twice. If your passwords were entered correctly all three times, it will be changed. Thus, the next time you login, you will need to use the new password. The -f option invokes the chfn command, allowing you to change your user information. The -s option invokes the chsh command which lets you change your default shell.

When the screen is full, pg will pause the display allowing you to enter commands. You can advance or go back x pages by specifying the number of pages after a plus or minus sign respectively. Pressing [L] will display the next line of text.

Pressing d and -d will scroll the screen forward or backward half a page respectively. The dollar sign can be used to go to the end of the text, provided the pg command is not used in a pipeline. The -f option tells AIX not to split long lines. You can start the display at the specified linenumber when you precede the option with a plus sign. You can also start the display at the first line containing the text pattern specified between slashes. If the specified host is running, it will send back a reply.

Specifying the -c option lets you set the number of packets to send at count.

The -i option lets you specify the wait time between echo requests. You can also have ping display the path taken to reach the host with the -R option. Upon completion of the echo requests, a summary will be printed showing the minimum, average, and maximum times. You can set the string displayed in the header with the -h option.

You can also set the number of spaces to indent the text with the -o option. If no options are specified, AIX will show all processes belonging to the user's current shell. The -e option will display all process except kernels. The -f option can be used to generate a full listing or the -l option to generate a long listing. The -U option should be followed by a list of comma separated userID's in quotation marks.

This will display all processes owned by the specified usernames. You must remember to place a space after the comma when separating the usernames. The -U option is AIX specific. All directories in the path are separated by a forward slash. The bottom and top margins can be set by specifying the margin to be used with the -b and -t options respectively. The -c option tells AIX to make a copy of the file for printing, so that changes can be made to the file before it finishes printing.

You can specify the page number on which printing is to begin with the -g option. The -i option indents the text the specified number of spaces. You can set the pageLength value of the -l option to specify the number of lines per page. The -n option will tell AIX to notify you when the print job has completed printing the number of copies specified with the -N option.

You can set the pitch characters per inch with the -p option. As with the lpr command, you can override the default print queue settings by using the -P option to specify the receiving queue. The quality specified by the -q option can be used to set the print quality to a value of 0 to 3 representing fast printing to enhanced quality respectively.

The -r option will remove the files being printed after they have completed printing. The -v option lets you specify the number of line per inch.

The width can also be set by using the -w option. Many commands are toggles that accept as an option the plus sign or the exclamation mark. Below is a table showing the various option and their definitions. If you specify the -g option, it will specify disk information about the groups for which the current account is a member. By default, renice effects only those processes of the current user. The priority parameter specifies the level to which the processes are to be set. Legal values are 0 to 20 with 20 being the lowest priority.

If you wish to specify a different userID, place it after the -l option. The rm command allows you to delete the specified files and directories. The -e option will display a message after each file is deleted. The -f option will not prompt the user before deleting write- protected files, but the -i option will. Using -r will cause AIX to recursively delete subdirectories and their contents when a directory is specified as a filename.

If you specify the -p option, rmdir will remove all directories specified in the path if they contain no files and you have write permission to the directory. The shell variable will be assigned the optional value specified. If no value is specified, the variable will be created in the shell. The variable will be set with the value specified. Values which include spaces should be included within quotation marks.

Sort uses, by default, blank characters as field separators. This field character can be changed by specifying the character after the -t option.For more information , please see the handout on the vi editor.

This command is used to terminate a process. This will display all processes owned by the specified usernames. The bottom and top margins can be set by specifying the margin to be used with the -b and -t options respectively. Commands are nice to submit a new one and renice to change priority of an existing process:. The variable will be set with the value specified.

The shell variable will be assigned the optional value specified. AIX will then ask for your password. You can quit by pressing [Left Arrow] , display the current line number by pressing the equals key, display help by pressing [H] , and invoke the vi editor on the current line by pressing [V].

If you enter df without any parameters, it will display information about all the mounted file systems.

RHONDA from Davenport
Feel free to read my other posts. I'm keen on ancient games. I do enjoy studying docunments zestfully .
>