Introduction to Linux environment Quiz Questions and Answers

Which command is used to go back to the user's home directory?

Answer :
  • cd

Which Linux directory stores the configuration files?

Answer :
  • /etc

I declared a variable SCORE=90, how to call variable using echo command ?

Answer :
  • echo $SCORE

Which command can be used to count the number of words in a text file?

Answer :
  • wc

Which command tells information about password properties such as password expiry?

Answer :
  • chage -l

Which command is used to force stop the signal?

Answer :
  • SIGKILL

How to find out whether two files are hard links of each other using ls command?

Answer :
  • ls -i

Which single command can be used to add users with uid 1003, guid 1003 and login shell /bin/bash?

Answer :
  • useradd -u 1003 -g 1003 -s /bin/bash

Where is the group information stored , if want

Answer :
  • /etc/group

I have encoutred an issue in receiving emails I want to check the mail logs of my machine and I want the updated logs to be continously displayed , which command can I use to view the current logs of my mailserver?

Answer :
  • tail -f /var/log/maillog