Question
1. In the command `ls *.txt`, what does the glob pattern match? .txt anywhere in the name (e.g. .txtdump, notes.txt, or notes.txt.bak) all files in
1. In the command `ls *.txt`, what does the glob pattern match?
.txt anywhere in the name (e.g. .txtdump, notes.txt, or notes.txt.bak) | ||
all files in the current directory | ||
Anything followed by .txt (e.g. notes.txt, ascii_art.txt) | ||
.txt followed by anything (e.g. .txtfile, .txtdump) |
2. The command `cd ../..` uses an absolute path argument.
True
False
3.Which type of quotes provide the most literal interpretation of the quoted string?
backticks (e.g. `escape me`) | ||
double quotes (e.g. "escape me") | ||
single quotes (e.g. 'escape me') |
4. Which command would list just the files beginning with the letter 'z' in the /usr/bin/ directory from anywhere on the system?
ls /usr/bin/* | ||
ls z* | ||
ls /usr/bin/z* | ||
ls *z | ||
ls /usr/bin/*z |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started