Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
296 views
20 Linux Commands Interview Questions & Answers
nnvb
Uploaded by
Ajit Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save 20 Linux Commands Interview Questions & Answers For Later
Download
Save
Save 20 Linux Commands Interview Questions & Answers For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
296 views
20 Linux Commands Interview Questions & Answers
nnvb
Uploaded by
Ajit Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save 20 Linux Commands Interview Questions & Answers For Later
Carousel Previous
Carousel Next
Save
Save 20 Linux Commands Interview Questions & Answers For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 8
Search
Fullscreen
LinuxTechi Home How To Commands Shell Scripting Linux Interview Linux ebooks Write For LinuxTechi Contact Us About Us Linux Interview as 6 20 Linux Commands Interview Questions & Answers Bor You Emil Ib by Pradeep Kumat- Published December 21, 2014- Updated lune 19, 2016 Q:1 How to check current run level of a linux server ? ‘Ans: ‘who -r' & ‘runlevel’ commands are used to check the current runlevel of a linux box. inti Linux Techi Q:2 How to check the default gatway in linux ? ‘Ans: Using the commands “route -n* and “netstat -nr* , we can check default gateway. Apart from the default gateway info , these commands also surtalones display the current routing tables apo rt oni nacconande cen gnc rm!(Q:3 How to rebuild initrd image file on Linux ? ‘Ans: In case of CentOS 5.X / RHEL 5.X , mkinitrd command is used to create initrd file , example is shown below : 4 mkinitrd -f-v /boot/initrd-$(uname -1).img S(uname -1) If you want to create initrd for a specific kernel version , then replace “uname -r' with desired kernel In Case of CentOS 6X / RHEL 6.X , dracut command is used to create initrd file example is shown below : dracut -£ Above command will create the initrd file for the current version. To rebuild the initrd file for a specific kernel , use below command : 4 dracut -finitramfs-2.x.2x-%.016.x86_64.img 2.x.20-9%.016.x86_64 (Q:4 What is cpio command ? Ans: cpio stands for Copy in and copy out. Cpio copies files, lists and extract files to and from a archive (or single fie) (Q:5 What is patch command and where to use it ? Ans: As the name suggest patch command is used to apply changes ( or patches) to the text file. Patch command generally accept output from the diff and convert older version of files into newer versions. For example Linux kernel source code consists of number of files with millions of lines , so whenever any contributor contribute the changes , then he/she will be send the only changes instead of sending the whole source code. Then the receiver will apply the changes with patch command to its original source code. Create a diff file for use with patch, 4 diff -Naur old_file new file >diff_file ep dr cont nacconmande cen gnc! Recent CommentsTags Fedora 25 Workstation Installation Guide with Screenshots How to Install and Customize ONLYOFFICE Fer Desktop Editors on Debian/Ubuntu/Linux Mint —— Katello - Download Yum Repositories and Register = clients for patching November 2, 2016 How to Manage Kernel Modules in Linax: How to Install Katello 5.2 on CentOS 7.x November 14,2016 ‘Top 10 Linux Distros for Desktop /Laptop November 4, 2016ep dr oni nacconmarde en gners ‘Where old file and new file are either single files or directories containing files. The r option supports recursion of a directory tree. Once the diff file has been created, we can apply it to patch the old file into the new file: patch < diff file Q:6 What is use of aspell ? Ans: As the name suggest aspell is an interactive spelling checker in linux operating system. The aspell command is the successor to an earlier program named ispell, and can be used, for the most part, as a drop-in replacement. While the aspell program is mostly used by other programs that require spell-checking capability, it can also be used very effectively as stand-alone tool from the command line. Q:7 How to check the SPF record of domain from command line ? ‘Ans: We can check SPF record of a domain using dig command. Example is shown below : linuxtechi@localhost:~$ dig TXT google.com Q:8 How to identify which package the specified file (/etc/fstab) is associated with in linux ? Ans: # rpm -af etc/fstab Above command will list the package which provides file “/ete/fstab” Q:9 Which command is used to check the status of bondO ? ‘Ans: cat /proc/net/bonding/bondo Q:10 What is the use of /proc file system in linux ? Ans: The /proc file system is @ RAM based file system which maintains information about the current state of the running kemel including details. on CPU, memory, partitioning, interrupts, 1/O addresses, DMA channels, and running processes. This file system is represented by various files tober 50,2016 ‘Multi Node Openstack ‘Newton’ Installation = Steps on Centos 7 october 2, 2016 ERE vbuntu 16.10 (vakkety © © Yak) Desktop Installation — ide (ctober 20,2016 Next» Facebookwhich do not actually store the information, they point to the information in the memory. The /proc file system is maintained automatically by the system. (Q:11 How to find files larger than 10MB in size in /usr directory ? ‘Ans: # find /usr -size +10M Q:12 How to find files in the /home directory that were modified more than 120 days ago ? ‘Ans: # find /home -mtime +120 Q:15 How to find files in the /var directory that have not been accessed in the last 90 days ? ‘Ans: # find /var -atime -90 Q:14 Search for core files in the entire directory tree and delete them as found without prompting for confirmation ‘Ans: # find /-name core exec 1m {}\; Q:15 What is the purpose of strings command ? Ans: The strings command is used to extract and display the legible contents of a non-text file Q:16 What is the use tee filter ? Ans: The tee filter is used to send an output to more than one destination. It can send one copy of the output toa file and another to the screen (or some other program) ifused with pipe. linuxtechi@localhost:~$ Il/etc [nl | tee /Amp/ll.out In the above example, the output from Il is numbered and captured in ‘Amp/llout fil. The output is also displayed on the screen. Q:17 What would the command export PSI = "SLOGNAME@ ‘hostname*\SPWD: do? ep dr oni nacconmande en gn‘Ans: The export command provided will change the login prompt to display username, hostname, and the current working directory. (Q:18 What would the command II | awk ‘{print $3,"owns",$9)' do ? Ans: The Il command provided will display file names and their owners. Q:19 What is the use of at command in linux ? Ans: The at command is used to schedule a one-time execution of a program in the future. All submitted jobs are spooled in the /var/spool/at directory and executed by the atd daemon when the scheduled time arrives. Q:20 What is the role of Ispei command in linux ? Ans: The Ispei command displays information about PCT buses and the devices attached to your system. Specify -v, -vv, or -vwv for detailed output. With the -m option, the command produces more legible output. ep dr oni nacconmande en gnRelated Posts [irswdhes) LinuxTecht ‘server Cinux Unix Interview Interview [iad usstons & Questions & Answers ne Server Interview Virtualization command examples Quasions &Inteniew famples for beganas in nue Answers Questions & beginners Slim Shell How toinstall—_2Sintenew seeptng Docker om CentOS. Questions for (Quetions te Aministrto Job ‘Tags: nx commands interview questions € Fedora 21 Desktop Installation} Install VLC Multimedia player > Steps with Sereenshots fon Ubunty 14.10 pve rst con cornea. macesven ‘Una Comma Hever Aras 3 Responses Comments 3 - Pingbacks 0 Ray © December 25,2014 at 459 pm Inthe answer to Q14, the find command also has a ‘delete’ option. find /-name core -dolete Reply dham © January 29, 2015 at 1:58am ‘There is no option to ada “deete” find /-name core -execrm {)\; Reply Pradeep Kumar © January 0, 2015 at 11:48 * Mian, delete option is ther, for your reference just do "man find” and search delete word, Reply Leave a Reply Comment Name * mai pw dr contnacconande teen eines!Website ight « =56 Oo Aa Linaechi Lino Tutors & Guides © 2016. A ight Reserve o Thiswrkis cesed nde Cetve Gammon Atriuion-NenCommeri 40 International License. Content of this site cannot be republished either online or offline without our permissions. apo rt oni nacconande cen gnc rm!
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6124)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brené Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (933)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8214)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2922)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4972)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1987)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2619)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Aptean Interview Question CCAT
PDF
No ratings yet
Aptean Interview Question CCAT
24 pages
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2530)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
Java
PDF
No ratings yet
Java
2 pages
Elitmus Syllabus FGVF& Paper Pattern - 2015
PDF
No ratings yet
Elitmus Syllabus FGVF& Paper Pattern - 2015
8 pages
Amcat Syllabus 2016-2017 Exam Pattern, Question Papers
PDF
No ratings yet
Amcat Syllabus 2016-2017 Exam Pattern, Question Papers
27 pages
ECIL Gaurav Issue 7 Electronic Fuze
PDF
No ratings yet
ECIL Gaurav Issue 7 Electronic Fuze
44 pages
1chap0 Openingnbv
PDF
No ratings yet
1chap0 Openingnbv
30 pages
Elitmus Syllabus FGVF& Paper Pattern - 2015
PDF
No ratings yet
Elitmus Syllabus FGVF& Paper Pattern - 2015
8 pages
Deloitte Sample Paper
PDF
No ratings yet
Deloitte Sample Paper
11 pages
Patient Monitoring System Using GSM Technology
PDF
No ratings yet
Patient Monitoring System Using GSM Technology
8 pages
0212 Csit 04
PDF
No ratings yet
0212 Csit 04
12 pages
04 SQL PDF
PDF
No ratings yet
04 SQL PDF
199 pages
CERNER Interview
PDF
No ratings yet
CERNER Interview
3 pages
Company Email (BANGALORE)
PDF
No ratings yet
Company Email (BANGALORE)
160 pages
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Principles: Life and Work
From Everand
Principles: Life and Work
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Steve Jobs
From Everand
Steve Jobs
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Yes Please
From Everand
Yes Please
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
The Outsider: A Novel
From Everand
The Outsider: A Novel
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Aptean Interview Question CCAT
PDF
Aptean Interview Question CCAT
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
John Adams
From Everand
John Adams
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
Java
PDF
Java
Elitmus Syllabus FGVF& Paper Pattern - 2015
PDF
Elitmus Syllabus FGVF& Paper Pattern - 2015
Amcat Syllabus 2016-2017 Exam Pattern, Question Papers
PDF
Amcat Syllabus 2016-2017 Exam Pattern, Question Papers
ECIL Gaurav Issue 7 Electronic Fuze
PDF
ECIL Gaurav Issue 7 Electronic Fuze
1chap0 Openingnbv
PDF
1chap0 Openingnbv
Elitmus Syllabus FGVF& Paper Pattern - 2015
PDF
Elitmus Syllabus FGVF& Paper Pattern - 2015
Deloitte Sample Paper
PDF
Deloitte Sample Paper
Patient Monitoring System Using GSM Technology
PDF
Patient Monitoring System Using GSM Technology
0212 Csit 04
PDF
0212 Csit 04
04 SQL PDF
PDF
04 SQL PDF
CERNER Interview
PDF
CERNER Interview
Company Email (BANGALORE)
PDF
Company Email (BANGALORE)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
Little Women
From Everand
Little Women
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel