AIX operating system basic commands

Source: Internet
Author: User
Tags format exit dba file size log mail mkdir access
Login: Enter user name (for example: USER01) Password: Enter user password if the username and password are correct, the user will login successfully. At this point, a command prompt of $ or # appears, representing the operating system commands that can receive user input. Exit the system: or exit or logout. For example: # (or$) exit# (or$) ctrl^d Note, #为ROOT用户的命令提示符, $ for the general User Password command is used to create or modify a user's password. For example: #password passwd:-Enter the old password new passwd:-Enter the password re-enter new paswd:-re-enter the password mkdir: to create a directory $ mkdir oracle$ lsoracle$ RM: Used to delete files or directories (contents in the directory when Rm–r is deleted, delete with-R) $ rm-r oracle$ ls$mv: Used to change file or directory name $ mkdir ll$ lsll$ mkdir kk$ lskk ll$ MV ll kk$ LSKK $ cd kk$ LSLL$CD: Used to go to a certain level of the system directory $ cd/$ pwd/$ cd/home/oracle$ pwd/home/oracle$ feature: Display contents in a directory, Lists file name parameters for all files in the current directory description: A: List all files in the directory D: List all subdirectories L: List long format file Information example: ls–a: Lists all files in the current directory $ ls-a#untitled#. DT Createdbscripts Oracle . . dtprofile Dead_letter Smit.log. . Profile ll smit.script.TTauthority. sh_history make.log websm.log.Xauthority afiedt.buf mbox websm.script$ls– L: Show file details $ ls-ltotal 295-rw-r--r--1 201 dba 3 Sep 15:24 #UNTITLED #-rw-r--r--1 201 dba Wuyi 18:18 AFIEDT.BUFDR Wxrwxr-x 2 201 dba 11:49 createdbscriptsdrwx------2 201 dba June 09:27 dead_letterdrwxr-xr-x 2 201 DBA 10:17 ll-rw-r--r--1 201 dba 95987 APR 14:51 make.log-rw-------1 201 dba 11174 Sep 09:15 mboxdr Wxr-xr-x 3 201 dba 10:21 oracle-rw-r--r--1 201 dba 8971 Sep 11:08 smit.log-rw-r--r--1 201 dba 5437 Sep 20 11:08 smit.script-rw-r--r--1 201 System 1682 Sep 15:18 websm.log-rw-r--r--1 201 system 21441 SEP 15:10 Websm.scrip t$ Displays information for users currently logged into the system: # Fingerlogin Name TTY Idle when Site infooracle??? *l0 2:02 Mon 09:05oracle??? P4 1:59 Mon 09:05root??? P0 Mon 11:06# finger oraclelogin name:oracledirectory:/usr/oracle/ora90 Shell:/usr/bin/kshon since Sep 09:05:35 on L Ft0, 2 hours 2 minutes Idle time (messages off) on since Sep 09:05:41 on PTS/4, 1 hour-minutes time Idle Plan #功能: Displays information about the background process. Using PS alone displays the PID, terminal number, Process execution time, and command syntax to start the process for the background process initiated by the current terminal: Ps-options parameter Description:-E: Displays all background processes currently running within the system-F: In addition to the information provided by PS, displays the username, PPID (parent process ID) and startup time-L: In addition to the information provided by PS, also displays the User ID, PPID and Process priority example: # PS PID TTY time CMD 803034 pts/0 0:00-ksh 917524 pts/0 0:00 PS # PS-EFUID PID PPID C stime TTY time CMD root 1 0 0 09:03:04-0:00/etc/init root 90262 1 0 09:03:42-0:00/usr/ccs/bin/shlap64 Root 106572 139368 0 09:03:30-0:01/usr/lpp/x11/bin/x-d/usr Oracle 123030 155720 0 09:05:36-0:00 dtwm root 139368 1 0 09:03:29-0:00/usr/dt/bin/dtlogin-daemo Oracle 155720 172088 0 09:05:35-0:00/usr/dt/bin/dtsession Root 163946 245 824 0 09:04:28-0:00/usr/sbin/rsct/bin/rmcd-r Root 172088 139368 0 09:03:30-0:00 dtlogin <:0>-daemo Oracle 180 378 188526 0 09:06:20 pts/4 0:00-ksh root 188526 483470 0 09:06:10 pts/4 0:00-ksh root 196670 303186 0 09:04:34-0:00 R Pc.ttdbserver 100083 1 root 204866 245824 0 09:04:34-0:00/usr/sbin/rsct/bin/ibm. Aud Oracle 221370 581780 0 09:05:41-0:03/usr/dt/bin/dtterm root 229440 1 0 09:03:41-0:01/usr/sbin/syncd Root 2376 1 0 09:03:42-0:00/usr/lib/errdemon Root 245824 1 0 09:03:47-0:00/usr/sbin/srcmstr root 262240 245824 09:03:50 0- 0:00/USR/SBIN/SYSLOGD root 278642 245824 0 09:04:28-0:00/uSR/SBIN/RSCT/BIN/CTCASD root 286806 245824 0 09:04:30-0:00/usr/sbin/rsct/bin/ibm. CSM Oracle 295050 1 0 09:07:03-0:00 ora_dbw0_orcl root 303186 245824 0 09:03:59-0:00/usr/sbin/inetd Root 311380 24582 4 0 09:03:53-0:00 sendmail:accepting connec root 319566 245824 0 09:03:56-0:00/usr/sbin/portmap root 327760 245824 0 09:04:02-0:00/USR/SBIN/SNMPD root 335954 245824 0 09:04:06-0:00/usr/sbin/dpid2 root 344150 245824 0 09:04:09-0:00 /USR/SBIN/HOSTMIBD Oracle 368788 1 0 11:09:35-0:00 oracleorcl (local=no) root 376946 1 0 09:04:18-0:00/usr/sbin/cron Root 385122 245824 0 09:04:12-0:00/usr/sbin/biod 6 Oracle 393320 1 0 09:07:03-0:00 ora_reco_orcl daemon 401510 24582 4 0 09:04:15-0:00/usr/sbin/rpc.statd Root 409726 1 0 09:04:28-0:00/usr/bin/itesmdem itesrv.i root 417902 245824 0 09 : 04:18-0:00/usr/sbin/rpc.lockd root 434288 1 0 09:04:25-0:00/usr/sbin/uprintfd root 442484 245824 0 09:04:25-0:00 /usr/sbin/writesrv root 450676 245824 0 09:04:22-0:00/usr/sBin/qdaemon root 458874 245824 0 09:04:31-0:00/usr/sbin/rsct/bin/ibm. Ser Oracle 475266 1 0 09:05:35-0:00/usr/dt/bin/ttsession-s Oracle 483470 221370 0 09:05:41 pts/4 0:00/usr/bin/ksh ora CLE 491646 1 0 09:07:02-0:00 ora_pmon_orcl Oracle 499860 1 0 09:07:33 pts/4 0:08/usr/oracle/ora90/bin/tnsl Oracle 52445 2 1 0 09:07:03-0:01 ora_ckpt_orcl root 532612 1 0 09:04:25 lft0 0:00/usr/sbin/getty/dev/conso root 540830 245824 0 09: 04:32-0:00/USR/SBIN/RSCT/BIN/IBM. ERr imnadm 557194 1 0 09:04:25-0:00/usr/imnsearch/httpdlite/h root 565388 1 0 09:04:25-0:00/usr/lpp/diagnostics/bin/ D Oracle 573584 1 0 09:07:03-0:01 ora_smon_orcl Oracle 581780 123030 0 09:05:41-0:00/usr/dt/bin/dtexec-open 0 Oracle 589978 1 0 09:07:03-0:00 ora_lgwr_orcl Oracle 598188 1 0 09:17:14-0:00 ORACLEORCL (local=no) Oracle 606440 1 0 11:09: 28-0:00 ORACLEORCL (local=no) Oracle 622592 1 0 11:09:49-0:00 ORACLEORCL (local=no) Oracle 631032 1 0 11:09:34-0:00 ORACLEORCL (local=no) Oracle 638984 10 11:09:47-0:00 ORACLEORCL (local=no) Oracle 647404 1 0 10:58:31-0:01 ORACLEORCL (local=no) Oracle 655384 1 0 10:46:10 -0:00 ORACLEORCL (local=no) Oracle 663756 1 0 11:09:38-0:00 ORACLEORCL (local=no) Oracle 671964 1 0 10:57:32-0:00 or ACLEORCL (local=no) Oracle 679998 1 0 11:09:32-0:00 ORACLEORCL (local=no) Oracle 688340 1 0 11:01:09-0:00 ORACLEORCL ( Local=no) Oracle 696500 1 0 11:09:32-0:00 ORACLEORCL (local=no) Oracle 704756 1 0 11:09:32-0:00 ORACLEORCL (local=no) Oracle 712916 1 0 09:31:17-0:00 ORACLEORCL (local=no) Oracle 721104 1 0 09:33:58-0:00 oracleorcl (local=no) root 72930 8 803034 4 11:09:56 pts/0 0:00 ps-ef Oracle 737532 1 0 11:07:43-0:00 ORACLEORCL (local=no) Oracle 753856 1 0 09:34:03- 0:00 ORACLEORCL (local=no) Oracle 762104 1 1 11:09:53-0:00 ORACLEORCL (local=no) Oracle 770280 1 0 11:09:46-0:00 Orac LEORCL (local=no) Oracle 778466 1 0 11:04:42-0:00 ORACLEORCL (local=no) Oracle 786634 1 0 11:09:50-0:00 ORACLEORCL (LO Cal=no) Oracle 794656 10 11:08:10-0:00 Oracleorcl (local=no) root 803034 1056846 0 11:06:38 pts/0 0:00-ksh Oracle 811034 1 0 10:59:20-0:00 o RACLEORCL (local=no) Oracle 819402 1 0 09:47:03-0:00 ORACLEORCL (local=no) Oracle 827620 1 0 10:10:40-0:00 ORACLEORCL (local=no) Oracle 835810 1 0 10:57:30-0:00 ORACLEORCL (local=no) Oracle 843988 1 0 09:49:16-0:00 ORACLEORCL (local=no) Oracle 852190 1 0 10:52:22-0:00 ORACLEORCL (local=no) Oracle 860378 1 0 09:33:55-0:00 ORACLEORCL (local=no) Oracle 86 8586 1 0 10:52:21-0:00 ORACLEORCL (local=no) Oracle 876796 1 0 11:09:29-0:00 ORACLEORCL (local=no) Oracle 884784 1 0 1 0:59:22-0:00 ORACLEORCL (local=no) Oracle 893164 1 0 10:42:26-0:00 ORACLEORCL (local=no) Oracle 909556 1 0 11:09:49- 0:00 ORACLEORCL (local=no) Oracle 917528 1 1 11:09:53-0:00 ORACLEORCL (local=no) Oracle 925948 1 0 11:09:47-0:00 Oracl EORCL (local=no) Oracle 942326 1 0 11:07:47-0:00 ORACLEORCL (local=no) Oracle 950360 1 0 11:07:35-0:00 ORACLEORCL (LOC Al=no) Oracle 958486 1 0 11:09:39-0:00 ORACLEORCL (local=no) Oracle 974934 1 0 11:07:23-0:00 ORACLEORCL (local=no) Oracle 983294 1 0 10:48:40 -0:00 ORACLEORCL (local=no) Oracle 999438 1 0 10:58:51-0:00 ORACLEORCL (local=no) Oracle 1007638 1 0 10:52:27-0:00 or ACLEORCL (local=no) Oracle 1015834 1 0 11:08:09-0:00 ORACLEORCL (local=no) Oracle 1024012 1 0 09:45:28-0:00 ORACLEORCL (local=no) Oracle 1032230 155720 0 11:08:33-0:00/usr/dt/bin/dtexec-open 0 Oracle 1040390 1 0 10:58:52-0:00 OracleOR CL (local=no) root 1056846 303186 0 11:06:38-0:00 telnetd-a Oracle 1064970 1 0 10:05:40-0:00 ORACLEORCL (local=no) or Acle 1081404 1 0 11:09:31-0:00 ORACLEORCL (local=no) Oracle 1089562 1 0 11:09:32-0:00 ORACLEORCL (local=no) Oracle 109 7770 1 1 11:09:53-0:00 ORACLEORCL (local=no) Oracle 1105962 1 0 11:09:32-0:00 ORACLEORCL (local=no) Oracle 1114198 1 0 11:07:47-0:00 ORACLEORCL (local=no) Oracle 1122406 1 0 11:07:00-0:00 ORACLEORCL (local=no) Oracle 1130564 1 0 10:27:4 8-0:00 ORACLEORCL (LOCAl=no) Oracle 1138778 1 0 10:57:28-0:00 ORACLEORCL (local=no) Oracle 1146948 1 0 11:07:26-0:00 oracleorcl (local=no) o Racle 1155106 1032230 0 11:08:33-0:00/usr/dt/bin/dtscreen Oracle 1163312 1 0 11:09:39-0:00 oracleorcl (LOCAL=NO) ORAC Le 1171526 1 0 11:00:39-0:01 ORACLEORCL (local=no) Oracle 1179700 1 0 10:53:31-0:00 ORACLEORCL (local=no) Oracle 11961 1 0 11:09:32-0:00 ORACLEORCL (local=no) Oracle 1204300 1 0 10:58:52-0:00 ORACLEORCL (local=no) Oracle 1212516 1 0 1 0:54:08-0:00 ORACLEORCL (local=no) Oracle 1220718 1 0 10:42:22-0:00 ORACLEORCL (local=no) Oracle 1237084 1 0 10:42:20 -0:00 ORACLEORCL (local=no) Oracle 1245250 1 0 11:09:33-0:00 ORACLEORCL (local=no) Oracle 1253470 1 0 11:08:09-0:00 o RACLEORCL (local=no) Oracle 1261658 1 0 11:09:32-0:00 ORACLEORCL (local=no) Oracle 1269822 1 0 10:28:05-0:10 OracleORC L (local=no) Oracle 1294398 1 0 10:46:13-0:00 ORACLEORCL (local=no) Oracle 1302590 1 0 10:46:08-0:00 ORACLEORCL (local =no) Oracle 1310814 1 011:09:34-0:00 ORACLEORCL (local=no) Oracle 1318996 1 0 11:04:45-0:00 ORACLEORCL (local=no) Oracle 1335400 1 0 11:09:47 -0:00 ORACLEORCL (local=no) Oracle 1343576 1 0 11:09:39-0:00 ORACLEORCL (local=no) Oracle 1351830 1 0 11:09:31-0:00 ORACLEORCL (local=no) Oracle 1368176 1 0 11:09:32-0:00 ORACLEORCL (local=no) # # ps-l F S UID PID PPID C PRI NI ADDR SZ W CHAN TTY time CMD 240001 a 0 803034 1056846 1 20009284 952 pts/0 0:00 ksh 200001 A 0 1114200 803034 1 2003549a 488 pts/0 0:00 ps# function: Kill background process syntax: Kill-num PID Example: Kill–9 23094 (-9 is the software termination process signal, is not negligible) function: Find the file in one or more directories that meet the specified criteria, display the file name, or Specific action syntax: Find path expression parameter description:-typef file d directory-size+n file size greater than n blocks (1block=512 bytes) Ñ file size less than n blocks n file size equals n blocks-m Time+xx days before the modified file-xx the file-permonum access to the specified permission (permission in 8) mode to access the file with the specified permission (permissions are represented by letters, such as RWX)-useruser file-o logic ' or ' Example: Find. –name ' Unix ' –print finds all files in the current directory and its subdirectories that have the file name "m*" (' * ' is a wildcard character) and displays the file name. # Find. -name "UNIX"-print./usr/lib/boot/unix./usr/oracle/ora90/inventory/filemap/md/demo/unix./usr/oracle/ora90/inventory/filemap/ultrasearch/tools/remotecrawler/scripts/unix./usr/oracle/ ora90/md/demo/unix./usr/oracle/ora90/ultrasearch/tools/remotecrawler/scripts/unix./upload/disk2/stage/ Components/oracle.sysman.website.nls/9.2.0.1.0/1/datafiles/expanded/websitehtm/unix./unix#find. –name ' m* ' –exec ls–l {} \ Finds all files in the current directory and its subdirectories that have file name ' m* ' (' * ' is a wildcard character) and displays detailed file list information. -exec enables find to perform-exec commands in a non-interactive manner. ' {} ' is used to keep find results and as input to ls–l. Find. –name ' m* ' –ok  rm {} \ Finds all files (' * ' that are wildcard characters) in the current directory and its subdirectories that have the file name "m*" deleted. -OK enables find to perform-OK commands interactively. Find. -perm 644-mtime +4–print finds files in the current directory and its subdirectories that have been modified before 644 or 4 days. Function: Searches the file or standard input for the line syntax that matches the specified format: grep [options] pattern [file1 file 2.] Description:-V: Displays rows that do not match the specified format-c: Counts the number of rows that meet the criteria- L: Displays only the filename that satisfies the criteria-N: Displays the line number of the row that satisfies the condition-I: Ignores the case-W when looking: do a full word match example: grep a websm.log search for a line in the. profile file that matches the mail and display it. # grep a websm.logcom.ibm.websm.preferences.WXPreferenceException:Unable to load preferences From/websm.pref.default Settings would be used. This preference file would be updatedif the ChEck Button in the Exit confirmation Dialog is checked. At Com.ibm.websm.preferences.WSPreferenceImpl.loadData (wspreferenceimpl.java:185) at Com.ibm.websm.preferences.WCPreferences.LoadData (wcpreferences.java:194) at Com.ibm.websm.preferences.WCPreferences. (wcpreferences.java:111) at Com.ibm.websm.console.WConsole.getPreferences (wconsole.java:592) at Com.ibm.websm.console.WConsole.getPrefData (wconsole.java:559) at Com.ibm.websm.console.WConsole. (wconsole.java:119) at Com.ibm.websm.console.WConsole.main (wconsole.java:1294) Com.ibm.websm.bridge.directory.WDirectoryException:Caught eofexception whilereading the stream header at Com.ibm.websm.bridge.directory.WDirectory.get (wdirectory.java:128) at Com.ibm.websm.preferences.WSPreferenceImpl.loadData (wspreferenceimpl.java:178) at Com.ibm.websm.preferences.WCPreferences.LoadData (wcpreferences.java:194) at Com.ibm.websm.preferences.WCPreferences. (wcpreferences.java:111) at Com.ibm.websm.console.WConsole.getPreferences (wconsole.java:592) at COM. Ibm.websm.console.WConsole.getPrefData (wconsole.java:559) at Com.ibm.websm.console.WConsole. (wconsole.java:119) at Com.ibm.websm.console.WConsole.main (wconsole.java:1294) #grep –v mail. Profile shows rows that do not match mail. The grep "^a[0-9]z$" filename finds a string in filename that starts with ' a ', ends with ' Z ', and contains the number ' 0 '-' 9 ' in the middle.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.