Solaris 10 command cheat sheet | Booting | File System

October 11, 2018 | Author: Anonymous | Category: Solaris
Share Embed


Short Description

Prom . . . . . . . . . Equivalentto BIOS. Run level O. printenv * Displaysenvironmentalvariables.Ex. printenv <variab...

Description

Prom Equivalentto Equivalentto BIOS. Run level O. printenv * Displaysenvironmental Displaysenvironmentalvariables. variables.Ex. Ex. printenv or or printenv setenv* setenv* Changesenvironmentalvariables.Ex. variables.Ex. setenv setenv probe-scsi-all * Checksall Checksall SCSIdevices. May needreset-all needreset-all if coming from a higher run level. probe-ide * Checksall Checksall mE devices. reset-all * Resetsserver. Maybe neededbeforeprobe-scsi-all. power-off * Powersoff Powersoff server. boot * Boots serverwith serverwith specifieddevice specifieddeviceor or run level. 0 boot * Normal boot to run level 6. 0

boot -s * Bootsto Bootsto singleuser singleusermode. mode.

0 boot cdrom- install * Usedfor Usedfor installing OS from DVD. test-all * Executestest for all devieceswith self testmethod. 0 testnet * Testsnet Testsnet devices 0 testfloppy * Testsfloppy Testsfloppy deviece.

Single User Mode

down arrow keys. Also allows for completionsof paths,commands,or files onceenoughcharactershavebeenenterthat there are no other possible matches. cd * Changesdirectory. Ex. cd ,cd.. (goesup one directory) Is * List files and directories. 0

Is -{l * Showseverything.

0 Is -l * Showslong listing of information

0 They can all be usedtogether. Absolutepath * Full path going back / . Canbe usedfrom anywhere. Relativepath * Pathfrom whereyou are to whereyou want to go. directory wherethey are located. cp * Copiesfiles. mv * Moves files. mkdir * Createsdirectories. chmod-R * Changespermissionson files or directories. 0 0

-R

* Usedon directoriesto changepermissions on subfiles andsub

directories.



r

4,

2,

I * Add permission you want for user,

group,andeveryone.Ex. 644 would be userrw-, group would be r--,

ps options * Showsrunningprocess.Options-e processfor all users,-f all info, u processesfor specificuser. Optionse and u can't be use together. Option f can be usedwith eitheroptionse or u. svcs* Showsservices. 0 svcs* limits displayto just svcadm* Optionsrestart,enable,disable. ifconfig * Commandfor networkinterfaceconfiguration. 0

ifconfig -a * Showslogicalinterfaces.

0

-m

0 0

-g * Addsuserto unix group. for galeusers.Don't -s * Setspathto shell.(Uselusr/bin/csh

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.Can be usedafter plumb. 0 ifconfig down * Disablesinterface. date * Displaysdateandtime. 0 date mmddHHMMYYYY GMT * Changesdateandtime. Use Zulu time. useraddoptions*Createsunix user. 0 -c "" * addsdescriptionfor userbeingcreated.

* Makehomedirectoryandcopybasicfiles from default.

0 -d * Specifieshomedirectory (use lexport/home/

usefor any other type of account) passwd* Changesuserpassword. 0 passwd-x -1 * Setsnot to expire.

Samba Commands smpasswd-a * Usedto setsamba passwords for rootandmctta

during configuration. Locatedat lusrlsfw/bin/ net groupmap* Usedto list and deletegroupsfor Sambaduring configuration. 0 net groupmaplist * Showsgroupsfor sambawith SIDs 0 net groupmapdeleteSID="" . Using bashyou can up arrow andjust changethe last numberand deleteall six quickly andeasily. net samset * Allow configuring of Sambauseraccounts.Located lusrlsfw/bin/ 0 net samsethomedir * Sethomedirectory for user. 0 net samset profilepath * Setprofile path for user. 0 net samsetfullname * Set Full namefor user. 0 net samset homedrive * Setshomedrive for user. 0 net samset logonscript * Set logon script for user. (logon.bat for TCAC 0 net samsetdisabled * Disablesor enables useraccount.

no>* Setswhetheruserpassword

expires. 0 net samsetpwdmustchangeno * Requiresuserto 0

changepasswordat next logon.

net sam set autolock * Locks or unlocksuseraccount.

net sampolicy * Passwordand accountpolicies. Locatedlusrlsfw/bin/ 0 net sampolicy list * List policies. 0 net sampolicy show * Showsvalue of .

View more...

Comments

Copyright © 2017 DATENPDF Inc.