LINUX Interview Questions

Rashmi Bhardwaj | Interview Questions,Programming & Software
Google ADs

ANSWERS @https://ipwithease.com/shop/

  1. What is LVM?
  2. Create a new file “merged.txt” that is a concatenation of “file1.txt” and “file2.txt”
  3. How to login as a different user in Linux?
  4. What Is BASH?
  5. What Is GRUB?
  6. What is a swap space?
  7. Describe the root account in Linux?
  8. What are the kinds of permissions under Linux?
  9. What is meant by PIPE in Linux?
  10. What is Zombie Process?
  11. What is the Crontab?
  12. How can we list all the process running on a machine?
  13. What are the different file ownerships in Linux?
  14. Explain the usage of ‘head’ and ‘tail’ commands.
  15. How can we introduce wait time in scripts?
  16. Explain the meaning of the permission mode “drwxr-x–x”?
  17. What are Regular Expressions (regex)? What is the meaning of *, +, ? in regular expression?
  18. What are soft links?
  19. What are hard links in Linux? How it is different from soft link?
  20. What is Samba? Why is it used?
  21. What is SSH? What is the difference between Telnet and SSH?
  22. What does curl command do in Linux?
  23. What is SeLinux?
  24. What is the difference between CTRL-C and CTRL-Z in terminal?
  25. Explain /proc filesystem?
  26. Which is the core of the operating system?
  27. What is the purpose of <dmesg> command?
  28. What is the command to change the group ownership of a file?
  29. Which command is used to extract first a column from a text file name Test.txt?
  30. Which command display the disk consumption of any directory?
  31. Which command creates an empty file if it does not exist?
  32. Display all the files and its subdirectories including the hidden files in directory /tmp?
  33. Which option of rm command is used to remove a directory including all its subdirectories?
  34. How to identify which shell you are using?
  35. If you want to login into a system with IP address 192.168.0.1 as a user “john”, then the command would be:
  36. What is iptables command in Linux? Write command that appends a rule in the INPUT chain to accept all packets originating from 192.168.1.230.
  37. How to count the number of words, lines and characters in a file called test.txt?
  38. What is the output of the following shell script code?
  39. What will be the output of the following program assuming that command line arguments are cat dog giraffe?
  40. How to see the list of mounted devices on Linux?
  41. How would you open a file in read-only mode using the vim editor?
  42. How do you sort the entries in a text file in ascending order?
  43. How do you get help about the command “cp”?
  44. Which file contains the filesystems to be automatically mounted during boot?
  45. What does the following command do? “who | wc –l
  46. How do you find which remote hosts are connecting to your host on a particular port, for example port 56475?
  47. There is a file Test.txt which contains words Windows. How will you replace all Windows word with Linux?
  48. How can you list all the opened files of user sasa?
  49. How you can find all subdirectories of directory /var/ that have summarized size in Gigabytes?
  50. Write a script that checks if a file, given as an argument, has more than 10 lines or not. If it does – print “Over 10”, else print “Less than 10”?
  51. A company is running Web Server apache. Visitors are able to scan the directory tree. Which directive would you configure to stop web server from listing the directory due to security measure?

ANSWERS @https://ipwithease.com/shop/

Check our new website  https://networkinterview.com For Free Video Courses, TechBlog, Mindmaps, Cheatsheets and much more.

ABOUT THE AUTHOR


Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart