ibm ques

download ibm ques

of 4

Transcript of ibm ques

  • 7/31/2019 ibm ques

    1/4

    Q.Howtocheckenvironmentvariablesenv

    Q.Howtocheckallsystem-widevariablesset-a

    Q.WhatisACLQ.Howtocheckaclofanyfilegetfaclfile_namegetfacl-a===tocheckallacls

    Q.Howtosetaclinparticulardirectorysetfacl-md:u::

    Q.Whatisstickybit

    Q.Howtocheckuserpasswordage,expiryetc..chageusername

    Q.entriesin/etc/shadowfile

    Q.Whatisthediffbetweenat&crontab

    Q.Crontabentrydetails

    minshoursday(1-31)month(1-12)week(1-7)command

    Q.INplaceof"dayofweek",0denoteswhat?SUNDAY

    Q.Disablerootlogin

    root/sbin/nologin

    switch

    Q.Howtorebuildtheinitrd

    mkinitrdcommand-whatdoesthiscommanddomkinitrd/boot/initrd........img

    Q.Commandtoconfigureraidmdadm

    Q.WhatisthedifferencebetweenRaid1andRaid5

    Q.5diskintoraid5,100GBeach.Howmuchstorageyouwillget,raid5formula400GBFormulaism-1or(totalnoofdisks-1)

    Q.Howtocheckdiskusagefoharddisksdf-hdu-hQ.Backupcommandtar

    ThirdPartyutility-Veritas

    Q.Whatissignal?Twotypes-SigtermandSigkill

  • 7/31/2019 ibm ques

    2/4

    -1(HUP)-Hangupsignal,Rereadtheconfigfile-9 -Killsignal-15 -terminationsignal

    Q.WhatisDHCP,itsdaemon,configfiledaemon-dhcpdconfigfile-/etc/dhcpd.confdatabasefile-/var/lib/dhcp/dhcpd-leases

    Q.whatissymlinks?TypesTwo-SoftlinkandHardlink

    Q.Whatisumask?umaskforuser-002umaskforroot-022

    Q.Whatisthedefualtvalueofpermissionofthefilesanddirectoriescreatedbyrootwithumask022Forfiles-644Fordirectories-755

    Q.Whatisfstab?Itsentry.filesystemtable

    Q.LOgsaresavedinwhichlocation/var/log/

    Q.HowtosetsyslogoptionssothatclientsystemrelatedmsgsstoredinsyslogserverUSe'-r'oprtionin/etc/sysconfig/syslogfileinsyslogserverInclient,add'authpriv.* @ip_add_of_syslog_server'in/etc/syslog.conf.

    Q.Whatisinit3&5.Init1usage

    singleusermode,rootpasswd

    Q.Howtochecklabelofmountedfilesysteme2labelcommand

  • 7/31/2019 ibm ques

    3/4

    Q.Howtocheckallmountedfilesystemmountmount-a

    Q.CommandtogetMachineconfiguration

    I) Name:arch-printmachinearchitectureSynopsis:archDescription:archisdeprecatedcommandsincereleaseutil-linux2.13.U

    seuname-m.

    OncurrentLinuxsystems,archprintsthingssuchas"i386","i486","i586","alpha","sparc","arm","m68k","mips","ppc".

    II) Name:uname-printsysteminformationSynopsis:uname[OPTION]...Description:Printcertainsysteminformation.WithnoOPTION,sameas-

    s.

    -a,--allprintallinformation,inthefollowingorder,exceptomit-pand-i

    ifunknown:-s,--kernel-nameprintthekernelname-n,--nodenameprintthenetworknodehostname-r,--kernel-releaseprintthekernelrelease-v,--kernel-versionprintthekernelversion-m,--machine

    printthemachinehardwarename-p,--processorprinttheprocessortypeor"unknown"-i,--hardware-platformprintthehardwareplatformor"unknown"-o,--operating-systemprinttheoperatingsystem--helpdisplaythishelpandexit--versionoutputversioninformationandexit

    III)sam,clickonPerformanceMonitorsSectionandthenclickonSystemProp

    erties.ThereyoucanopenThecategoryprocessorandyouwillhaveyoursolution.

    IV)YoucanfindsomeCPUinfosin"machinfo"command,whichwillreturnsthenumberofcores.

    V)Togetthenumberofsockets(physicalprocessors)fromthepsp_socket_idinpstat_getprocessor().

    VI)TochecktheRAMsize

  • 7/31/2019 ibm ques

    4/4

    #dmesg|grepRAM

    TherearethreeanotherwaytocheckmemoryonLinux

    1:-free-t-m2:vmstat3:top

    Q.PatchmanagementusingRHN