Chapter 1 Challenges

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to: navigation, search
← Why shell scriptingHomeChapter 2: Getting Started With Shell Programming →
  • What is the shell?
  • Decide whether the following sentence is true or false:
  1. Linux is a collection of programs and utilities glued together by the bash shell.
  2. Shell manages files and data.
  3. Shell manages networks, memory and other resources.
  4. Linux kernel runs programs and loads them into the memory.
  5. Bash shell is a poor user interface.
  6. Bourne Shell is also known as /bin/sh.
  7. Bash Shell is also known as /bin/bash or /usr/local/bin/bash.
  8. C Shell offers more C like syntax.
  9. A few commands are built into the shell.
  10. Linux file system organised as hierarchy.
  11. To refer to several files with similar names you need to use wildcards.
  12. Wildcards increase command typing time.
  13. Command ls is used to list directories.
  14. rmdir command will only remove empty directories.
  15. Everything is file in Linux.
  16. rm -i filename command will prompts for confirmation.
  17. Linux can run many programs at the same time.
  18. The bash shell is just a program.
  • Write a command names, which can display the files to the terminal.
  • Write a command to list details of all files ending in '.perl' in reverse time order.
  • Write a command to list your running programs.
  • Write a command to list files waiting to be printed.
  • Write a command to delete 3 files called file1.txt, file2.txt, and data1.txt.
  • Write a command to creates a new sub-directory called 'foo' in /tmp.
  • Write a command to delete the directory called 'foo'.
  • Write a command to read all ls command options.
  • Chapter 1 answers
← Why shell scriptingHomeChapter 2: Getting Started With Shell Programming →