/Shell_Scripts

Practice Questions Example for our final Lab exam of SAN

Primary LanguageShell

Shell_Script

Questions

  1. Use of if else, if elif else statements
  2. Use of for loop and while loop
  3. Use of functions
  4. Passing arguments to functions from the script
  5. Passing arguments to functions from CLI
  6. Returning of values from function to the script
  7. Basic arithmetic calculation inside function
  8. Passing of arguments from CLI to the script
  9. Performing basic file manipulation commands like cp, mv, mkdir, rm, cat, ls etc in the script
  10. Performing basic system commands like shutdown, sleep, ps, grep in the script
  11. Performing basic linux commands with command aliasing
  12. Performing linux commands on CLI arguments based on some conditions
  13. Checking whether a file or directory exists in a system
  14. Checking whether a pattern in a file exists