Linux Administrator

Some Basic Linux Commands Interview Questions

In this article I will explain some basic Linux command interview questions.

Question #1: Which Linux commands you use frequently, give me top 10 which you use?

Answer:

  • mkdir : Creating folder, and with -p option we can create multiple folder at a time.
  • ls : Listing files and directories.
  • top : Monitor system activities.
  • history: History of command executed by users.
  • lsof : Check which process open which file and what is happening on the server.
  • sh : To run shell scripts
  • netstat -tcp : Complete detail about network connections.
  • cd : To change directory
  • vim : To edit Linux Configuration files.
  • chmod : Changing files and folder permission.

Question #2: Do you know user management commands?

Answer :

  • last
  • chage
  • chsh
  • lsof
  • chown
  • chmod
  • useradd
  • userdel
  • newusers

Question #3: Do you know syntax checking commands for following services?

Answer :

  • Samba
  • Dns
  • Apache

Question #4 : Which command is used for password less login to remote Linux server/machine?

Answer:

  • ssh-keygen
  • expect

Question #5 : Do you know security monitoring related commands?

Answer:

  • netstat
  • lsof
  • top
  • ps-ef
  • tall
  • last
  • tcpdump
  • sestatus
  • w
  • history

Question #6 Do you know what is difference between info, man, and whatis commands?

Answer:

info command provide us full details about a commands.
man command provide us medium size info and.
whatis provide us one line answer.

I hope above questions will help for interview preparation. If you have any other interview questions please share with us, It will help others.

Thanks:)

Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

1 Comment

Leave a Comment