Linux 100 Interview Questions
Linux 100 Interview Questions
1. What is Linux?
• Answer: Linux is a free, open-source operating system based on Unix. It was created
by Linus Torvalds in 1991 and is widely used in servers, desktops, and embedded
systems.
• Command: uname -a (displays system information)
30. How do you display the first and last few lines of a file?
• Answer: Use the head command to display the first few lines and the tail command
to display the last few lines of a file.
• Command: head filename, tail filename
93. How do you add your SSH key to the SSH agent?
• Answer: Use the ssh-add command to add your SSH key to the SSH agent.
• Command: ssh-add ~/.ssh/id_rsa