إعـــــــلان

تقليص
لا يوجد إعلان حتى الآن.

أسئلة مقابلة لـ Solairs

تقليص
X
 
  • تصفية - فلترة
  • الوقت
  • عرض
إلغاء تحديد الكل
مشاركات جديدة

  • [مقال] أسئلة مقابلة لـ Solairs


    السلام عليكم ورحمة الله

    وانا بدور على احد الملفات في جهازي وجدت هذه الاسئلة وكنت محتفظ بها عندما قدمت للشركة التي اعمل فيها وقد افادتني ولازالت مفيدة لي حتى الان احببت ان اشاركم بها لكني لا اذكر من اي موقع بالضبط قمت بحفظها

    ودمتم بود



    1Which command displays the system configuration information?


    prtconf


    (2)

    Which command is used to configure newly attached hardware ?


    devfsadm –c where


    (3)

    What are the different types of “file systems” in Solaris?


    There are 3 Types of file system :


    3.A.1) Disk based : ufs (standard unix), hsfs (cd-rom), pcfs (Floppy)
    Or udf (DVD and CD Rom)

    3.A.2) Distributed : NFS (enables sharing of files between many types of n/w)

    3.A.3) Pseudo : tmpfs (temporary), swapfs , fdfs, procfs

    4) What is a “boot block”?

    The bootstrap program (bootblk) is found in the next 15 disk sectors. Only the “root” file system has an active boot block, although the space is allocated for boot block at the beginning of each file system.

    5) What is “superblock”?

    The file system is determined by its superblock. It is contained in the 16 disk sectors following the boot block. It contains :
    · No. of data blocks
    · No.of cylinder groups
    · Size of data block fragment
    · Description of hardware
    · Name of mount point
    · File system state flag ( clean , stable , active , logging or unknown)

    6) How will you repair the main superblock if it gets corrupted?

    Every file system has backup superblock at block no.32, which can be given to fsck to repair the main superblock.

    # fsck –o b=32 /dev/rdsk/c0t0d0s0

    7) How to create new file systems ?

    newfs /dev/rdsk/c0t0d0s0


    8) How will you restore /etc/vfstab file if it gets corrupted?

    Step 1 : Insert Solaris CD 1 of 2

    Step 2 : Go to single user mode : ok boot cdrom –s
    Step 3 : Run “fsck” on /(root) partition : # fsck /dev/rdsk/c0t0d0s0
    Step 4 : Mount /(root) file system on /a directory to gain access to file system
    # mount /dev/dsk/c0t0d0s0 /a
    Step 5 : Set & export TERM variable
    # TERM=sun
    # export TERM
    Step 6 : Edit /etc/vfstab file and remove the incorrect entry : # vi /a/etc/vfstab
    Step 7 : Unmount the file system : # cd / ; # umount /a and reboot the system.


    9) How will you share user’s home directory?



    Step 1 : Login as root and verify mountd daemon is running

    # ps –ef | grep mountd
    Step 2 : If the daemon is not running start it :
    # /etc/init.d/nfs.server start
    Step 3 : List all shared filesystems
    # share
    Step 4 : Edit the /etc/dfs/dfstab file and add :
    # share –F nfs /export/home
    Step 5 : Share the file systems in the /etc/dfs/dfstab file :
    # shareall –F nfs
    Step 6 : Verify that the home directory is shared.
    # share

    10) What does /etc/inittab file contain ?

    The /etc/inittab contains the systems default run level, processes to start/monitor

    or restart. It also contains the actions to be taken when run level changes.
    /etc/inittab file is in foll format :- id:rstate:action:process






    11) How will you set a default router ?
    # /etc/defaultrouter

    12) How to remove all current routes and assign 192.168.1.100 as default router?

    # route flush
    # route add default 192.168.1.100

    13) How to change the network settings ?

    # sys-unconfig


    14) What all does the NVRAM store?


    Ethernet Address / Host ID / Time of Day (TOD) clock and EEPROM Parameters


    15) Where are all the port numbers stored?

    Port numbers are stored in /etc/services


    16) Where are eeprom file stored ?

    /usr/sbin/eeprom


    17) Some important NIS commands :


    1) # ypcat hosts à Prints info from hosts database
    2) # ypmatch host1 hosts à Match individual host entries
    3) # ypmatch user1 passwd
    4) # ypwhich à Returns NIS master server.

    18) Controlling the tape drive ?

    mt –f /dev/rmt/0n à ‘n’ indicates no rewind.


    19) What are the network utilities ?


    1) snoop à To capture network packets & display contents

    2) netstat –i à Displays state of Ethernet address
    3) ndd command à Set & examine kernel parameters namely TCP/IP drivers.

    20) Network Configuration :

    1) /etc/resolv.conf : Contains Internet domain name, name server and search order.

    2) /etc/nsswitch.conf : Specifies information source from files, NIS, NIS+ or DNS

    3) /etc/hostname.[int](hme0|eri0|le0] : IP v4 host

    4) /etc/nodename : IP v6 host

    5) /etc/inet/hosts : Host namefile (/etc/host links to this file)

    6) /etc/inet/netmasks : TCP/IP subnet router

    7) /etc/inet/protocols : Network protocols

    8) /etc/inet/services : Network service name & port numbers

    9) /etc/notrouter : Create this file to prevent in.routed or in.rdiscd from starting at boot time

    10) /etc/inet/inetd.conf : Internet super daemon config file

    11) To change hostname / ip address :

    /etc/hostname.{int}(hme0|le0)
    /etc/nodename
    /etc/inet/hosts
    /etc/net/*/hosts
    /etc/defaultrouter
    /etc/resolv.conf


    21) How to configure interfaces at boot time>


    /etc/rcS.d/s30network.sh file à This script is run each time system is booted. It uses ifconfig utility to configure each interface with IP add & other network info.It searches for files called : hostname.xxn in /etc where xx à int type & nà instance of interface.

    اتشرف بزيارتكم لمدونتي لقطات تقنية


يعمل...
X
😀
🥰
🤢
😎
😡
👍
👎