7.02. Shell Programming

  1. Which shell is most commonly used in Linux? (bash)
  2. What is the sed command and its syntax?
  3. What is the awk command?
  4. What do $0, $1, etc. represent in shell scripting?
  5. How do you represent variables in shell scripting?
  6. In Linux shell scripting, which command is used to take input from the user? (read)
  7. What does the echo command do in Linux shell scripting?
  8. How do you comment in a shell script? (#)
  9. Which symbol is used for comments in shell scripting? (#)
  10. How do you represent an if statement in shell scripting?
  11. How is the while loop used in shell scripting?
  12. How is the for loop used in shell scripting?
  13. Which symbol is used for output redirection? (>)
  14. How do you find the length of a file? (wc -c)
  15. How do you retrieve a word or value from a file? (grep / awk / sed)
  16. What happens when you execute ./etc/file_gyp.sh?
  17. What is shell? What is shell scripting? [Webber]
  18. What is bash? What is .bashrc? What are environment variables? [Webber]
  19. Write shell commands you have used. [Team F1 Network]
  20. What is LSP (Linux System Programming)? [Rayden]
  21. What is a Linux layer? [Webber]