LINUX ESSENTIALS - PRACTICE PRACTICE EXAM (PASSED!!!) LATEST UPDATE
If cyou cwanted cto cdisable ca csecond cnetwork cinterface cin cLinux, cwhat ccommand
cwould cyou center cat cthe cshell?
ifdown ceth0
ifdown ceth1
ifconfig cdisable ceth1
ifdown c- ccorrect canswers✔✔ifdown ceth1
You chave cbeen cediting ca cconfiguration cfile cusing cvi. cYou crealize cthat cyou've cmade
cmany cmistakes cand cneed cto cquit cwithout csaving cthe cchanges cso cthat cyou ccan
cstart cover. cWhich ccommand cwill callow cyou cto cdo cthis?
:q
:q!
:exit
:s c- ccorrect canswers✔✔:q! c("colon cQ cBang!")
What cdirectory cwould cthe c~ ccharacter crepresent?
Another cuser's chome cdirectory.
The chome cdirectory cof cour ccurrently clogged cin cuser.
Take cus cto cthe chome cdirectory cof cthe croot cuser.
The c/var cdirectory. c- ccorrect canswers✔✔The chome cdirectory cof cour ccurrently
clogged cin cuser.
What cis cthe cdefault cshell cfor cmost cLinux cdistributions?
csh
bash
sh
,zsh c- ccorrect canswers✔✔bash
You cneed cto ctroubleshoot ca chardware cissue. cWhich ccommand cwould clet cyou cview
cthe ckernel cring cbuffer cto csee cwhat chardware cwas cjust cadded?
cat c/var/log/boot.log
tail clastlog
dmsg c| cless
head c/var/log/messages c- ccorrect canswers✔✔dmsg c| cless c(driver cmessages) c"dmsg
cpipe cless"
Which cof cthe cfollowing csections cgive ca cbrief creview cof cthe csyntax cused cfor ca
cparticular ccommand cor cutility cwithin ca cman cpage?
REVIEW
SYNOPSIS
SYNTAX
DESCRIPTION c- ccorrect canswers✔✔SYNOPSIS
In cwhich cdirectory ccould cyou cadd cfiles cso cthat ca cnewly ccreated cuser cwill
cautomatically chave cthem cwhen cthey cfirst clog cin?
/etc/skel
/etc/profile.d
/etc/default
/etc/.skel c- ccorrect canswers✔✔/etc/skel c(correct?)
Which cof cthe cfollowing cprovides cbinary cfiles ccontaining cprewritten ccode celements cor
cinterfaces cthat cprogrammers ccan ccall cwhen cwriting cLinux cprograms?
Libraries
Bash cshell cprofiles
Kernel cmodules
, The ckernel c- ccorrect canswers✔✔Libraries
You care crunning cthe cping ccommand cto csee cif ca cparticular chost cis cup. cHow cwould
cyou cspecify cto cthe cping ccommand cthat conly cfive cpackets cget csent cto cthe cremote
chost?
ping c--count c5 chost.example.com
ping c-c c5 chost.example.com
ping c5 chost.example.com
ping c-n c5 chost.example.com c- ccorrect canswers✔✔ping c-c c5 chost.example.com c(-c
c= ccount, cnumber cof ctimes ccan cvary)
You cneed cto cverify cthat ca cremote chost cwith ca chostname cof cdns2.linuxacademy.com
cis cup cand crunning. cWhich cof cthe cfollowing ccommands cwould cyou center cat cthe
cshell cprompt cto cdo cthis?
finger cdns2.linuxacademy.com
netstat c-a cdns2.linuxacademy.com
netstat c-s cdns2.linuxacademy.com
ping cdns2.linuxacademy.com c- ccorrect canswers✔✔ping cdns2.linuxacademy.com
While cusing cvi cto cedit ca cfile cin ccommand cmode, cyou ctry cto cuse cthe cBACKSPACE
ckey cto cdelete ca cword, cbut cnothing chappens. cWhat's cwrong?
You cneed cto cuse cCTRL-BACKSPACE
You cneed cto creboot cyour ccomputer.
You cneed cto cswitch cto cnormal cmode.
You chave cto cswitch cto cinsert cmode. c- ccorrect canswers✔✔You chave cto cswitch cto
cinsert cmode.
Which ccommand cwould cuncompress cthe ccontents cof cthe cfile c'important.bz2'?
gunzip c(for c.gz conly)
tar c(this cis cnot ca czip-type cfile)
bunnyzip2 c(does cnot cexist)
If cyou cwanted cto cdisable ca csecond cnetwork cinterface cin cLinux, cwhat ccommand
cwould cyou center cat cthe cshell?
ifdown ceth0
ifdown ceth1
ifconfig cdisable ceth1
ifdown c- ccorrect canswers✔✔ifdown ceth1
You chave cbeen cediting ca cconfiguration cfile cusing cvi. cYou crealize cthat cyou've cmade
cmany cmistakes cand cneed cto cquit cwithout csaving cthe cchanges cso cthat cyou ccan
cstart cover. cWhich ccommand cwill callow cyou cto cdo cthis?
:q
:q!
:exit
:s c- ccorrect canswers✔✔:q! c("colon cQ cBang!")
What cdirectory cwould cthe c~ ccharacter crepresent?
Another cuser's chome cdirectory.
The chome cdirectory cof cour ccurrently clogged cin cuser.
Take cus cto cthe chome cdirectory cof cthe croot cuser.
The c/var cdirectory. c- ccorrect canswers✔✔The chome cdirectory cof cour ccurrently
clogged cin cuser.
What cis cthe cdefault cshell cfor cmost cLinux cdistributions?
csh
bash
sh
,zsh c- ccorrect canswers✔✔bash
You cneed cto ctroubleshoot ca chardware cissue. cWhich ccommand cwould clet cyou cview
cthe ckernel cring cbuffer cto csee cwhat chardware cwas cjust cadded?
cat c/var/log/boot.log
tail clastlog
dmsg c| cless
head c/var/log/messages c- ccorrect canswers✔✔dmsg c| cless c(driver cmessages) c"dmsg
cpipe cless"
Which cof cthe cfollowing csections cgive ca cbrief creview cof cthe csyntax cused cfor ca
cparticular ccommand cor cutility cwithin ca cman cpage?
REVIEW
SYNOPSIS
SYNTAX
DESCRIPTION c- ccorrect canswers✔✔SYNOPSIS
In cwhich cdirectory ccould cyou cadd cfiles cso cthat ca cnewly ccreated cuser cwill
cautomatically chave cthem cwhen cthey cfirst clog cin?
/etc/skel
/etc/profile.d
/etc/default
/etc/.skel c- ccorrect canswers✔✔/etc/skel c(correct?)
Which cof cthe cfollowing cprovides cbinary cfiles ccontaining cprewritten ccode celements cor
cinterfaces cthat cprogrammers ccan ccall cwhen cwriting cLinux cprograms?
Libraries
Bash cshell cprofiles
Kernel cmodules
, The ckernel c- ccorrect canswers✔✔Libraries
You care crunning cthe cping ccommand cto csee cif ca cparticular chost cis cup. cHow cwould
cyou cspecify cto cthe cping ccommand cthat conly cfive cpackets cget csent cto cthe cremote
chost?
ping c--count c5 chost.example.com
ping c-c c5 chost.example.com
ping c5 chost.example.com
ping c-n c5 chost.example.com c- ccorrect canswers✔✔ping c-c c5 chost.example.com c(-c
c= ccount, cnumber cof ctimes ccan cvary)
You cneed cto cverify cthat ca cremote chost cwith ca chostname cof cdns2.linuxacademy.com
cis cup cand crunning. cWhich cof cthe cfollowing ccommands cwould cyou center cat cthe
cshell cprompt cto cdo cthis?
finger cdns2.linuxacademy.com
netstat c-a cdns2.linuxacademy.com
netstat c-s cdns2.linuxacademy.com
ping cdns2.linuxacademy.com c- ccorrect canswers✔✔ping cdns2.linuxacademy.com
While cusing cvi cto cedit ca cfile cin ccommand cmode, cyou ctry cto cuse cthe cBACKSPACE
ckey cto cdelete ca cword, cbut cnothing chappens. cWhat's cwrong?
You cneed cto cuse cCTRL-BACKSPACE
You cneed cto creboot cyour ccomputer.
You cneed cto cswitch cto cnormal cmode.
You chave cto cswitch cto cinsert cmode. c- ccorrect canswers✔✔You chave cto cswitch cto
cinsert cmode.
Which ccommand cwould cuncompress cthe ccontents cof cthe cfile c'important.bz2'?
gunzip c(for c.gz conly)
tar c(this cis cnot ca czip-type cfile)
bunnyzip2 c(does cnot cexist)