SlideShare a Scribd company logo
Prepared by – ashwinwriter@gmail.com
What is Solaris?



"Solaris" is Sun Microsystems' version of Unix Operating System, based on AT&T's System V Unix,
with a lot more features and improvements. Over the years, it has been one of the most popular
UNIX environments being used at the enterprise level.



Learning Solaris, as of learning any other flavour of UNIX, seems a daunting task for a beginner,
because of its unfriendly and cryptic commands and not knowing where to look in case some help is
needed. The best way to start learning Solaris (or any UNIX or Linux for that matter) is to understand
the principles or philosophy behind its design. Once that is understood, you can see its elegance,
power and versatility. Then understand the basic concepts, commands and tools that give you the
confidence in using Solaris. With this foundation, you can move on to learn intermediate and
advanced level commands and concepts.




Simple commands:

1. Check the process:

# ps -ef | grep 'processname'
ex-http, httpd etc.



2. check the disk space:

# df -h

3. check the OS version:

# uname -r , uname -a

4. Detec hardware problems:

# fmadm faulty

5. Add user:

# useradd name


6. Set password:

# passwd name
7. Using swat

http://localhost:901



8. make directory:

# mkdir /share (share is the name of the directory)



9.Change the owner of file to user

# chown user file



10. Change file's owner to user and group to group

#chown user.group file

Note: chown can only be used by root.




11. chomod commands:

chmod g+r file Allow group to read

chmod u+w file Allow user to write

chmod a+x file Allow everyone (user, group, and other) to execute

chmod o-r file Disallow others to read

chmod ug+r file Disallow others to read

chmod g+w,o-r file Allow group write, disallow other read

chmod u=rw file Set user permissions to read and write.




Add up the values for the rights required.

r 4

w 2

x 1
For example: converting rwxr-x--- to octal:

7 = 4+2+1 = r + w + x

5 = 4+1 = r + x (not write)

0 = no rights

So rwxr-x--- is 750 in octal




12. What is the sticky bit's purpose?

The sticky bit has a different meaning, depending on the type of file it is set on:

# sticky bit on regular files:

If an executable file is prepared for sharing, mode bit (-t) prevents the system from abandoning the swap-space image of
the program-text portion of the file when its last user terminates. Then, when the next user of the file executes it, the text
need not be read from the file system but can simply be swapped in, thus saving time.




# Sticky bit for network files:

Local paging. When applications are located remotely, set the "sticky bit “on the applications binaries, using the chmod +t
command. This tells the system to page the text to the local disk. Otherwise, it is "retrieved" across the network.




#The most common use of the sticky bit today:

The most common use of the sticky bit today is on directories, where, when set, items inside the directory can be renamed
or deleted only by the item's owner, the directory's owner, or the superuser. (Without the sticky bit set, a user with write
and execute permissions for the directory can rename or delete any file inside, regardless of the file's owner.)




Frequently this is set on the /tmp directory to prevent ordinary users from deleting or moving other users' files.

#chmod +t directory Set the sticky bit on a directory

#chmod -t directory Remove the sticky bit from a directory




13.Delete a file.

# rm /directory/file-to-be-deleted



14. To change the modification time of a file (the time displayed in a long listing of the file) of a file
called testfile to November 18, 2000, 2:30 PM, use the following command:

# touch -t 200011181430
15.find out ethernet interface name.

# inconfig -a




16. In most UNIX systems, startup scripts in /etc/rc3.d, etc, are used to start and stop services.
Solaris 10 uses a different approach.

There are two advantages to the Solaris 10 method:

The system can come up faster, because startup of various systems can be done in parallel. The system knows more about
what is going on. It can monitor processes and restart them. Services are managed by svcadm. The most common
commands are :

With Solaris 10, general purpose SMF CLI tools (such as svcadm and svcs):

# svcadm enable SERVICE

# svcadm disable SERVICE

# svcadm restart SERVICE

# svcadm refresh SERVICE




To look at services, two common commands are

svcs {lists summary of all}

svcs -l SERVICE {details on one service}




17.Enable Firewall (Ipfilter)

#svcadm enable network/ipfilter



18. SHELL COMMANDS:

Shell Commands

Most commands default to using the current directory.

pwd show the current directory, eg "pwd" may print "/home/kim"

cd change current directory, with no arguments will change to your home directory

ls shows files in current directory

ls foo shows files in directory "foo" or the file "foo"

ls *.html shows files in the current directory ending in .html

ls -l shows details of files
ls -a show all files, including files beginning with "."

tree -d show directory structure

less display a file on screen

man where to find help on any command

mount show all file systems currently mounted, or add a file system to the tree, eg "mount -t vfat /dev/fd0 /floppy

umount un mount a file system, eg "umount /dev/fd0" or "umount /floppy"

id show which groups you belong to

chmod change permissions on files




19.umount un mount a file system,

#umount /dev/fd0 or umount /floppy



20. Show Free space:

# df -h show the free space on all file systems

# du -h show how much disk space each directory uses




21. Devices:

/dev/hda = First IDE disk (master device on first IDE channel) typically this is your hard disk

/dev/hdb = the slave device on the first IDE controller

/dev/hdc = the master device on the second IDE controller (typically your CDROM)




22. Change the owner of file to user

# chown user file




23. Groups in UNIX:

Name: eg users

Number (gid): eg 100, used internally by the kernel

Defined in /etc/group

audio:x:29:kim,jason
The columns in /etc/group are:

a.Group name, eg audio

b.Encrypted group password, or 'x' if the password hash is stored in /etc/gshadow

c.Group number (gid), eg 29

d.List of user name for people who are members of this group




24. Change file's group to group.

# chgrp group file




25. Add existing user pranab to group called km.

# usermod -G km pranab




26.Delete the group:

# groupdel groupname




27. Rename group:

#groupmod -n newgroup oldgroup




These were some of very basic commands to get started, but it takes a lot of dedication and practice
to master the art of managing UNIX like operating systems.

More Related Content

What's hot

Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
Gaurav Sharma
 
History of linux
History of linuxHistory of linux
History of linux
Shiwang Kalkhanda
 
Linux introduction, class 1
Linux introduction, class 1Linux introduction, class 1
Linux introduction, class 1
Adrian Mikeliunas
 
Backup & restore in windows
Backup & restore in windowsBackup & restore in windows
Backup & restore in windows
Jab Vtl
 
ODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live DiskODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live Disk
Ruggero Citton
 
Ubuntu-Overview
Ubuntu-OverviewUbuntu-Overview
Ubuntu-Overview
Nirma University
 
Linux booting process!!
Linux booting process!!Linux booting process!!
Linux booting process!!
sourav verma
 
Linux OS presentation
Linux OS presentationLinux OS presentation
Linux OS presentation
SahilGothoskar
 
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Linaro
 
Linux distributions
Linux    distributionsLinux    distributions
Linux distributions
RJ Mehul Gadhiya
 
SystemV vs systemd
SystemV vs systemdSystemV vs systemd
SystemV vs systemd
All Things Open
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
kalyanineve
 
Linux file system
Linux file systemLinux file system
Linux file system
Md. Tanvir Hossain
 
Linux sunum
Linux sunumLinux sunum
Introducing Oracle Audit Vault and Database Firewall
Introducing Oracle Audit Vault and Database FirewallIntroducing Oracle Audit Vault and Database Firewall
Introducing Oracle Audit Vault and Database Firewall
Troy Kitch
 
Linux Kernel and Driver Development Training
Linux Kernel and Driver Development TrainingLinux Kernel and Driver Development Training
Linux Kernel and Driver Development Training
Stephan Cadene
 
An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)
An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)
An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)
William Liang
 
Virtualization Support in ARMv8+
Virtualization Support in ARMv8+Virtualization Support in ARMv8+
Virtualization Support in ARMv8+
Aananth C N
 
Building Embedded Linux Full Tutorial for ARM
Building Embedded Linux Full Tutorial for ARMBuilding Embedded Linux Full Tutorial for ARM
Building Embedded Linux Full Tutorial for ARM
Sherif Mousa
 

What's hot (20)

Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 
History of linux
History of linuxHistory of linux
History of linux
 
Linux introduction, class 1
Linux introduction, class 1Linux introduction, class 1
Linux introduction, class 1
 
Backup & restore in windows
Backup & restore in windowsBackup & restore in windows
Backup & restore in windows
 
ODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live DiskODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live Disk
 
Ubuntu-Overview
Ubuntu-OverviewUbuntu-Overview
Ubuntu-Overview
 
Linux booting process!!
Linux booting process!!Linux booting process!!
Linux booting process!!
 
Linux OS presentation
Linux OS presentationLinux OS presentation
Linux OS presentation
 
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
 
Linux distributions
Linux    distributionsLinux    distributions
Linux distributions
 
SystemV vs systemd
SystemV vs systemdSystemV vs systemd
SystemV vs systemd
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux sunum
Linux sunumLinux sunum
Linux sunum
 
Introducing Oracle Audit Vault and Database Firewall
Introducing Oracle Audit Vault and Database FirewallIntroducing Oracle Audit Vault and Database Firewall
Introducing Oracle Audit Vault and Database Firewall
 
Linux Kernel and Driver Development Training
Linux Kernel and Driver Development TrainingLinux Kernel and Driver Development Training
Linux Kernel and Driver Development Training
 
An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)
An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)
An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)
 
Virtualization Support in ARMv8+
Virtualization Support in ARMv8+Virtualization Support in ARMv8+
Virtualization Support in ARMv8+
 
Building Embedded Linux Full Tutorial for ARM
Building Embedded Linux Full Tutorial for ARMBuilding Embedded Linux Full Tutorial for ARM
Building Embedded Linux Full Tutorial for ARM
 
Web Uygulama Pentest Eğitimi
Web Uygulama Pentest EğitimiWeb Uygulama Pentest Eğitimi
Web Uygulama Pentest Eğitimi
 

Similar to Solaris basics

lec1.docx
lec1.docxlec1.docx
lec1.docx
ismailaboshatra
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
Aniruddh Tyagi
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
aniruddh Tyagi
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
aniruddh Tyagi
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
Lilesh Pathe
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
Muhammad Qazi
 
Unix Security
Unix SecurityUnix Security
Unix Security
replay21
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
Dr. C.V. Suresh Babu
 
18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma
perweeng31
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting Started
Angus Li
 
Programming Embedded linux
Programming Embedded linuxProgramming Embedded linux
Programming Embedded linux
Liran Ben Haim
 
Linux ppt
Linux pptLinux ppt
Linux ppt
Rohit Kumar
 
Get Started with Linux Management Command line Basic Knowledge
Get Started with Linux Management Command line Basic KnowledgeGet Started with Linux Management Command line Basic Knowledge
Get Started with Linux Management Command line Basic Knowledge
David Clark
 
Rhel1
Rhel1Rhel1
Basic orientation to Linux
Basic orientation to LinuxBasic orientation to Linux
Basic orientation to Linux
Vidyaratha Kissoon
 
Divya
DivyaDivya
Divya
diva23
 
Divya
DivyaDivya
Divya
diva23
 
Linux Security
Linux SecurityLinux Security
Linux Security
Mahdi Cherif
 
Linux training
Linux trainingLinux training
Linux training
Parker Fong
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
Vinoth Sn
 

Similar to Solaris basics (20)

lec1.docx
lec1.docxlec1.docx
lec1.docx
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Unix Security
Unix SecurityUnix Security
Unix Security
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting Started
 
Programming Embedded linux
Programming Embedded linuxProgramming Embedded linux
Programming Embedded linux
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
Get Started with Linux Management Command line Basic Knowledge
Get Started with Linux Management Command line Basic KnowledgeGet Started with Linux Management Command line Basic Knowledge
Get Started with Linux Management Command line Basic Knowledge
 
Rhel1
Rhel1Rhel1
Rhel1
 
Basic orientation to Linux
Basic orientation to LinuxBasic orientation to Linux
Basic orientation to Linux
 
Divya
DivyaDivya
Divya
 
Divya
DivyaDivya
Divya
 
Linux Security
Linux SecurityLinux Security
Linux Security
 
Linux training
Linux trainingLinux training
Linux training
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 

More from Ashwin Pawar

16TB Max file size.pdf
16TB Max file size.pdf16TB Max file size.pdf
16TB Max file size.pdf
Ashwin Pawar
 
Our 5 senses can only perceive representation of reality but not the actual r...
Our 5 senses can only perceive representation of reality but not the actual r...Our 5 senses can only perceive representation of reality but not the actual r...
Our 5 senses can only perceive representation of reality but not the actual r...
Ashwin Pawar
 
E=C+O
E=C+OE=C+O
SnapDiff
SnapDiffSnapDiff
SnapDiff
Ashwin Pawar
 
Oracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restartOracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restart
Ashwin Pawar
 
Is it possible to upgrade or revert ontap versions on a Simulator
Is it possible to upgrade or revert ontap versions on a SimulatorIs it possible to upgrade or revert ontap versions on a Simulator
Is it possible to upgrade or revert ontap versions on a Simulator
Ashwin Pawar
 
Cannot split clone snapcenter 4.3
Cannot split clone snapcenter 4.3Cannot split clone snapcenter 4.3
Cannot split clone snapcenter 4.3
Ashwin Pawar
 
Network port administrative speed does not display correctly on NetApp storage
Network port administrative speed does not display correctly on NetApp storageNetwork port administrative speed does not display correctly on NetApp storage
Network port administrative speed does not display correctly on NetApp storage
Ashwin Pawar
 
How to connect to NetApp FILER micro-USB console port
How to connect to NetApp FILER micro-USB console portHow to connect to NetApp FILER micro-USB console port
How to connect to NetApp FILER micro-USB console port
Ashwin Pawar
 
NDMP backup models
NDMP backup modelsNDMP backup models
NDMP backup models
Ashwin Pawar
 
How to use Active IQ tool to access filer information
How to use Active IQ tool to access filer informationHow to use Active IQ tool to access filer information
How to use Active IQ tool to access filer information
Ashwin Pawar
 
San vs Nas fun series
San vs Nas fun seriesSan vs Nas fun series
San vs Nas fun series
Ashwin Pawar
 
Steps to identify ONTAP latency related issues
Steps to identify ONTAP latency related issuesSteps to identify ONTAP latency related issues
Steps to identify ONTAP latency related issues
Ashwin Pawar
 
SnapDiff
SnapDiffSnapDiff
SnapDiff
Ashwin Pawar
 
SnapDiff process flow chart
SnapDiff process flow chartSnapDiff process flow chart
SnapDiff process flow chart
Ashwin Pawar
 
SnapDiff performance issue
SnapDiff performance issueSnapDiff performance issue
SnapDiff performance issue
Ashwin Pawar
 
Volume level restore fails with error transient snapshot copy is not supported
Volume level restore fails with error transient snapshot copy is not supportedVolume level restore fails with error transient snapshot copy is not supported
Volume level restore fails with error transient snapshot copy is not supported
Ashwin Pawar
 
Disk reports predicted failure event
Disk reports predicted failure eventDisk reports predicted failure event
Disk reports predicted failure event
Ashwin Pawar
 
OCUM shows ONTAP cluster health degraded
OCUM shows ONTAP cluster health degradedOCUM shows ONTAP cluster health degraded
OCUM shows ONTAP cluster health degraded
Ashwin Pawar
 
NDMPCOPY lun from 7-mode NetApp to cDOT
NDMPCOPY lun from 7-mode NetApp to cDOTNDMPCOPY lun from 7-mode NetApp to cDOT
NDMPCOPY lun from 7-mode NetApp to cDOT
Ashwin Pawar
 

More from Ashwin Pawar (20)

16TB Max file size.pdf
16TB Max file size.pdf16TB Max file size.pdf
16TB Max file size.pdf
 
Our 5 senses can only perceive representation of reality but not the actual r...
Our 5 senses can only perceive representation of reality but not the actual r...Our 5 senses can only perceive representation of reality but not the actual r...
Our 5 senses can only perceive representation of reality but not the actual r...
 
E=C+O
E=C+OE=C+O
E=C+O
 
SnapDiff
SnapDiffSnapDiff
SnapDiff
 
Oracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restartOracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restart
 
Is it possible to upgrade or revert ontap versions on a Simulator
Is it possible to upgrade or revert ontap versions on a SimulatorIs it possible to upgrade or revert ontap versions on a Simulator
Is it possible to upgrade or revert ontap versions on a Simulator
 
Cannot split clone snapcenter 4.3
Cannot split clone snapcenter 4.3Cannot split clone snapcenter 4.3
Cannot split clone snapcenter 4.3
 
Network port administrative speed does not display correctly on NetApp storage
Network port administrative speed does not display correctly on NetApp storageNetwork port administrative speed does not display correctly on NetApp storage
Network port administrative speed does not display correctly on NetApp storage
 
How to connect to NetApp FILER micro-USB console port
How to connect to NetApp FILER micro-USB console portHow to connect to NetApp FILER micro-USB console port
How to connect to NetApp FILER micro-USB console port
 
NDMP backup models
NDMP backup modelsNDMP backup models
NDMP backup models
 
How to use Active IQ tool to access filer information
How to use Active IQ tool to access filer informationHow to use Active IQ tool to access filer information
How to use Active IQ tool to access filer information
 
San vs Nas fun series
San vs Nas fun seriesSan vs Nas fun series
San vs Nas fun series
 
Steps to identify ONTAP latency related issues
Steps to identify ONTAP latency related issuesSteps to identify ONTAP latency related issues
Steps to identify ONTAP latency related issues
 
SnapDiff
SnapDiffSnapDiff
SnapDiff
 
SnapDiff process flow chart
SnapDiff process flow chartSnapDiff process flow chart
SnapDiff process flow chart
 
SnapDiff performance issue
SnapDiff performance issueSnapDiff performance issue
SnapDiff performance issue
 
Volume level restore fails with error transient snapshot copy is not supported
Volume level restore fails with error transient snapshot copy is not supportedVolume level restore fails with error transient snapshot copy is not supported
Volume level restore fails with error transient snapshot copy is not supported
 
Disk reports predicted failure event
Disk reports predicted failure eventDisk reports predicted failure event
Disk reports predicted failure event
 
OCUM shows ONTAP cluster health degraded
OCUM shows ONTAP cluster health degradedOCUM shows ONTAP cluster health degraded
OCUM shows ONTAP cluster health degraded
 
NDMPCOPY lun from 7-mode NetApp to cDOT
NDMPCOPY lun from 7-mode NetApp to cDOTNDMPCOPY lun from 7-mode NetApp to cDOT
NDMPCOPY lun from 7-mode NetApp to cDOT
 

Recently uploaded

Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
ScyllaDB
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
christinelarrosa
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
Mydbops
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
christinelarrosa
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
DanBrown980551
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
UiPathCommunity
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 

Recently uploaded (20)

Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 

Solaris basics

  • 1. Prepared by – ashwinwriter@gmail.com
  • 2. What is Solaris? "Solaris" is Sun Microsystems' version of Unix Operating System, based on AT&T's System V Unix, with a lot more features and improvements. Over the years, it has been one of the most popular UNIX environments being used at the enterprise level. Learning Solaris, as of learning any other flavour of UNIX, seems a daunting task for a beginner, because of its unfriendly and cryptic commands and not knowing where to look in case some help is needed. The best way to start learning Solaris (or any UNIX or Linux for that matter) is to understand the principles or philosophy behind its design. Once that is understood, you can see its elegance, power and versatility. Then understand the basic concepts, commands and tools that give you the confidence in using Solaris. With this foundation, you can move on to learn intermediate and advanced level commands and concepts. Simple commands: 1. Check the process: # ps -ef | grep 'processname' ex-http, httpd etc. 2. check the disk space: # df -h 3. check the OS version: # uname -r , uname -a 4. Detec hardware problems: # fmadm faulty 5. Add user: # useradd name 6. Set password: # passwd name
  • 3. 7. Using swat http://localhost:901 8. make directory: # mkdir /share (share is the name of the directory) 9.Change the owner of file to user # chown user file 10. Change file's owner to user and group to group #chown user.group file Note: chown can only be used by root. 11. chomod commands: chmod g+r file Allow group to read chmod u+w file Allow user to write chmod a+x file Allow everyone (user, group, and other) to execute chmod o-r file Disallow others to read chmod ug+r file Disallow others to read chmod g+w,o-r file Allow group write, disallow other read chmod u=rw file Set user permissions to read and write. Add up the values for the rights required. r 4 w 2 x 1
  • 4. For example: converting rwxr-x--- to octal: 7 = 4+2+1 = r + w + x 5 = 4+1 = r + x (not write) 0 = no rights So rwxr-x--- is 750 in octal 12. What is the sticky bit's purpose? The sticky bit has a different meaning, depending on the type of file it is set on: # sticky bit on regular files: If an executable file is prepared for sharing, mode bit (-t) prevents the system from abandoning the swap-space image of the program-text portion of the file when its last user terminates. Then, when the next user of the file executes it, the text need not be read from the file system but can simply be swapped in, thus saving time. # Sticky bit for network files: Local paging. When applications are located remotely, set the "sticky bit “on the applications binaries, using the chmod +t command. This tells the system to page the text to the local disk. Otherwise, it is "retrieved" across the network. #The most common use of the sticky bit today: The most common use of the sticky bit today is on directories, where, when set, items inside the directory can be renamed or deleted only by the item's owner, the directory's owner, or the superuser. (Without the sticky bit set, a user with write and execute permissions for the directory can rename or delete any file inside, regardless of the file's owner.) Frequently this is set on the /tmp directory to prevent ordinary users from deleting or moving other users' files. #chmod +t directory Set the sticky bit on a directory #chmod -t directory Remove the sticky bit from a directory 13.Delete a file. # rm /directory/file-to-be-deleted 14. To change the modification time of a file (the time displayed in a long listing of the file) of a file called testfile to November 18, 2000, 2:30 PM, use the following command: # touch -t 200011181430
  • 5. 15.find out ethernet interface name. # inconfig -a 16. In most UNIX systems, startup scripts in /etc/rc3.d, etc, are used to start and stop services. Solaris 10 uses a different approach. There are two advantages to the Solaris 10 method: The system can come up faster, because startup of various systems can be done in parallel. The system knows more about what is going on. It can monitor processes and restart them. Services are managed by svcadm. The most common commands are : With Solaris 10, general purpose SMF CLI tools (such as svcadm and svcs): # svcadm enable SERVICE # svcadm disable SERVICE # svcadm restart SERVICE # svcadm refresh SERVICE To look at services, two common commands are svcs {lists summary of all} svcs -l SERVICE {details on one service} 17.Enable Firewall (Ipfilter) #svcadm enable network/ipfilter 18. SHELL COMMANDS: Shell Commands Most commands default to using the current directory. pwd show the current directory, eg "pwd" may print "/home/kim" cd change current directory, with no arguments will change to your home directory ls shows files in current directory ls foo shows files in directory "foo" or the file "foo" ls *.html shows files in the current directory ending in .html ls -l shows details of files
  • 6. ls -a show all files, including files beginning with "." tree -d show directory structure less display a file on screen man where to find help on any command mount show all file systems currently mounted, or add a file system to the tree, eg "mount -t vfat /dev/fd0 /floppy umount un mount a file system, eg "umount /dev/fd0" or "umount /floppy" id show which groups you belong to chmod change permissions on files 19.umount un mount a file system, #umount /dev/fd0 or umount /floppy 20. Show Free space: # df -h show the free space on all file systems # du -h show how much disk space each directory uses 21. Devices: /dev/hda = First IDE disk (master device on first IDE channel) typically this is your hard disk /dev/hdb = the slave device on the first IDE controller /dev/hdc = the master device on the second IDE controller (typically your CDROM) 22. Change the owner of file to user # chown user file 23. Groups in UNIX: Name: eg users Number (gid): eg 100, used internally by the kernel Defined in /etc/group audio:x:29:kim,jason
  • 7. The columns in /etc/group are: a.Group name, eg audio b.Encrypted group password, or 'x' if the password hash is stored in /etc/gshadow c.Group number (gid), eg 29 d.List of user name for people who are members of this group 24. Change file's group to group. # chgrp group file 25. Add existing user pranab to group called km. # usermod -G km pranab 26.Delete the group: # groupdel groupname 27. Rename group: #groupmod -n newgroup oldgroup These were some of very basic commands to get started, but it takes a lot of dedication and practice to master the art of managing UNIX like operating systems.