[go: up one dir, main page]

0% found this document useful (0 votes)
6 views15 pages

3-Mock Interview Answers (Linux)

The document provides mock interview answers related to Linux, covering topics such as daily activities, DevOps tools, Agile vs. DevOps methodologies, and Linux family distinctions. It includes practical commands for system checks, user management, and service operations, as well as explanations of system concepts like swap memory and system load. Additionally, it outlines specific tasks like installing packages and checking file permissions.

Uploaded by

ganeshkalagoni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views15 pages

3-Mock Interview Answers (Linux)

The document provides mock interview answers related to Linux, covering topics such as daily activities, DevOps tools, Agile vs. DevOps methodologies, and Linux family distinctions. It includes practical commands for system checks, user management, and service operations, as well as explanations of system concepts like swap memory and system load. Additionally, it outlines specific tasks like installing packages and checking file permissions.

Uploaded by

ganeshkalagoni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

3-Mock Interview Answers

(Linux)

Login :

ssh root@15.207.88.109 -p 2224 --> user1

ssh root@15.207.88.109 -p 2225 --> user2

ssh root@15.207.88.109 -p 2226 --> user3

ssh root@15.207.88.109 -p 2227 --> user4

Password: root@123 (same for all)

1. Tel me your Day to Day Activities ?

• Here we are using Agile methodology.


• Attend the Daily stand-up meeting with team,
• there we will discuss the yesterday task progress and today
• Daily Morning i will Check the Jira tickets and based on pr
• Working on backlog task.
• based on requirement I’ll discussed with dev and QA team.
I’ll share my ideas and take inputs and suggestion with the
• Will take care of wiki data,

3-Mock Interview Answers (Linux) 1


in the wiki I will add project information,
along with Nodes and services list with existing configurat
login details, application use case and ports, network flow
• Monitor and troubleshooting the application and network iss

2. Tell me about DevOps Tools which you using on current project and explain
it ?

• Operating System : Oracle Linux: 9.


• For source code management we are using : Git and GitHub
• And this is the java based project for building we are us
• and the final product was : JAR and WAR.
• For CI/CD we are using : Jenkins
• To run the WAR file, we using : Tomcat as an application
• To run the JAR file, we using : OPEN-JDK:11
• For code quality testing we are using : SonarQube
• To store the snap short/release artefact we are using : J
• For data basses we are using : Cassandra and MySQL
• For cloud services we are using : AWS.
• For containers engine we are using : Docker
• For container management we are using : kubernetes
• For monitoring we are using Prometheus and Grafana

3. What is the difference B/W Agile and DevOps methodologies ?

Agile:

1. Agile is about software development

Devops:

1. DevOps is about software deployment and management.

2. DevOps does not replace Agile or Lean. It does this by killing waste, removing
handovers, and streamlining deployments to allow faster and more continuous
deployments to PRODUCTION.

3-Mock Interview Answers (Linux) 2


4. Explain what is Linux family and what is the Difference B/W Fedora Vs
Debian, which one is best for PROD.

Linux Family mainly 2 types.


|
|- - - Debian
| |
| - - - Ubuntu
|
|- - - Fedora
| |
| | - - - RHEL
| - - - Centos
| - - - Oracle Linux

Production : Fedora family OS will used.

5. Check your system hardware configuration.

1. Check the No of CPU


Command: nproc
2. Check the RAM
Command: free -h
3. Check the Hard dish
Command: df -h
4. Chekc the OS release
Command: cat /etc/os-release

3-Mock Interview Answers (Linux) 3


6. Give executable permission to everyone. file-name :
/home/futuretech/test.sh

chmod +x /home/futuretech/test.sh
chmod a+x /home/futuretech/test.sh
chmod 655 /home/futuretech/test.sh

7. Go to ‘sai’ user home directory and check the files and directory size.

cd /home/sai
ls -lrth #--> check the Files size
du -sh * #--> Check the Directory Size

3-Mock Interview Answers (Linux) 4


8. In your system find the last 15min updated/modified/added files in /var
directory.

find /var -mtime -15 #--> Last 15 days files

find /var -mmin -15 #--> Last 15 Min files

9. What are the ports listening on your system

netstat -ntpl

3-Mock Interview Answers (Linux) 5


10. How to check the process wise CPU, RAM usage.

top

11. How to start/stop the apache2 service.

service apache2 start


service apache2 stop
service apache2 restart

12. What is the Linux logs default directory?.

/var/log #--> All system and application logs directory

3-Mock Interview Answers (Linux) 6


13. Check ‘/usr/sbin/sshd’ file open or not in your system?

lsof | grep '/usr/sbin/sshd'

14. Write 10 commands which you used in your daily job.

ls -lrth #--> check the list of existing files and direc


cd #--> Change directory
cp #--> copy the files
mv #--> move/rename the file
ps -ef #--> Check the process id of runninng applicati
netstat -ntpl #--> Check the Listening ports status.
ping #--> Check server server/node UP or DOWN.
telnet #--> Check connectivity
grep #--> Search the particular keywork in file.
find #--> Search file and directory
useradd #--> Add tyhe new user
chmod #--> Change the file/directory permission.
w #--> displays information about all users logge
df -h #--> Check the disk space.
top #--> show the process wise CPU/RAM usage.

3-Mock Interview Answers (Linux) 7


15. Install ‘ping’ package on your system.

# Debian
apt install iputils-ping

# Fedora
yum install iputils

16. In your system there is a file ‘my-config’ find the location and explain the
permissions/size/owner/group/date.

find / -type f -name my-config

3-Mock Interview Answers (Linux) 8


17. Create ‘bob’ user on your system and add him on dev group.

## Check dev group exist or not in server.


Command: grep dev /etc/group

## Check bob user exist or not in server.


Command: id bob

## Create the bob user and add him on dev group


Command: useradd -g dev -m -d /home/bob bob

18. How to check the ‘bankbazaar.com’ public ip.

ping bankbazaar.com

or

nslookup bankbazaar.com

3-Mock Interview Answers (Linux) 9


19. In /home directory, one of the file ‘be2edd’ key-word is there. what is the
file name?

cd /home
grep -r be2edd .

grep -rl be2edd . --> Only File Name will display

20. In your system ‘redis-server’ application installed but it was not running.
please fix the issue.

1. Check the redis-sever status and start the service.

3-Mock Interview Answers (Linux) 10


2. Check the above file and directory permission and provide me necessary
permissions.

3. Start the application and verify the redis logs.

4. Check the above directory and create and if not exist.

5. Start the application and verify the redis logs.

3-Mock Interview Answers (Linux) 11


21. Difference b/w Hard Link and Soft Link in Linux

3-Mock Interview Answers (Linux) 12


22. What is System load in Linux

3-Mock Interview Answers (Linux) 13


https://scoutapm.com/blog/understanding-load-averages

23. What is Swap Memory


Swap space in Linux is used when the amount of physical memory (RAM) is
full. If the system needs more memory resources and the RAM is full, inactive
pages in memory are moved to the swap space. While swap space can help
machines with a small amount of RAM, it should not be considered a replacement
for more RAM.

3-Mock Interview Answers (Linux) 14


3-Mock Interview Answers (Linux) 15

You might also like