21⟩ What is the command for seeing a long listing of all the processes running on your unix box?
ps ,
ps -aux ,
ps -ef ,
top
“Sun Solaris (OS) Interview Questions and Answers will guide you that the Solaris is a UNIX-based operating system introduced by the Sun Microsystems in 1992. Sun Solaris is known for its scalability, especially on SPARC systems, and for originating many innovative features that you will learn here by these Sun Solarid OS interview questions and answers guide.”
ps ,
ps -aux ,
ps -ef ,
top
If a directory is writable and has sticky bit is set, files within directory removed or renamed only if one or more following is true:
- The user owns the file
- The user owns the directory
- The file writable by the User
- The user is "root"
chmod 1777 project_dir
The sticky bit is displayed as the letter t in the execute field for 'others'.
________________________________________
Sticky Bit is a permission bit that protects the files with in a Directory. If the directory has sticky bit set, a file can be deleted by the owner of the file, the owner of the directory or root.
This Prevents a user from deleting other users files from public directories .
The above would work. You could also run:
crontab -l Username
Either you can use
1.devfsadm
single command solaris 8 on wards in the backward we have to use
1.drvconfig
2.diskor tape..(Device type)
3. devlinks
then the device will configure properly.
get into single user mode from ok prompt by using the command below.
boot -s
use the newfs command to check the number of back ups for the superblock used.
use newfs -N to display the value for /dev/dsk/c1t1d0s0 as below.
newfs -N /dev/dsk/c1t1d0s0
use fsck command to fix the superblocks as below
fsck -F ufs -o b=75680 /dev/rdsk/c1t1d0s0
Now the blocks are replaced get to multiuser mode using init 3
server should boot fine.
Syntax:
#ifconfig qe0:1 plumb
# ifconfig qe0:1 10.10.1.150 up
where "qe0" is an interface (e.g., le0) and N is a number between 1 and
<MAX>. Removing the pseudo interface and associated address is done
with "ifconfig qe0:1 10.10.1.150 down".
As with physical interfaces, all you need to do is make the
appropriate /etc/hostname.qe0:X file.
Boot phases of Solaris Operating Environment are:
1.boot PROM
2.boot programs like bootblk,ufsboot
3.kernel initialization like loading modules
4. init phase
u can findout currently system run level
who -r
Run the command showrev. There's a man page on showrev and there are switches to help you do whatever you're trying to do
________________________________________
Uname -r is the command to know the version of the OS and uname -s for the type of OS.
XIR signal used by reset command in solaris.
reset (1M) allows you to reset one or more domains in one of two ways: reset the hardware to a clean state or send an externally initiated reset (XIR) signal. The default is to reset the hardware to a clean state. You will receive an error if the virtual keyswitch is in the secure position. An optional confirmation prompt is given by default. Refer to Chapter 6 in the System Management Services (SMS) 1.2 Administrator Guide for the Sun Fire 15K/12K Systems for more information.
An XIR signal (reset -x ) also traps to low-level domain software (OpenBoot PROM or kadb ), which retains control of the software. The domain must be rebooted manually.
using command call ndd
reboot -r (reconfigure the /dev & /devices)
A 'daemon' is a software process that runs in the background (continuously) and provides the service to client upon request. For example named is a daemon. When requested it will provide DNS service. Other examples are:
xinetd (it is a super-daemon, it is responsible for invoking other Internet servers when they are needed)
inetd (same as xinetd, but with limited configuration options)
sendmail/postfix (to send/route email)
Apache/httpd (web server)
'server process' run runs one time, when called by a daemon. Once done it will stop. For example telnetd (in.telnetd) or ftpd called from xinetd/inetd daemon . By calling server process from daemon you can save the load and memory. Use a server process for small services such as ftpd, telnetd
stop+A
I think "if you first installed Solaris then try to install XP, XP will overwrite the Solaris.Becoz XP is single boot, It is better to install XP first then install Solaris.."
Simple funda is First install Workstation then install Servers..
/ represents the top most level of the OE directory hierarchy, therefore other sub directories have to be mounted under /
In Solaris whenever you create a new slice using format command a raw physical slice or a Raw Device will be created which is addressed as /dev/rdsk/c#d#s# where # is the number for slice.
After formatting it with newfs command the slice will be addressed as /dev/dsk/c#d#s# which can now be used for mounting.
eg. newfs /dev/rdsk/c0d0s4
mkdir /oracle
mount /dev/dsk/c0d0s4 /oracle
After mounting /dev/dsk/c#d#s# is called as Block Device
/dev actually contains logical device names which are links (Shortcuts in windows terminology) to actual physical devices in /devices directory.
Sun Fire 15K can have upto max of 106 processors
1. Install the sendmail recent package..
2. in /etc/mail/sendmail.cf file configure for localhost,mail server and domain name.
3. Restart the sendmail service...
that's it .. getback to me if having any more doubt.
On a 32-bit system, the two-part kernel is located in the directory /platform/?uname -m?/kernel.
On a 64-bit system, the two-part kernel is located in the directory/platform/?uname -m?/kernel/sparcv9
________________________________________
isainfo -b
the above command displays whether the processor is 32/64 bit