Linux Administration Interview QuestionsFull description
linux mcq Fot interview
interview questionsFull description
Linux Tricks Helpful for InterviewFull description
Full description
Full description
Full description
Full description
noteFull description
LINUXDescrição completa
Professor Lèo Matos Estúdio AulasDescrição completa
Description complète
linuxDescrição completa
Descripción completa
InterviewFull description
5 questions
INTERVIEW
SAS
Apache Server Interview Questions And Answers for linux admin
What command can be used to findout server architechure (x86 or x64) apart from uname? •
arch
How do u findout the users who are NOT o!!ed in for more than "# da$s? which fie u wi chec%? •
ast & asto!& 'var'o!'wtmp 'var'o!'wtmp
When u tr$ to create a fie& u !ot a error that No space avaiabe* +ut actua$ space avaiabe on voume? How do u resove this issue? •
Tr$ this df ,i ,i ist inode information information instead of of boc% usa!e -.erhaps -.erhaps are $ou out of inodes on this fie s$stem*/& To rectif$ it& remove unwanted fies or move them somewhere ese*/
How do u extend the 01 in 0inux?
•
2irst chec% whether is there free space avaiabe in the 13 where the 01 resides* v!dispa$ or
•
v!s
•
Now& extend the 01 usin! beow command5 0 option to specif$ the sie to be increased*
•
vextend ,0 73 'dev'v!##'v#9 'dev'v!##'v#9
•
2ina$& extend the 2ie s$stem space5 resie:fs 'dev'v!##'v#9
•
What are the fieds in the 'etc'passwd fie* ;xpain them? •
What command can $ou use to review boot messa!es? •
The dmes! command can be used to dispa$ the s$stem messa!es durin! boot time*
Which account is created on 0inux instaation?
•
With the instaation of 0inux& a super user account is created caed as DrootE*
What is a she? •
F she is an interactive user interface to an operatin! s$stem services that aows an user to enter commands as character strin!s or throu!h a !raphica user interface* The she converts them to s$stem cas to the OC or for%s off a process to execute the command* C$stem ca resuts and other information from the OC are presented to the user throu!h an interactive interface* Bommon$ used shes are sh&csh&%s etc*
Which daemon trac%s events on $our s$stem? •
The s$so!d daemon trac%s the s$stem information and saves it to specified o! fies*
Gou are o!!ed on as a re!uar user* W ithout o!!in! off and o!!in! on as root& $ou are reuired to create a new user account immediate$* How woud $ou do it? •
This can be achieved b$ issuin! the su command* This wi prompt $ou for the password of the root account* .rovidin! the password& o!s $ou in as root* Now& $ou can perform an$ administrative duties* *
Gou are reuired to restore the fie memo*ben* t was bac%ed up in the tar fie I$+ac%up*tar* Which command woud $ou use to do it? •
The command that we woud use is5 tar ,xf I$+ac%up*tar memo*ben* t uses the x switch to extract a fie*
What is an NO@;? •
t is a structure which has the description of a the fies and pointers to the data boc%s of fie stored in it*The information contained is fie,sie& access and modification time& permission and so on*
What is 00O? •
00O is 0inux 0oader is a boot oader for 0inux* t is used to oad 0inux into the memor$ and start the Operatin! s$stem*******
What is the difference between home director$ and wor%in! director$? •
Home director$ is the defaut wor%in! director$ when a user o!s in* On the other hand& wor%in! director$ is the userEs current director$*******
What is N2C? What is its purpose? •
N2C is Networ% 2ie s$stem* t is a fie s$stem used for sharin! of fies over a networ%*******
How do send emai with inux? •
;mai can be sent in 0inux usin! the mai command* ******
What is ;xpain J.I (Jed Hat .ac%a!e Iana!er) features*
•
J.I (Jed Hat .ac%a!e Iana!er ) is a pac%a!e mana!ement s$stem (coection of toos to mana!e software pac%a!es)* Gou can use rpm to insta inux pac%a!es
What is 0inux Che? What is Che Ccript? •
0inux she is a user interface used for executin! the commands* Che is a pro!ram the user******
What are .ipes •
F pipe is a chain of processes so that output of one process (stdout) is fed an input (stdin) to another** ;xampe* ps Kef L !rep orace to ist orace process from process tabe*
What does nsoo%up do? •
Nsoo%up is used to find detais reated to a @omain name server* @etais i%e . addresses of a machine& IM records&* Fnd such****
What is +ash Che? •
+ash is a free she for >NM* t is the defaut she for most >NM s$stems* t has a combination of the B and orn she features* ******
How does the inux fie s$stem wor%? •
0inux fie structure is a tree i%e structure* t starts from the root director$& represented b$ '& and then expands into sub,directories*******
What is the name and path of the main s$stem o!? •
+$ defaut the main s$stem o! is 'var'o!'messa!es* This fie contains a the messa!es and the script written b$ the user* +$ d efaut a scripts are saved in this fie* This is the standard s$stem o! fie& which contains messa!es from a s$stem software& non,%erne boot issues& and messa!es that !o to dmes!* dmes! is a s$stem fie that is written upon s$stem boot*
What is the minimum number of partitions $ou need to insta 0inux? •
Iinimum : partitions are needed for instain! 0inux* The one is ' or root which contains a the fies and the other is swap* 0inux fie s$stem is function specific which means that fies and foders are or!anied accordin! to their functionait$* 2or exampe& a executabes are in one foder& a devices in another& a ibraries in another and so on* ' or DrootE is the base of this fie s$stem* F the other foders are under this one* ' can be consider as B5 *Cwap is a partition that wi be used as virtua memor$* f there is no more avaiabe JFI a 0inux computer wi use an area of the hard dis%& caed swap& to temporari$ store data* n other words it is a wa$ of expandin! $our computers JFI*
Which command is used to review boot messa!es? •
dmes! command is used to review boot messa!es* This command wi dispa$ s$stem messa!es contained in the %erne rin! buffer* We can use this command immediate$ after bootin! to see boot messa!es* F rin! buffer is a buffer of fixed sie for which an$ new data added to it
overwrites the odest data in it nvo%in! dmes! without an$ of its options causes it to write a the %erne messa!es to standard output* This usua$ produces far too man$ ines to fit into the dispa$ screen a at once& and thus on$ the fina messa!es are visibe* However& the output can be redirected to the ess command throu!h the use of a pipe& thereb$ aowin! the startup messa!es to be viewed on one screen at a time Which utiit$ is used to ma%e automate rotation of a o!? •
o!rotate command is used to ma%e automate rotation of o!*t aows automatic rotation& compression& remova& and maiin! of o! fies* This command is main$ used for rotatin! and compressin! o! fies* This Pob is done ever$ da$ when a o! fie becomes too ar!e*
What are the fieds in the'etc'passwd fie? •
t contains a the information of the users who o! into the s$stem* t contains a ist of the s$stems accounts& !ivin! for each account some usefu information i%e user @& !roup @& home director$& she& etc* t shoud have !enera read permission as man$ utiities& i%e s use it to map user @s to user names& but write access on$ for the superuser (root)* The main fieds of 'etc'passwd fie are5 9* >sername5 t is used when user o!s in* t shoud be between 9 and ": characters in en!th* :* .assword5 Fn x character indicates that encr$pted password is stored in 'etc'shadow fie* "* >ser @ (>@)5 ;ach user must be assi!ned a user @ (>@)* >@ # (ero) is reserved for root and >@s 9,QQ are reserved for other predefined accounts* 2urther >@ 9##,QQQ are reserved b$ s$stem for administrative and s$stem accounts'!roups* 4* 3roup @ (3@)5 The primar$ !roup @ (stored in 'etc'!roup fie) * >ser @ nfo5 The comment fied* t aow $ou to add extra information about the users such as users fu name& phone number etc* This fied use b$ fin!er command* 6* Home director$5 The absoute path to the director$ the user wi be in when the$ o! in* f this director$ does not exists then users director$ becomes ' <* Bommand'she5 The absoute path of a command or she ('bin'bash)* T$pica$& this is a she*
Which commands are used to set a processor,intensive Pob to use ess B.> time? •
nice command is used for chan!in! priorit$ of the Pobs* Jan!e of priorit$ !oes from ,:# (hi!hest priorit$) to 9Q (owest)*.riorit$ is !iven to a Pob so that the most important Pob is executed first b$ the %erne and then the other east important Pobs* This ta%es ess B.> times as the Pobs are schedued and are !iven priorities so the B.> executes fast* The priorit$ is !iven b$ numbers i%e ,:# describe the hi!hest priorit$ and 9Q describe the east priorit$*
* How do $ou create a new user account?
•
useradd command is used for creatin! a new user account*