Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which command would delete all files in your current directory that start with the letter b? Question 11 options: rm b* rm -r b? rm

Which command would delete all files in your current directory that start with the letter b?

Question 11 options:

rm b*

rm -r b?

rm -all b

delete b?

Question 12 (Mandatory) (5 points)

You have a file named "thesis.txt" and you want to make a copy of it before doing some heavy editing. What command would you type to create a copy named "thesis-backup.txt"?

Question 12 options:

copy thesis.txt thesis-backup.txt

mv thesis.txt thesis-backup.txt

cp thesis.txt thesis-backup.txt

cp thesis-backup.txt thesis.txt

Question 13 (Mandatory) (5 points)

You want to create a directory to store all your homework files. What command would you type to create a directory named "homework"?

Question 13 options:

mkdir homework

mkdir homework

crd homework

cd homework

Question 14 (Mandatory) (5 points)

Which command would you type to rename a file named "homework.txt" to "homework01.txt"?

Question 14 options:

ren homework.txt homework01.txt

homework.txt mv homework01.txt

rn homework.txt homework01.txt

mv homework.txt homework01.txt

Question 15 (Mandatory) (5 points)

Which command would you type to delete a file named "old-story.txt"?

Question 15 options:

delete old-story.txt

dl old-story.txt

ln old-story.txt

rm old-story.txt

Question 16 (Mandatory) (5 points)

When deleting a file, what does adding the -i option do?

Question 16 options:

Makes the command include invisible (hidden) files

Makes the command put deleted files in the trash bin (so they can be undeleted later)

Makes the command interactive (asks you if you are sure)

Makes the command include subdirectories (recursive)

Question 17 (Mandatory) (5 points)

Commands in a Unix system can be many things. Which of the following are types of Unix commands (might be more than one)?

Question 17 options:

A command built into the shell itself

A shell function

An alias

An executable program, which might be either a compiled binary or a program written in a scripting language.

Question 18 (Mandatory) (5 points)

There might be more than one version of a program on a Unix system, and you might not know which one is executed when you type the name of the command. What would you type to identify the exact location of a program named "lsof"?

Question 18 options:

uniq lsof

id lsof

which lsof

where lsof

Question 19 (Mandatory) (5 points)

The "ls" program has many features or options. What command would you type to view the manual or documentation for the "ls" command?

Question 19 options:

doc ls

ls manual

ls info

man ls

Question 20 (Mandatory) (5 points)

Which command would you type to display all the command aliases that are currently defined for your Unix environment?

Question 20 options:

show aliases

alias -display

env aliases

alias

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions