Professional Documents
Culture Documents
Quick Reference AIX5.2
Quick Reference AIX5.2
Problem determination
sysdumpdev Changes the primary or secondary dump device designation in a running system. The
default primary dump device is LV /dev/hd6 and the default secondary dump device
is /dev/sysdumpnull. A dedicated primary dump device LV /dev/lg_dumplv is created (if
sufficient disk space is available) in systems with at least 4 Gigabytes of real memory.
sysdumpdev -l : displays current dump device settings.
sysdumpdev -P -p /dev/hd7 : changes the primary dump device permanently from the
default to LV /dev/hd7.
sysdumpdev -e : estimates the dump size (in bytes) for the current running system.
sysdumpdev -L : displays statistical information about the last dump.
chdev -l sys0 -a autostart=true : automatically reboot after a crash (default is false).
dumpcheck Checks the disk resources used by the system dump and logs in the system error log.
Run default by cron at 3:00 pm local time each day.
/usr/lib/ras/dumpcheck -p : requests a dumpcheck. The result is printed to stdout (-p).
/usr/lib/ras/dumpcheck -r : discontinues running dumpcheck (removes the crontab
entry).
kdb Displays system images for examining a dump.
kdb /var/adm/ras/vmcore.0 /unix : starts kdb using the uncompressed dump file
/var/adm/ras/vmcore.0 and kernel file /unix.
snap Gathers system configuration information and compresses the information into a pax
file.
snap -a -o /dev/rmt0 : gathers all system configuration information (needs
approximately 8 MB space in directory /tmp/ibmsupt) and creates a compressed pax
image (snap.pax.Z) of directory /tmp/ibmsupt.
snapcore Gathers the core file, program, and libraries used by a program to directory
/tmp/snapcore (default) and compresses the information into a pax image. The collected
information allows debugging and resolving problems within an application.
snapcore -d /tmp/snapcore2 core.xx : gathers all needed information for core dump
file core.xx and writes it to directory /tmp/snapcore2/snapcore_32811.pax.Z, where
32811 is the process id ($pid) of the snapcore command.
uncompress -c snapcore_32811.pax.Z | pax : displays the contents of the pax
archive.
check_core Used by snapcore to gather all information about a core dump. The bos.rte.serv_aid
fileset must be installed.
/usr/lib/ras/check_core core.xx : displays a list containing the program that caused
core dump core.xx and the used libraries.
shconf Manages the system hang detection parameters for the system hang daemon
shdaemon.
shconf -d : displays if priority problem detection and lost I/O detection are enabled or
not.
shconf -E -l prio -H : displays the current shdaemon settings.
ipl_varyon * Used to vary on the root volume group during system boot processing.
ipl_varyon -i : Inquiry mode - skips ipl device processing. Checks which disks are
already bootable.
bosboot Creates boot image. It does not update the bootlist in the NVRAM.
bosboot -a -d /dev/hdisk0 : Re-create boot image on hdisk0.
bosboot -a -d /dev/ipldevice -D : creates a boot image with the KDB debugger
enabled.
mklv Creates a logical volume.
mklv -y hd5 -t boot rootvg 1 : re-create boot LV (BLV) hd5.
lslv Displays information about a logical volume.
lslv -l hd5 : determines the boot disk.
mkboot Creates the boot image, the boot record, and the service record.
mkboot -c -d /dev/hdisk0 : clears the boot record of PV hdisk0.
chpv Changes the characteristics of a physical volume in a volume group.
chpv -c hdisk1 : clears the boot record of PV hdisk1.
bootinfo Determines and displays various boot information, including boot device type and boot
device name (NOT supported in AIX 4.2 or later).
bootinfo -b : returns the last boot device.
bootinfo -B hdisk0 : returns 1 if disk is bootable, 0 if not.
bootlist Displays or alters the list or ordering of boot devices available to the system.
Normal boot list: possible boot devices for normal mode.
Service boot list: possible boot devices for service mode.
Previous boot device: last device from which the system booted.
Support of these boot lists is model dependent.
bootlist -m normal -o : displays the normal boot list.
bootlist -m service -o : displays the service boot list (if available).
bootlist -m normal cd0 hdisk0 hdisk1 : makes changes to the normal boot list.
bootlist -m prevboot : invalidates the last device from which the system booted.
halt or fasthalt Writes data to disk (sync) and then stops the system. The system does not restart. Do
not use this command if other users are logged into the system.
reboot or Restarts the system. Can be used if no other users are logged into the system.
fastboot
shutdown Halts the operating system. Checks the existence of the executable /etc/rc.shutdown file
(added by the administrator) that specifies all the applications and other user processes
to close down.
By default the shutdown command powers down the system (if supported and issued).
shutdown -Fr : fast system shutdown and restart.
shutdown -m +1 : brings the system down to maintenance (single user) mode after
waiting one minute.
shutdown -l : logs the output during the shutdown to /etc/shutdown.log.
last Displays information about previous logins using the /var/adm/wtmp file.
last reboot : displays the time between reboots.
last shutdown : lists last shutdowns of the system.
uptime Shows how long the system has been up.
uptime : displays the current time, the length of time the system has been up, the
number of users online, and the load average.
sync Updates the i-node table and writes buffered files to the hard disk.
sync;sync;sync;reboot : writes everything from the buffer to the hard disk and reboots
the system.
lsfont Lists the fonts available for use by the display.
chfont Changes the default font selected at boot time.
mkfont Adds the font code associated with a display to the system.
mkfontdir Creates a fonts.dir file from a directory of font files.
chlang Sets LANG environment variable in the /etc/environment file for next login.
chtz Changes the system time zone information in the /etc/environment file.
chhwkbd Changes the low-function terminal (LFT) keyboard attributes stored in the Object Data
Manager (ODM) database.
lskbd Lists the keyboard maps currently available to the low-function terminal (LFT)
subsystem.
chkbd Changes the default keyboard map used by the low-function terminal (LFT) at system
startup.
chkey Changes your encryption key.
lslicense Displays the number of fixed licenses and the status of floating licensing. There are two
types of user licensing, fixed and floating. Fixed licensing is always enabled. Floating
licensing can be enabled or disabled.
lslicense -A : displays the number of available fixed licences on the system.
chlicense Changes the number of fixed licenses and the status of the floating licensing (updates
login.cfg).
chlicense -I -u 50I -u 50 : changes the fixed license number immediately to 50 (without
rebooting).
chlicense -f on : enables the floating licensing.
lsitab Lists records in the /etc/inittab file.
chitab Changes records in the /etc/inittab file.
mkitab Adds records to the /etc/inittab file.
rmitab Removes records from the /etc/inittab file.
telinit Initializes and controls processes.
or 0-9 Tells the init process to put the system in one of the run levels 0-9. S,s,M,m Tells
init the init process to enter the maintenance mode. a,b,c Tells the init process to examine
only those records in the /etc/inittab file with a, b, or c in the run-level field. Q,q Tells the
init process to re-examine the entire /etc/inittab file. N Sends a signal that stops
processes from being respawned.
telinit q : requests the init command to re-examine the /etc/inittab file.
who Identifies the users currently logged in.
who -r : displays the runlevel.
who /var/adm/wtmp : displays a history of logins, logouts, system startups, and system
shutdowns.
restbase Restores customized information from the boot image. Attention: The command is
executed only during system boot phase 1. Do not execute it in a run-time environment.
savebase Saves base customized device data in the ODM onto the boot device.
savebase -d /dev/hdisk0 : save the ODM to the boot logical volume.
lscfg Displays configuration, diagnostic and VPD information about the system.
lscfg -vp : Displays the system model, machine serial, processor type, number of
processors, processor clock speed, cpu type, total memory size, network information,
filesystem information, paging space information, and devices information.
lscfg | grep proc | wc -l : lists the # of processors.
Informa tb o tamanho dos discos: lscfg –vp | grep pdisk
prtconf or Displays system configuration information.
lsconf prtconf -s : displays the processor clock speed.Ex - Processor Clock Speed: 252 MHz
prtconf -k : displays the kernel type in use.Ex - Kernel Type: 64-bit
prtconf -m : displays memory.
snap Gathers system configuration information.
snap -a : gathers system configuration information. The output is written to the
/tmp/ibmsupt directory.
uname Displays the name of the current operating system.
uname -a : displays the machine ID and version banner.
uname -x : displays the operating system in use, the host name, the machine ID
number of the hardware, the release number of the operating system, the operating
system version and the system model name.
mach Displays the processor architecture of the machine.
getconf Displays system configuration variable values.
getconf HARDWARE_BITMODE : displays hardware bit mode (64 or 32 bit).
getconf KERNEL_BITMODE : displays kernel bit mode (64 or 32 bit).
getconf DISK_SIZE /dev/hdisk2 : displays disk size in MB.
getconf REAL_MEMORY : displays real memory size in MB.
cfg2html A system configuration to HTML converter (Open Source)
file Determines the file type.
file prog : displays user process bit mode of program prog. Returns:
executable (RISC System/6000) or object module not stripped (32 bit program),
or 64-bit XCOFF executable or object module not stripped (64 bit program).
file /unix : the returned link shows which kernel is running: unix_up = 32-bit
uniprocessor kernel, unix_mp = 32-bit multiprocesssor kernel, unix_64 = 64-bit
multiprocessor kernel.
cfgmgr Configures devices by running the programs in /etc/methods directory and optionally
installs device software.
cfgmgr : runs the Phase 2 configuration rules (second boot phase for normal boot)
(same as using the -s flag).
cfgmgr -v : makes devices available that where not powered on when the system
started.
cfgmgr -l scsi1 : configures detected devices attached to the scsi1 adapter.
cfgmgr -i /usr/sys/inst.images : installs device software (using the directory
/usr/sys/inst.images) automatically during configuration.
chcons Redirects the system console to device or file, effective next startup.
chcons -a login=enable /dev/tty0 : changes the system console to device /dev/tty0.
Use /dev/lft0 for the default LFT display.
chcons /tmp/console.out : redirects the system console to file /tmp/console.out.
lsdisp Lists the displays and the default display currently available on the system.
chdisp Changes the display used by the LFT subsystem.
chdisp -p gda1 : changes the default display permanently to gda1.
lsattr Displays attribute characteristics and possible values of attributes for devices in the
system.
lsattr -EHl sys0l sys0 : displays system attributes (realmem ...)
lsattr -EHl proc0 : displays the state, type and frequency of processor proc0.
lsattr -El rmt0 : lists the current attribute values for the tape device rmt0.
lsattr -El tty0 -a speed : lists the current value of the speed attribute for serial port tty0.
lsdev Displays devices in the system and their characteristics.
Examples:
lsdev -P -H : lists the Predefined (supported) Devices (in the PdDv object class).
lsdev -C -H : lists the Customized (configured/defined) Devices (in the CuDv object
class).
lsdev -C -c disk : lists all the PVs (class disk) in the system along with the status and
location code.
listdgrp Displays devices in a device class.
listdgrp disk : list the devices in the disk class.
getdev Lists devices that match the specified criteria.
getdev type=proc_rspc : lists all devices of type proc_rspc.
getdgrp Lists device classes that match the specified criteria.
getdgrp : display all device classes.
chdev Changes a device's characteristics.
chdev -l hdisk2 -a pv=yes : assigns a PVID to hdisk2.
mkdev Adds a device to the system.
mkdev -l hdisk2 : make the already defined disk device hdisk2 available to use.
mkdev -l hdisk1 -a pv=yes : makes an available disk a PV (assigning a PVID), if it
does not already have one.
mkdev -c tty -t tty -s rs232 -p sa0 -w s1 -a login=enable -a term=ibm3151 : adds an
ibm3151 RS232
terminal using adapter sa0 port s1 with login enabled.
rmdev Removes a device from the system.
rmdev -l tty0 -d : removes the tty0 device definition from the CuDv object class (ODM).
rmdev -l hdisk1 : unconfigures PV hdisk1 and changes its state from available to
defined (definition is not removed from the CuDv object class (ODM).
lspv Displays information about a physical volume (PV) within a volume group.
lspv : lists the name, PVID and VG for each configured PV.
lspv hdisk2 : lists the characteristics of PV hdisk2.
lspv -M hdisk3 : lists the mapping and stale PPs for hdisk3.
lspv -l hdisk0 : lists LV allocation within PV hdisk0.
lspv -p hdisk1 : lists PP intra-allocation by PV region and PP state (free, used, stale,
vgda) on hdisk1.
lquerypv * Queries the attributes of a physical volume.
chpv Changes the characteristics of a physical volume in a volume group.
chpv -a n hdisk1 : turn off the allocation permission of free PPs for PV hdisk1.
chpv -a y hdisk1 : turn the allocation permission for hdisk1 back on.
chpv -v r hdisk3 : set the state of PV hdisk3 to unavailable (use when PV is to be
removed from the system or is lost due to failure).
chpv -v a hdisk4 : make PV hdisk4 available to the system (from state removed to
active).
chpv -h y hdisk2 : marks hdisk2 (with no allocated LPs) as a hot spare disk in a VG
with mirrored LVs.
migratepv Moves allocated PP's from one PV to one or more other PP's in the same VG.
The command is not allowed if the VG is varied on in concurrent mode.
migratepv hdisk1 hdisk3 hdisk5 : moves all PPs from hdisk1 to hdisk3 and hdisk5.
migratepv -l lv02 hdisk2 hdisk4 : moves all PPs in LV lv02 from hdisk2 to hdisk4.
File Management
procfiles procfiles -n `ls /proc` : lists all the process and files they have open.
find find / -xdev -type f -mtime -1 -ls | sort +6nr | head -n 20 : lists the top-20 largest files
in / that where used within the last 24 hours.
lsps Lists paging space and attributes. Configuration file: /etc/swapspaces (contains a list of
swap devices).
lsps :
chps Changes attributes of a paging space.
chps -a {y|n} paging00 : specifies that the paging space paging00 is active (y) or
inactive (n) at subsequent system restarts.
chps -s 10 paging02 : adds ten LPs to paging02 without rebooting.
chps -d 5 paging01 : removes five LPs from paging01 without rebooting.
chps -d 50 hd6 : removes fifty LPs from hd6 without rebooting.
mkps Adds an additional paging space to the system.
mkps -a -n -s20 datavg : creates a permanent paging space pagingxx in VG datavg of
20 LPs and activates it immediately.
rmps Removes a paging space from the system (exept hd6).
rmps paging00 : removes deactivated paging space paging00.
swapoff Deactivates one or more paging space.
swapoff paging01 : deactivates paging space paging01.
swapon Activates a paging space.
swapon paging01 : activate paging space paging01.
swapon -a : activates all paging spaces defined in /etc/swapspaces.
swap Displays paging characteristics and enables the allocation and deallocation of paging
devices.
swap -l : displays device, major and minor numbers, and total and free space.
swap -a /dev/paging01 : activates paging space paging01 (like swapon).
swap -d /dev/paging01 : deactivates paging space paging01 (like swapoff).
migratepv migratepv -l hd6 hdisk0 hdisk2 : moves hd6 from hdisk0 to PV hdisk2 within the same
VG (always use VG rootvg for hd6 performance).
Communications Management
rc.tcpip Script that initializes selected TCP/IP daemons using SRC at each system restart:
inetd, lpd, portmap, sendmail, syslogd (started by default) and gated or routed,
named, timed, xntpd, rwhod, snmpd, dhcpcd, mrouted, autoconf6 (not started by
default unless they are uncommented).
stopsrc -g tcpip : stops all running TCP/IP daemons.
stopsrc -s named : stops the named daemon.
/etc/rc.tcpip : starts all selected TCP/IP daemons. Don't use startsrc -g tcpip (would
start all subsystems in the tcpip group).
startsrc -s named : starts the named daemon.
refresh -s inetd : refresh the inetd subsystem (re-reads /etc/inetd.conf).
/etc/tcp.clean sh /etc/tcp.clean : stops all running TCP/IP daemons (not portmap and nfsd) and
removes all /etc/locks/lpd TCP/IP lock files.
inetd daemon Provides Internet service management for a network. Starts by default using the
/etc/inetd.conf configuration file. Daemons controlled by the inetd daemon: ftpd,
rlogind, rexecd, rshd, talkd, telnetd, and uucpd (started by default) and tftpd,
fingerd, and comsat (not started by default unless they are uncommented).
resfresh -s inetd : informs the inetd daemon of the changes to its configuration file. The
ports inetd listens on are in /etc/services (unless they are commented).
lsdev Displays devices in the system and their characteristics.
lsdev -Cc if : lists IP interfaces.
lscfg Displays configuration, diagnostic, and VPD.
lscfg -l ent0 -v : displays the VPD for ent0.
lsattr Displays attribute characteristics and possible attribute values for devices.
lsattr -HEl en0 : displays effective values for interface en0.
netstat Shows network status.
netstat -in : shows status of IP interfaces with numeric addresses.
netstat -rn : shows status of TCP/IP routes with numeric addresses.
netstat -C : shows routing table, user-configured and current costs of each route.
netstat -v : shows device driver statistics.
arp Displays and modifies address resolution.
arp -a : displays local ARP cache (ip to mac address table).
no Manages network tuning parameters. Changes are valid until the next reboot.
no -a : displays kernel variable values.
no -o ipforwarding : displays if ipforwarding is on (=1) or off (=0).
no -o ipforwarding=1 : specifies the kernel should forward packets (acting as an IP
router).
ifconfig Configures or displays network interface parameters for TCP/IP.
ifconfig -a : displays information about all interfaces in the system.
ifconfig en0 : displays network interface parameters for en0.
ifconfig en0 inet 194.186.152.2 netmask 255.255.255.0 up : assigns IP-address
194.186.152.2 with network mask 255.255.255.0 to interface en0 of address family inet
and turns on the network card.
ifconfig en0 down : turns off network card en0.
route Makes manual entries into the network routing tables until next reboot.
route -rn : displays route table.
route add -inet -net 9.19.98.1 9.19.99.10 : adds a network route to the routing table for
destination host 9.19.98.1 through gateway 9.19.99.10.
lsattr Displays attribute characteristics and possible values of attributes for devices.
lsattr -El en0 : lists the current attribute values for en0.
nslookup Queries Internet domain name servers.
nslookup : enters interactive mode.
nslookup nserver1 : returns the domain name and Internet address of nserver1.
traceroute Displays the route that IP packets take to a network host.
traceroute server2 : displays all the hops from local host to server2.
iptrace Provides interface-level packet tracing for Internet protocols.
daemon
ipreport Generates a trace report from the specified trace file created by the iptrace command.
ping Sends an echo request to a network host.
ping -c 6 server1 : checks the network connection to host server1 by sending 6 echo
requests.
ping -f server2 : invokes the flood-ping option to host server2.
ping -R : displays the full round trip route of a packet.
spray Sends a one-way stream of packets to a host and reports performance statistics using
the RPC (default) or ICMP protocol (two-way stream).
spray server1 -c 1000 -d 4 : sends 1000 packets at intervals of 4 microseconds to
server1.
host Resolves a host name into an Internet address or an Internet address into a host name.
System files: /etc/hosts (local hosts table).
host server1 : displays the Internet address and name aliases of host server1.
host 192.186.154.3 : displays the host whose address is 192.186.154.3.
hostid Sets or displays the identifier of the current local host.
hostname Sets or displays the name of the current host system.
hostname tulip : changes the hostname to tulip until the next reboot.
chdev -l inet0 -a hostname=server1 : changes the hostname permanently to server1.
mktcpip Sets the required values for starting TCP/IP on a host.
rwho Displays which users are logged in to hosts (that run rwhod) on the local network.
rwho -a : lists all users currently logged in to hosts on the local network.
ruptime Displays the status of each host (that runs rwhod) that is on the local network.
ruptime -al : lists a status report of each host on the local network sorted by load
average.
lsnamsv Shows name service information stored in the database /etc/resolv.conf (name
resolver).
chnamsv Changes TCP/IP-based name service configuration on a host.
mknamsv Configures TCP/IP-based name service on a host for a client.
rmnamsv Unconfigures TCP/IP-based name service on a host.
User/Group Management
Print Management
The AIX print subsystem (default), a combination of the System V and Berkeley Software Distribution
(BSD) printing standard, and the System V R4 print subsystem are available. Both print subsystems
cannot be set to the active state at the same time using the normal procedures.
System file /etc/qconfig (stanzas that describe the printqueues and devices). Spooling uses the
/var/spool/qdaemon directory. Daemon: qdaemon.
switch.prt Displays the current active print subsystem, or switch between the active and inactive
print subsystem. Read also AIX System V Printing.
switch.prt -d : displays the current print subsystem that is active.
AIX print subsystem
qprt Starts a print job.
lpr Enqueues print jobs.
lp Sends requests to a line printer.
enq Enqueues a file.
chprtsv Changes a print service configuration on a client or server machine.
lsque Displays the queue stanza name.
lsque -q ps : displays the name of queue stanza ps.
mkque Adds a printer queue to the system.
mkquedev Adds a printer queue device to the system.
rmque Removes a printer queue from the system.
rmquedev Removes a printer or plotter queue device from the system.
chque Changes the queue name.
chvirprt Changes the attribute values of a virtual printer.
lsallq Lists the names of all configured queues.
lsallqdev Lists all configured printer and plotter queue device names within a specified queue.
lsprtsv Shows print service information stored in the database.
lsquedev Displays the device stanza name.
chquedev Changes the printer or plotter queue device names.
mkvirprt Makes a virtual printer.
rmvirprt Removes a virtual printer.
mkprtsv Configures TCP/IP-based print service on a host.
rmprtsv Unconfigures a print service on a client or server machine.
System V R4 print subsystem
lp Sends print requests.
cancel Cancels print requests previously sent with the lp command.
lpstat Displays the status of all print requests made by the user.
accept Allows the queuing of print requests.
reject Prevents queuing of print requests.
enable Activates the named printers, enabling them to print requests.
disable Deactivates the named printers, disabling them to print requests.
lpadmin Configures the lp print service by defining printers and devices.
lpfilter Administers filters used.
lpforms Administers the use of preprinted forms.
lpmove Moves print requests between destinations.
lpsched Starts the print service.
lpshut Stuts down the print service.
lpsystem Registers remote systems with the print service.
lpusers Set printing queue priorities.
Software Management
A fileset is the smallest installable base unit for the AIX operating system (example: bos.perf.pefstat). A
package is a group of separately installable filesets that provide a set of related functions (example:
bos.perf). A Licensed Program Product (LPP) is a complete software product including all packages
associated with that licensed program (example: bos). A bundle is a list of software that can contain
filesets, packages, and LPPs that are suited for a particular use (examples: CDE, KDE, GNOME).
Each fileset in a product can be divided into three parts: usr, root, and share. Parceling of a software
product is used for diskless and dataless clients. Thus it can be installed on one machine (the server)
and then be used remotely by other machines on a network (the clients).
The usr part of a software product can be shared by machines with the same hardware architecture
(stored in /usr).
The root part (optional) of a software product cannot be shared by machines. In a client/server
environment, these are the files for which there must be a unique copy for each client of a server. Most of
the root software is associated with the configuration of the machine or product (stored in the root (/) file
tree. The /etc/objrepos directory contains the root part of an installable software product's VPD).
The share part (optional) can be shared among machines, even if they have different hardware
architectures.The share part of a product is always packaged in a separately installable package (stored
in /usr/share).
The format for a software product level in AIX 5.2 is as follows:
versionnumber.releasenumber.modificationlevel.fixlevel
ODM Management
ODM information is stored in the directories /etc/objrepos (default ODM directory, $ODMDIR env
variable), /usr/lib/objrepos and /usr/share/lib/objrepos.
utmpd The utmpd daemon monitors /etc/utmp for validity of the user process entries every 300
seconds (default). Default there is no entry in /etc/inittab for utmpd.
utmpd 500 : runs utmpd every 500 seconds.
whodo Reports the list of processes and their child processes belonging to users.
who -l : summarises the current activity on the system.
procwdx Prints the current working directory of a process.
procwdx 21318 : displays the current working directory of process 21318.
truss Traces system calls executed by a process as, records the received signals and the
occurrence
of machine faults. The output of truss can become very large.
truss -e -o truss.out whoo : runs the who command under truss including the
environment content (-e) and redirects the output to truss.out.
Scheduling
crontab Submits, edits, lists, or removes cron jobs for the cron daemon. The cron daemon logs
its activities in /var/adm/cron/log.
Each crontab file entry contains six fields: minute hour day_of_month month weekday
command
crontab -l : lists the user's crontab file.
crontab -e : edit the crontab file using an intermediate copy.
at Runs commands at a later time.
at -l : reports the current user's scheduled jobs.
batch Runs jobs when the system load level permits.
skulker Cleans up file systems by removing unwanted files. Remove the comment from the
skulker entry of the root crontab to enable operation.
Performance Management
The base priority of a thread is 40. The nice value defaults to 20 for foreground processes and 24 for
background processes.
The CPUs on a system are shared among all of the threads by giving each thread a time slice of one
clock tick (10 ms).
Install the bos.perf.tools (base tools), bos.sysmgt.trace, bos.perf.perfstat and perfagent.tools
filesets. Commands no longer supported: bf (bigfoot), bfrpt, lockstat, stem, and syscalls.
dosdir Lists the directory for DOS files (default device is /dev/fd0).
dosread Copies DOS files to AIX files.
dosread -a yourfile.txt yourfile : copies a text file from a DOS diskette
and replaces each carriage return, line-feed sequence with a new-line
character and interprets a Ctrl-Z as the end-of-line character.
dosdir | awk '!/There are/ {print $1}'|xargs -t -i dosread {} {} : copies
every DOS file from a DOS diskette.
doswrite Copies AIX files to DOS files.
doswrite -a myfile myfile.txt : copies file myfile to a DOS diskette and
replaces new-line characters with carriage return, line-feed sequences (-
a). Ctrl-Z is added at the end of file.
for i in *;do;doswrite $i $i;done : copies every file in the current directory
to a DOS diskette.
dosdel Deletes DOS files.
dosformat Formats a DOS diskette.
Mtools is a public domain collection of tools to allow Unix systems to manipulate MS-DOS files
Documentation: Mtools (HTML) or Mtools (PDF).
floppyd floppy daemon to run on your X server box
floppyd_installtest small utility to check for the presence of floppyd
mattrib change MS-DOS file attribute flags
mbadblocks tests a floppy disk, and marks the bad blocks in the FAT
mcat same as cat. Only usefull with floppyd.
mcd change MS-DOS directory
mcopy copy MS-DOS files to/from Unix
mdel delete an MS-DOS file
mdeltree recursively delete an MS-DOS directory
mdir display an MS-DOS directory
mdu list space occupied by directory and its contents
mformat add an MS-DOS filesystem to a low-level formatted floppy disk
minfo get information about an MS-DOS filesystem.
mlabel make an MS-DOS volume label
mkmanifest makes a list of short name equivalents
mmd make an MS-DOS subdirectory
mmount mount an MS-DOS disk
mpartition create an MS-DOS as a partition
mrd remove an MS-DOS subdirectory
mmove move or rename an MS-DOS file or subdirectory
mren rename an existing MS-DOS file
mshowfat shows the FAT map of a file
mtoolstest tests and displays the configuration
mtype display contents of an MS-DOS file
mzip zip disk specific commands
CDE
dtconfig /usr/dt/bin/dtconfig -d : disables desktop logins (-e enables desktop logins).
dtlogin /usr/dt/bin/dtlogin -daemon : starts the desktop login manager manually.
xinit Initializes the X Window System.
xinit /etc/dt/Xsession : starts the CDE desktop from command line interface
(customized version, if present).
xinit /usr/dt/bin/Xsession : starts the CDE desktop from command line interface
(default version).