Chapter 1 Challenges
From Linux Shell Scripting Tutorial - A Beginner's handbook
- What is the shell?
- Decide whether the following sentence is true or false:
- Linux is a collection of programs and utilities glued together by the bash shell.
- Shell manages files and data.
- Shell manages networks, memory and other resources.
- Linux kernel runs programs and loads them into the memory.
- Bash shell is a poor user interface.
- Bourne Shell is also known as /bin/sh.
- Bash Shell is also known as /bin/bash or /usr/local/bin/bash.
- C Shell offers more C like syntax.
- A few commands are built into the shell.
- Linux file system organised as hierarchy.
- To refer to several files with similar names you need to use wildcards.
- Wildcards increase command typing time.
- Command ls is used to list directories.
- rmdir command will only remove empty directories.
- Everything is file in Linux.
- rm -i filename command will prompts for confirmation.
- Linux can run many programs at the same time.
- 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