Linux with Devops interview Questions

                  Linux with DevOps Interview Questions 



1)   Describe the root account.

The root account is like a systems administrator account and allows you full control of the system. Here you can create and maintain user accounts, assigning different permissions for each account. It is the default account every time you install Linux.

2)   What is CLI?

CLI is short for Command Line Interface. This interface allows the user to type declarative commands to instruct the computer to perform operations. CLI offers greater flexibility. However, other users who are already accustomed to using GUI find it difficult to remember commands including attributes that come with it.

3)   What is GUI?

GUI, or Graphical User Interface, make use of images and icons that users click and manipulate as a way of communicating with the computer. Instead of having to remember and type commands, the use of graphical elements makes it easier to interact with the system, as well as adding more attraction through images, icons, and colors.

4)   How can you find out how much memory Linux is using?

free - m

 

vmstat

 

top

 

htop

 

5)  Are drives such as hard drive and floppy drives represented with drive letters?

 

No. In Linux, each drive and device have different designations. For example, floppy drives are referred to as /dev/fd0 and /dev/fd1. IDE/EIDE hard drives are referred to as /dev/hda, /dev/hdb, /dev/hdc, and so forth.

6)   What is the pwd command?

The pwd command is short for print working directory command.

7)   What is grep command?

grep a search command that makes use of pattern-based searching. It makes use of options and parameters that are specified along with the command line and applies this pattern in searching the required file output.

8)   What are the contents of /usr/local?

It contains locally installed files. This directory matters in environments where files are stored on the network. Specifically, locally-installed files go to /usr/local/bin, /usr/local/lib, etc.). Another application of this directory is that it is used for software packages installed from source, or software not officially shipped with the distribution.

9)   Write a command that will look for files with an extension "c", and has the occurrence of the string "apple" in it.

Find ./ -name "*.c" | xargs grep –i "apple"
 
10) Write a command that will do the following:
 
-look for all files in the current and subsequent directories with an extension c,v
-strip the,v from the result (you can use sed command)
-use the result and use a grep command to search for all occurrences of the word ORANGE in the files.
 
       Find ./ -name "*.c,v" | sed 's/,v//g' | xargs grep "ORANGE"
 
11) What is the command to calculate the size of a folder?
 

To calculate the size of a folder uses the command du –sh folder1.

12) How can you find the status of a process?
 

Use the command

ps ux

 

  Linux commands for freshers:- 

 

13)                What is the requirement of the virtualization platform in implementing cloud?

Manage the service level policies.

A Cloud Operating System.

Virtualization platforms help to keep the backend level and user level concepts different from each other

14)                State the list of a need of virtualization platform in implementing cloud?

The need of virtualization platform in implementing cloud is to manage the service level policies, cloud operating system, and virtualization platforms help to stay the backend level and user level ideas totally different from one another.

 

15) What is the significance of $# in Shell Scripts?
 
$# shows the count of the arguments passed to the script.
 
16) Use sed command to replace the content of the file (emulate tac command)
 

Eg:

if cat fille
ABCD
EFGH

Then O/p should be

EFGH
ABCD

sed '1! G; h;$!d' file1
 
 
 
 

 Linux commands for freshers:- 

 

 

 

 

 

 

 

Comments

Popular posts from this blog

300 +DevOps Interview Questions and Answers

Kubernetes installation step-by-step in various OS