interview qutions
interview qutions
ans>Address ranges to be use by private networks are: Class A: 10.0. 0.0 to 10.255.
255.255.
2>i have 2 servers a&b i am unable to loging to server "b" how you will fix it?
ans>we need to check either it will be changed in user login shell "nologin" and we
need to check.
we need to check password expiry date ,inactive days,account expire and all we need
to check.
we need to check user login time #cat /var/log/lastlog .we need to check like
either password will expire if it will be expire means we need to delete and assign
the password.
we need to check like ssh configuration #cat/etc/ssh/sshd_conf we need to check
permitedroot login "yes or no"if "no"means we need to change to "yes"
we need to check like either it will be restricted on #/etc/host.deny file.
we need to check restricted in #cat /etc/login.defs
3>what is the purpose of appache?.
ans>we can create a webpages .it will act like a web servers.
4>what is the diffrence b/w appache and tomcat ?
5>what is the port number for ssh &scp?
ans>ssh=22 scp=22 by default but it will work 21 also
6>what is the port number for telnet &ftp?
ans>telnet=23 ftp=20&21
7>do you have Knwoladge scripting?
8>have you configure nfs?
9>what is the diffrence b/w rpm and yum?
ans>rpm yum
->rpm packages dependecey is bit tough -->yum resolve dependence easy
->batch instalation of applications is -->yum we can install number of
application in
possible with single command one single command
->rpm can not handle update software ->does yum install updates of the existing
instalation autometically package by using#yum install upgrade
10>do you know the crontab?what are the fileds in cron tab?
ans>--> By using cron we will schedule jobs multiple times.
---tcs---
1>tell me about your self what are the activitey ur doing in last company?
2>in linux mechine i have 1 raw harddisk ?i have atached that hardisk to server i
need to add that disk to lvm ?
3>in lv disk is 100% full.i will give one disk how you will add and how to extend
it?
4>who will allocate that disk?
ans>it will be like diffrent storage team will be theire ,we need to report a
ticket after that storage team will provide the disk and we need
to scan that luns and all.
5>how to scan the luns?
ans> echo "- - -" > /sys/class/scsi_host/${host}/scan done.
6>what are the major issues your facing?
ans>memory issue,cpu load.space issue,user unable to connect to server,user related
issues we are facing
7>how to monitor cpu in next 24 hours ?
ans>by using #sar command (or)we have a tool science logic tool we will check the
helth and all we need to take a reports.
8>how to configure virtual ip addres?
ans>we need to go through that #cd /etc/sysconfig/netwoks_scripts" we need to open
that nic card and we need to configure ip addres
nic card and all #cd /etc/sysconfig/netwoks_scripts" there we need to mention like
"ipaddr1 =ipaddres, ipaddr2=ipadrees /we need to
change that parameters and we need to up the nic card and check #ifconfig command
it will show the multiplue ip adcdres in ur vm.
9> i need to configure two ip addres how to configure it?
ans>yes , we need to open that nic card and all #cd /etc/sysconfig/netwoks_scripts"
there we need to mention like "ipaddr1 =ipaddres, ipaddr2=ipadrees /we need to
change that parameters and we need to up the nic card and check #ifconfig command
it will show the multiplue ip adcdres in ur vm
10>if you do nslookup <hostname> what are procces going in backend?
ans>it will resolve to hostname to ip adrees it will show ip and dns related things
it will be running in backend.
11>have you done raid configuration?
ans>yes .i have done softwere raid .i havent done in hardware raid.
12>what is the diffrence b/w raid0 and raid1?
13>what is raid10?
14>can you tell me any software by using raid?
15>what is stikey bit?
ans>others can able to modify and read the date but they are not able to delate the
data and files.
16>how do you see the stikey bitey assigned are not?
ans>we need to find by using inode numbers
17>have you copy the files from one server to other? what are the commands you
used?
ans>yes by using scp command we need to copy the files from 1 server to other
server.
18>have you worked on rsync?
ANS>rsync it will be used for data backep and restore purpouse we acn use it.
19>what is the diffrence between scp and rsync?
20>you have worked on vm ware?
21>how can you find swap memory on your system?
ans>free or swap -s
22>how to increes the swap memory?
ans>1st off all we need to create a disks after that we need to create pv and vg
and lv after that we need to file formate with
swap then we need to do #swapon /dev/mallivg/lv1.then we need to check swap by
using #free-m ,then we need to do swapof by
using #swapoff /dev/mallivg/lv1 then we need to do resize that swap by using
@lvresize -L +<size> <logical vg name >
23>how to create user?
ans>#useradd <username>
24>still i am unable to loging to vm what you will do?
25>have you done any backup?
26>how to install packages ?
ans>yum install <package name>
27>what is yum?
28>y con't you use rpm insted off yum?
29>after update the patch server is not come up it will be like kernal panic use?
how you will trouble shoot ?
30>what is the diffrence b/w chmode and chown?
31>other than rpm and yum any method to install packages?
ans>by using #apt install <package name>
32>what is diffrence b/w nfs and iscci?
33>what is sudo?
ans>we can give root user previlages to normal users by using #/etc/sudoers files
we need to change the parameter as per
ur requirment.
34>how can you check active service are running your mechanine?
ans> systemctl --status-all
35>what is the port number for appache web services?
Ans>http:80,https,443
36>do you know how to congigured https?
37>what is the port number for scp&ssh?
ans>ssh:22,scp:22
38>what is the port number for dns?
ans>port number:53
39>"g" is a existing group i need to add user1&user2 in that group how can you add?
whlile creating the user?
#by using #gpasswd -M user1,user2 <group name>
40>do you know the load balancer?
41>what are the things you to in vmware?
-------------------------------
jio
-------------------------------
1>have you installed any os installition?
2>how to install that packages?
3>what kind of issue did you worked on ur dilay?
4>if you get any disk space issue how you will troubleshoot?
5>what is the password less authentication(trusted relation b/w 2 servers)?
6>can you list out the os side layers?
7>diffrence b/w linux and unix?
8>how to check connectivety betwnn two servers how you will check?
9>diffault port ssh?
10>what is the port number for ftp &http ,https?
11>have you konw about http methods?
ans>head method ,post method,put method,delete method,connect ,options,trace
methods
12>have you used data base servers?
13>can you diff b/w rpm and yum?
14>what is the use off chmod command?
15>diffrence b/w rhel6 &rhel7?
16>telent command not there on that server how you will install on that server?
17>how to check helth off the server?
------------hsbc-------
1>lets say you patched the sever that server is wend down how you will trouble
shoot?
2>have you ever rebulid a initial ram disk?
3>have you rebuild a grub?
4>can you reduce lvm how you will do?
5> while reducing the lvm the system is correpted how you will trouble shoot?
6>tell me one issue do you worked on?
7>how you will check applications consuming memory?
8>what is the difrence b/w memory abd du -sh?
9>how will you check consuming more cpu?
ans>top Command to View Linux CPU Load.
mpstat Command to Display CPU Activity.
sar Command to Show CPU Utilization.
iostat Command for Average Usage.
10>i have a playbook in ansible whare you place in hostname in ansible?
11>what is the diffrence b/w tcp and udp?
12>what is selinux?
==========
1>how do u check cpu load?
2>can you expian patching process in ur environmenet?
3>how to patch manualy?
4>where we will you get the (packages)patches?
5>what is the base url?
6>how you will connect satilite server?
7>what is gpg check?
ans>its a package validation
8>how will a subscription a sever?
9>you know about mecafay anti viries?
10>after patching will you reboot the server?
11>how to check package is intalled or not?
12>post patching will you reboot the server or not?y you need to reboot?
13>you patch the server after console not connecting server not connecting how u
will be troubleshoot?kernal panic how can you restoreit back?
14>how you will go rescue mode?
15>how you will rollback the kernal?
16>explain about lvm step by step?
17>how to scan the luns?
18>how you will check the disk is visible in linux mechine after scan the luns?
19>how to permanent the file system how to do that?
20>what are the entries you provide in /etc/fstab?
21>do u know about server hardning?
22>i want to create a user uid ,gid,comment,home directroy,shell in single
command ?
23>when you create a user what are the defaults things it will created?
24>what are the fields in /etc/passwd?
-----------Mintree----------------
1>can you tell me about roles and responsiblities in ur organization?
2>what are the runlevels there in linux?
3>what is the diffrence between init6 &reboot?
4>what is the difrence b/w redhat ¢os?
5>what is the ports for telenet &ssh?
6>how you will find disk file system usage ?
7>how can you list out the blocks?
8>what you will outcome you exicute blkid?
9>how you will provide the sudo previlages to user?
10>what is the port number for dns?
11>how you will you bring up a dns in your system?whare you configurd?
12>what is the standrd configuration of dns .where the zones and all configured?
13>what is the diffrence between suse linux and redhat?
14>how you will create a lvm?
15>what is the diffrence b/w chmod and chwon?
16>how you can find iptables?
ans>#iptables -L --line -number
17>supose you install http package how you will bring up?when you install the
package the server is asking somthing?
18>how you can find a permission or previlages and file& directoreis in your linux
system?
19>how can a tar a file compresiion and all?
20>how can you change a password in user?
21>can you tell me numaric values in rwx?
22>what is the purpose of using cron tab?can tell me syntax?
23>supose you dont know crontab edite?what is the base ___location will be there in
crontab?
ans>#/var/spool/cron/crontab.verifay the crontab file by using the #crontab -l .
24>how to install rpm?
ans>rpm -ivh <packahe name>
25>how you will delate rpm?
ans>rpm -e <package name>
26>how you will update rpm?
ans>rpm -Uvh <package name >
27>what are the rpms required for the dns?to working on dns services?
28>how will check ports is listen in ur meshine?
ans>netstat -tulpn | grep <port number>
29>what is the purpose of genral ctl?
30>how can you find the statuts of http?
ans>systemctl ststus http
31>what about the nic bonding?
ans>nic banding in the sence multiple interfaces connected to single interface if
any interface is went down means it will connect to other interface
we will do by uisng #cd /etc/sysconfig/network-scripts
32>what ios the service for the dns?
ans>named
33>when you delete a file and directory is there any restoring system?
34>how you can recover that password for root user?if you forget?
35>what is the diffrence b/w grub and gpt?
-----infosys---------------
1>can you tell me ur day to day activites?
2>what technalogies r u done?
3>which versions do u worked on rhel?
4>what is the diffrence b/w linux5&Linux6?
5>how to check os versions in linux 6?
ans>cat /proc/redhat-release.
6>how to find archtecture?
#arch
7>what is nic bonding?how you will configure?
8>how to change hostname?
9>how do you check ethernet card is communicationg or not?
10>how you will check either it will be vm or physcial?
11>how you will check the server is nal domine or not?
12>how to check vms on linux meshine ?what is the command?
13>what is the grub what are all the contains in /grub configuration file?
14>from user clear the history in linux where you will restore?
ans>You can reload the history using history -r . If you log out and log in again
your history will also be restored.
15>san team assign a disk how you will create a disk how to sacn how you will
create file system?i need commands?
16>what is hexcode ?
17>what is the default filesystem type in rhel6&7?
ans>xfs file system
18>i want to change hostname file?
ans> /etc/sysconfig/networks
------tcs----------------------
1>how you extend the disk?
ans>1st off all we need to check space is availble are not if space is avialbele
means we will extend by using
#Lvextend -L <+size> <logical vloume group> -r
2>if vg space is not avialble?
ans>we need to add the disk after taht we need to add to that partical vg after we
need to extend it.
3>if /app is there its 100% full.when one user come to you file system is full
please add 50gb how you will do?
4>how you add a user in secondary group?
ans>#usermod -G <group name> <username>
5>how you delete a user in secondary group?
ans>#gpasswd -d <username> <grroupname>
6>supoose i have disk /db its 100gb .when i check 90gb is free 10gb is used .when i
create a file and folders i am not able to create what are the
trouble shooting you have do?
ans>if i node number is full not able to create a file and folders .
7>how do you find inode ? how you will check ?
ans>#ls -i
8>how you will find innode number for /home file system?
ans>#df -i its show the files with inode numbers.
9>how you clear the i node numbers?
10>have you worked on nfs?
11>taken a exmaple when i type df -ht i am not getting any output ,when i check
/etc/fstab everthing is there .its like hung state?
12>when you type useradd where the linux system the backend some files where will
be there?
ans>/etc/skel
13> one user is there is not able to login?
ans>either it will be restricted in /etc/host.deny configuration.
either it will be restricted in ssh configuration.
check logs in #/var/log/wtmp
14>how can you check passwd is expire are not?
ans>#chage -l <username> is will show .
15>i have one user i want to give passwords "never" password?