LINUX

Interview Questions



● What does the command 'rm -r' do in Linux?

● What does the command 'ls' do in Linux?

● Which command is used to navigate to the home directory in Linux?

● What does the command 'mkdir' stand for in Linux?

● In Linux, what is the purpose of the chmod command?

● What is the use of the "Sed" command in Linux?

● To display the contents of a file in the terminal, which command is used?

● Which command is used to display the last few lines of a text file in Linux?

● What is the purpose of the "sudo" command?

● How do you add a new user in Linux?

● How can we rename a file in Linux?

● What is the function of the "Grep" command?

● How can you create an empty file on Linux?

● Can we move one file to another location in Linux?

● Please write any 5 commands from Linux.

UNIX

INTERVIEW QUESTIONS

● How do you know what processes are running in Unix?

● How will you stop a process forcefully in Unix?

● Will the below commands result in the same output?

● How can we define constants in Unix shell scripting?

● Can we unset variables in Unix?

● What are Environment Variables in Unix?

● What are Shell Variables in Unix?

● What does '$@' represent in Unix? (All arguments of command)

● What is '$?' in Unix? (It is the status of the last executed command)

● What is sed? and why do we use it? (It is a stream editor, it can be used for replacing a set of characters with another set)

● How to read a file in Unix using loops?

● Replace all occurrences of the word "USA" with "INDIA" from the 10th line till the end in only those lines that contain the word "World".

● How to check running jobs in Unix?

● How to check a specific running process in Unix?

● What is crontab?