Linux Interview Questions | Glassdoor

Linux Interview Questions

24

interview questions shared by candidates

Linux Interview Questions

Sort: Relevance Popular Date

How do you change a list of words in a file from slug format to Capitalized words? (ie police_officer to Police Officer)

2 Answers

sed -e 's/^./\U&/' -e 's/_./\U&/g' -e 's/_/ /g' /path/to/input

|sed 's/\(^.\)\([a-z].*\)\(\_\)\(.\)\([a-z].*\)/\U\1\L\2 \U\4\L\5/'

Given a binary tree, how would you write program for getting mirror image of tree in O(n) time? Is it possible ? Assume you have no constraints on space.

2 Answers

How can you edit/change the file which has only read permission

4 Answers

How do you chmod a file to be executable if the chmod command itself isn't executable?

1 Answer

What is the Linux command to check on the CPU resources being utilized by a process?

1 Answer

What is the command for viewing memory management information in Linux?

1 Answer

Create a new user

1 Answer

What is a PTR DNS record used for?

1 Answer

Whiteboard a general LAMP stack and explain the process

1 Answer

Create a blank file without the use of a text editor

1 Answer
110 of 24 Interview Questions