http://hell.org.ua/Docs/oreilly/unix/upt/ch07_01.htm
Basics of Setting the Prompt
The prompt displayed by your shell is contained in a shell variable (6.8) called prompt in the C shell and PS1 in the Bourne shell. As such, it can be set like any other shell variable. [bash and tcsh have plenty of extra features for those two variables. There are examples in later articles. -JP]
So, for example, if I wanted to change my C shell prompt to include my login name, I might put the following command into my .cshrc file:
set prompt="tim % "
(It's helpful to leave the % at the end so that it remains obvious that this is a C shell. The space after the % makes the command you type stand out from the rest of the prompt.)
Or if I wanted to put in the name of the system I was currently logged in on, I might say:
`...` uname -n
set prompt="`uname -n` % "
If I wanted to include the history number for each command, (11.1) I'd say:
set prompt="\! % "
Or if I wanted all three things:
set prompt="tim@`uname -n` \!% "
This will give me a prompt like this:
tim@isla 43%
11 Ağustos 2009 Salı
6 Ağustos 2009 Perşembe
SAP Database Guide: Oracle (BC-DB-ORA-DBA)
http://help.sap.com/saphelp_erp2004/helpdata/en/79/5e0540a054e469e10000000a155106/frameset.htm
aix komutları
smit
bos level;
oslevel
5 version --migration
3 Release
0 Modification -- smith update_all
0 Fix
bos maintenance level
oslevel -r
smit install -- software installation and maintanance
smit install_update
smit install_latest
#geninstall -d /usr..
smit lis_installed
lslpp
-L lists the installed software
-h shows the history of a software product
-p display request information for the fileset
-d dsiplays dependent information for the fileset
-f displays the names of the files added to the system during installation of the fileset
-w lists the fileset that owns a file
-b list software for the specified bundle name
lislpp -l "bos.*"
smit compare_report
smit service_software -software service management(SUMA)
suma
smit maintain_software
gencopy - d /dev/cd0 -t /usr/sys/inst.image all -- copy all software to hard disk for future installation
installs a fix;
#instfix -k IY58143 -d /dev/cd0
Search for a fix;
#instfix -ik IY58143
search for a fix keyword;
instfix -s SCSI -d /dev/cd0
list bos maintance level
instfix -i | grep ML
list missing
#instfix -ciqk 5300-01_AIX_ML | grep :-:
-T displays entire table of contens
-s search for and display table of contents entries containing the string
-k install fileset for a keyword or fix
#instfix -k IY58143 -d /dev/cd0
-f
-i
-a
-d
-c
smit change_documentation_services
accessing the web-based system manager
standalone mode;
#wsm
client-server mode;
#wsm -host
applet mode;
http:///wsm.html
lslpp -h sysmgt.websm.framework
smit web_based_system_manager
HMC Management
#bootlist -m service cd0 hdisk0 hdisk1
#bootinfo -p -architecture
#bootinfo -y -view addresing
#alog -o -t boot - view the boot information
#smit alog
who /var/adm/wtmp
who /var/adm/wtmp | grep "May 17"
/etc/inittab id
runlevel
action
respawn
wait
once
sysinit
off
command
#telinit - reread /etc/inittab file
#shutdown -m a single user mode terminating all logins
System resource controller syntax
list src status
#lssrc -g spooler
start a subsystem
#startsrc -s lpd
refresh a subsystem
# refresh -s lpd
stop a subsystem
#stopsrc -s lpd
Stopping Processes
#ps -ef
not started by srcmstr;
#kill 9345
by SRC;
#stopsrc -s qdaemon
System Shutdown
#shutdown +2 - 2saat sonra kapanacak
-d
-F hızlı kapatır
-h halt o.s.
-i
-k
-m single user mode
-r restart
-t mmddHHMM
-l
Manage the System Environment
#smit system
Manage System Language Environment
#smit mlang
Listing of /deb Directory
#ls -l /dev
cd0
fd0
hd, lv logical volume
hdisk physical volume
List All Support Device
PdDv(Predefined Devices)
#lsdev -P -H
#lsdev -Pc tapes
List All Define Devices
CuDv (Customized Devices)
#lsdev -C -H
#lsattr -EH -l sys0
#lsattr -E -l sys0 -a realmem
Device States
mkdev -l or cfgmgr
SMIT Devices Menu
#smit devices
important aix commands
lsdev -Cc adapter --list all adapters
lsslot -c pci --all slots
lscfg -vl xyz
--------------------
getlvcb -TA hd2
lspv
cfgmgr
lsdev -C -c disk
lspv hdisk1
lspv -l hdisk1
lspv -p hdisk1
lspv -M hdisk1
lsvg
lsvg -o
lsvg -l rootvg
lsvg -p rootvg
lsvg | lsvg -il
lslv newlv
--------------
mpstat cpu bilgileri
mpstat |tail +2 |wc -l
bos level;
oslevel
5 version --migration
3 Release
0 Modification -- smith update_all
0 Fix
bos maintenance level
oslevel -r
smit install -- software installation and maintanance
smit install_update
smit install_latest
#geninstall -d /usr..
smit lis_installed
lslpp
-L lists the installed software
-h shows the history of a software product
-p display request information for the fileset
-d dsiplays dependent information for the fileset
-f displays the names of the files added to the system during installation of the fileset
-w lists the fileset that owns a file
-b list software for the specified bundle name
lislpp -l "bos.*"
smit compare_report
smit service_software -software service management(SUMA)
suma
smit maintain_software
gencopy - d /dev/cd0 -t /usr/sys/inst.image all -- copy all software to hard disk for future installation
installs a fix;
#instfix -k IY58143 -d /dev/cd0
Search for a fix;
#instfix -ik IY58143
search for a fix keyword;
instfix -s SCSI -d /dev/cd0
list bos maintance level
instfix -i | grep ML
list missing
#instfix -ciqk 5300-01_AIX_ML | grep :-:
-T displays entire table of contens
-s search for and display table of contents entries containing the string
-k install fileset for a keyword or fix
#instfix -k IY58143 -d /dev/cd0
-f
-i
-a
-d
-c
smit change_documentation_services
accessing the web-based system manager
standalone mode;
#wsm
client-server mode;
#wsm -host
applet mode;
http://
lslpp -h sysmgt.websm.framework
smit web_based_system_manager
HMC Management
#bootlist -m service cd0 hdisk0 hdisk1
#bootinfo -p -architecture
#bootinfo -y -view addresing
#alog -o -t boot - view the boot information
#smit alog
who /var/adm/wtmp
who /var/adm/wtmp | grep "May 17"
/etc/inittab id
runlevel
action
respawn
wait
once
sysinit
off
command
#telinit - reread /etc/inittab file
#shutdown -m a single user mode terminating all logins
System resource controller syntax
list src status
#lssrc -g spooler
start a subsystem
#startsrc -s lpd
refresh a subsystem
# refresh -s lpd
stop a subsystem
#stopsrc -s lpd
Stopping Processes
#ps -ef
not started by srcmstr;
#kill 9345
by SRC;
#stopsrc -s qdaemon
System Shutdown
#shutdown +2 - 2saat sonra kapanacak
-d
-F hızlı kapatır
-h halt o.s.
-i
-k
-m single user mode
-r restart
-t mmddHHMM
-l
Manage the System Environment
#smit system
Manage System Language Environment
#smit mlang
Listing of /deb Directory
#ls -l /dev
cd0
fd0
hd, lv logical volume
hdisk physical volume
List All Support Device
PdDv(Predefined Devices)
#lsdev -P -H
#lsdev -Pc tapes
List All Define Devices
CuDv (Customized Devices)
#lsdev -C -H
#lsattr -EH -l sys0
#lsattr -E -l sys0 -a realmem
Device States
mkdev -l or cfgmgr
SMIT Devices Menu
#smit devices
important aix commands
lsdev -Cc adapter --list all adapters
lsslot -c pci --all slots
lscfg -vl xyz
--------------------
getlvcb -TA hd2
lspv
cfgmgr
lsdev -C -c disk
lspv hdisk1
lspv -l hdisk1
lspv -p hdisk1
lspv -M hdisk1
lsvg
lsvg -o
lsvg -l rootvg
lsvg -p rootvg
lsvg | lsvg -il
lslv newlv
--------------
mpstat cpu bilgileri
mpstat |tail +2 |wc -l
Kaydol:
Kayıtlar (Atom)