Prom . . . . . . . . .
Equivalentto BIOS. Run level O. printenv * Displaysenvironmentalvariables.Ex. printenv
or printenv setenv* Changesenvironmentalvariables.Ex. setenv
probe-scsi-all * Checksall SCSIdevices. May needreset-all if coming from a higher run level. probe-ide * Checksall mE devices. reset-all * Resetsserver. Maybe neededbeforeprobe-scsi-all. power-off * Powersoff server. boot * Boots serverwith specifieddeviceor run level. 0 boot * Normal boot to run level 6. 0
.
boot -s * Bootsto singlemode.
0 boot cdrom- install * Usedfor installing OS from DVD. test-all * Executestest for all devieceswith self test method. 0 testnet * Testsnet devices 0 testfloppy * Testsfloppy deviece.
Single Mode
.
. .
. .
.
Similar to Windows SafeMode with CommandPrompt. Can useany terminal commandhere. Run level 1. Can't useBackspacekey must useDeletekey. umountall * Usedto unmountall fIle systems.Usedbeforefsck (File Systems Check) fsck -y * File SystemsCheck. Use umountallbefore.Make sureyou havethe -y so that it will not ask for your input constanely.
Terminal Commands
.
su - * Changesprivilegesto root. a su - <usemame>* Changesprivileges to specified. If alreadyroot then not required.
. . . .
bash * Changesto bashshell. Allows useof previouscommandsthroughup and down arrow keys. Also allows for
completionsof paths,commands,or files onceenoughcharactershavebeenenterthat thereare no other possible matches. pwd * Showscurrentdirectory. cd * Changesdirectory.Ex. cd <path>,cd.. (goesup one directory) Is * List files and directories. 0
. . . . . . . .
Is -{l * Showseverything.
0 Is -l * Showslong listing of information 0 Is <path> * Lists files and directoriesfor <path>insteadof current location. 0 They can all be usedtogether. Absolutepath * Full path going back/ . Canbe usedfrom anywhere. Relativepath * Pathfrom whereyou areto whereyou want to go. j * Usedfor running commands,scripts,or files if your arecurrently in the directory wherethey are located. <path/originalfile> <path/newfile> * Copiesfiles. mv <path/originallocation> <path/newlocation> * Moves files. mkdir
* Createsdirectories. rm
* Deletesdirectoriesand files. chmod-R <groupeveryone><path> * Changespermissionson files or directories.
* Usedon directoriesto changepermissions on subfiles andsub
0
-R
0
directories.
. .
.
. .
* Add permission you want for ,
-f -h
* Optionto forcechange. * Optionfor links.With -h it will changegroupon linkedfile.
* Option for directoriesto changegroup on all subfiles and directories. man
* Openshelp manualfor commands.Enterkey down one line, Spacekey down one page,q quit help more * Readsfiles. With pipe I breakslong lists to what will fit on one screen. Enterkey down one line, Spacekey down one page,q quit help I * Pipe combinescommands.Placein betweentwo commands.Ex. Is -al /etc I more init option * Changesrun level. Options0, s, 5, and 6. 0 = Prom, s = Single Mode, 5 = ShutdownandPoweroff, 6 = Rebootto Console. find / -name<Search>* Searchesfiles and directoriesfor <Search> 0
.
=4, w =2, x = I
group,and everyone.Ex. 644 would be rw-, group would be r--, everyoner-chown-R
<path/file> * Changesowner for files or directories.-R for useon directoriesto changeowner on subfiles and subdirectories. chgrp options
<path/file> * Changesgroup for files anddirectories. 0 0
.
r
-R
.
. . .
ps options * Showsrunningprocess.Options-e processfor all s,-f all info, u processesfor specific. Optionse and u can't be usedtogether. Option f can be usedwith either optionse or u. svcs* Showsservices. 0 svcs<service>* limits displayto just <service> svc
<service>* Optionsrestart,enable,disable. ifconfig * Commandfor network interfaceconfiguration. 0
. .
ifconfig -a * Showslogicalinterfaces.
0 ifconfig
* ChangesIP addressfor interface. (Interfaceusedfor TCAC bgeO) 0 ifconfig
netrnask
* Changesnetrnaskfor interface. 0 ifconfig
plumb * Createslogical interfacefor physical interface.(TCAC hasbgeO,bge1,bge2,and bge3) 0 ifconfig
unplumb * Deleteslogical interface. 0 ifconfig
up * Enablesinterface.Canbe usedafter plumb. 0 ifconfig
down * Disablesinterface. date * Displaysdateand time. 0 date mmddHHMMYYYY GMT * Changesdateand time. Use Zulu time. addoptions<usemame>*Createsunix . 0 -c "
" * addsdescriptionfor beingcreated. 0
-m
* Makehomedirectoryandcopybasicfiles from default.
0 -d
* Specifieshomedirectory (use lexport/home/<usemame> 0 0
.
-g
* Addsto unix group. -s <shell path> * Setspathto shell.(Uselusr/bin/csh for gales.Don't
usefor any other type of ) wd<usemame>* Changes. 0 wd-x -1 <usemame>* Sets<usemame>not to expire.
VI . Text editor for tenninal. Cancreatenew files. . Use arrow keys for navigation.
.
vi
0 l<string> * Searchesfor <string> within document 0 i * Insert characters. 0 a * Appendcharacters. 0 r * Replaceone character. 0 x * Deleteone character. 0 dd * Deleteone line. 0 0 * New line and startediting. 0 : * Enter commandmode. q! * Quit without saving . wq! * Saveandquit
.
Samba Commands
. .
.
.
smwd-a <usemame> * Usedto setsambas for rootandmctta
during configuration. Locatedat lusrlsfw/bin/ net groupmap* Usedto list and deletegroupsfor Sambaduring configuration. 0 net groupmaplist * Showsgroupsfor sambawith SIDs 0 net groupmapdeleteSID="<SID from list>" . Using bashyou canup arrow andjust changethe last numberand deleteall six quickly and easily. net samset<Options>* Allow configuring of Sambas.Located lusrlsfw/bin/ 0 net samsethomedir<>
* Sethomedirectory for . 0 net samsetprofilepath<>
* Setprofile path for . 0 net samsetfullname <>
* Set Full namefor . 0 net samsethomedrive<>
* Setshomedrive for . 0 net samsetlogonscript<>
* Set logon script for . (logon.bat for TCAC) 0 net samsetdisabled<>
* Disablesor enables 0 net samsetpwnoexp<>
* Setswhether expires. 0 net samsetpwdmustchangenow <>
* Requiresto changeat next logon. 0 net sam set autolock <>
* Locks or unlocks. net sampolicy * and policies. Locatedlusrlsfw/bin/ 0 net sampolicy list * List policies. 0 net sampolicy show<policy> * Showsvalue of <policy>. 0 net sampolicy set<policy>
* Setsvalueof <policy>.