Linux Basics Practice Test: Linux Bash Shell — Flashcards | Linux | FatSkills

Linux Basics Practice Test: Linux Bash Shell — Flashcards

Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.

Quiz on Linux Bash Arithmetic Expressions, Bash Command History & Job Control, and Linux Bash Built-in Commands.

Bash, or Bourne-Again Shell, is a Unix shell and command language interpreter. It is the default shell for most Linux distributions. Bash can be used to automate tasks and interact with the Linux file system.

Here are some basic Bash commands:
ls:
- Lists the contents of the current directory.
cd: - Changes the current directory.
pwd: - Prints the working directory.
mkdir: - Creates a new directory.
rmdir: - Removes an empty directory.
touch: - Creates a new file.
cat: - Concatenates files and prints them to the standard output.
grep: - Searches for a pattern in a file or files.
awk: - A powerful text-processing tool.
sed: - A stream editor that can be used to modify text files.
find: - Searches for files and directories that meet certain criteria.
xargs: - Executes a command on the arguments passed to it.

Bash also supports a number of built-in variables, such as:
$HOME: - The user's home directory.
$PWD: - The current working directory.
$USER: - The current user's name.
$PATH: - A list of directories that Bash searches for commands.

You can use Bash to write scripts, which are files that contain Bash commands. Scripts can be used to automate tasks, such as backing up files or installing software.

Related Test: Linux Basics Practice Test: Linux Shell Programming

1 of 39 Ready
Which built-in command performs integer arithmetic in bash shell?
let
Shortcuts
Prev Space Show / hide Next
Turn this into a study set.
Sign in with Google to save tricky questions to your reminder list and resume on any device.
Sign in with Google Free • no extra password