Command rmdir can be used to delete directory

Assignment Help Basic Computer Science
Reference no: EM133218245

QUESTION 1

When you are moving files, using the -o option with the mv command can be a good idea so that you don't unexpectedly overwrite a destination file with the same name.

True

False

QUESTION 2

The command rmdir can be used to delete a directory that is not empty.

True

False

QUESTION 3

UNIX/Linux store data, such as letters, product records, or vendor reports, in flat ASCII files.

True

False

QUESTION 4

When you use cat to combine two files into a third file, the first line of the output contains the first line of the first file followed by the first line of the second file.

True

False

QUESTION 5

When you use the paste command, by default, the pasted results appear in columns separated by commas.

True

False

QUESTION 6

You can use the < operator to redirect a command's output from the screen to a file.

True

False

QUESTION 7

The pipe operator can connect several commands on the same command line.

True

False

QUESTION 8

When using wc, you cannot specify all three options ( -l, -w and -c) in the command line at the same time.

True

False

QUESTION 9

A popular use of pr is to convert lowercase characters to uppercase characters.

True

False

QUESTION 10

You can use the less command with a directory to view its contents one screen at a time, such as less / sbin.

True

False

QUESTION 11

System administrators and programmers refer to standard output as ____.

sout

stout

stdout

standardout

QUESTION 12

To redirect the list of the files in a directory to a file called homedir.list, you enter ____.

ls < homedir.list

ls > homedir.list

homedir.list < ls

homedir.list > ls

QUESTION 13

You can use the ____ operator to redirect commands or program error messages from the screen to a file.

1>

2>

3>

4>

QUESTION 14

The command > accountsfile ____.

deletes the file accountsfile

is not valid in UNIX/Linux systems

displays the contents of the file accountsfile on the screen

creates an empty file called accountsfile

QUESTION 15

You can use the ____ command to create empty files.

touch

create

make

cd

QUESTION 16

When you no longer need a file, you can delete it using the ____ command.

rm

mv

rmdir

delete

QUESTION 17

To move a file, you use the ____ command along with the source file name and destination name.

cp

rename

mv

move

QUESTION 18

The ____ option of the paste command is used to specify a different separator as a delimiter.

-t

-o

-d

-s

QUESTION 19

If you execute ____, the contents of file1 are sorted and the results are stored in file2.

sort file1 -o file2

sort file1 -d file2

sort file1 > file2

sort file1 file2

QUESTION 20

The join -1 2 -2 3 f1 f2 -t: command uses ____ .

the 1st field of f1 file to join the 2nd field of f2 file with the colon separator

the 1st field of f1 file to join the 3rd field of f2 file with the colon separator

the 2nd field of f1 file to join the 2nd field of f2 file with the colon separator

the 2nd field of f1 file to join the 3rd field of f2 file with the colon separator

QUESTION 21

____ is NOT a selection command.

comm

diff

grep

sed

QUESTION 22

The ____ redirects the output of one command to the input of another command.

output redirection operator (>)

input redirection operator (<)

pipe operator (|)

tilde (~)

QUESTION 23

You use the ____ command to search for a specified pattern in a file, such as a particular word or phrase.

find

grep

sed

diff

QUESTION 24

The ____ command removes duplicate lines from a file.

grep

mv

uniq

diff

QUESTION 25

The ____ option of the uniq command instructs it to generate as output only the lines of the source file that are not duplicated successively.

-d

-s

-o

-u

QUESTION 26

The ____ command locates identical lines within two identically sorted files.

diff

sed

uniq

comm

QUESTION 27

The ____ option of the diff command ignores blanks that repeat.

-b

-B

-c

-l

QUESTION 28

The ____ function within the awk command is used to format output.

out

outln

print

printf

QUESTION 29

You use the ____ character in script files to mark comments.

tilde (~)

dollar ($)

pipe (|)

pound (#)

QUESTION 30

After you create a shell script to run in Bash, you can immediately run the script by typing ____ and then the name of the script.

run

sh

start

exec

Reference no: EM133218245

Questions Cloud

Write an informed consent document : Write an informed consent document - Care coordinators help act as a hub of services, assisting the patient in managing appointments
Shifting awareness of diversity affecting your future : How do you see your shifting awareness of diversity affecting your future?
What was the most interesting part of law passing process : What was the most interesting (to you) part of the law passing process? What are the pros and cons? Is there a method behind the madness
What are applicability limits for this model : Salary and the mark for HSBS124 unit have been obtained for 100 recent graduates of PEC School of IT. What are the applicability limits for this model?
Command rmdir can be used to delete directory : The command rmdir can be used to delete a directory that is not empty. A popular use of pr is to convert lowercase characters to uppercase characters.
Explain projected future impacts linked to proposed solution : Explain projected future impacts linked to the proposed solution. Project revisions to the proposed solution based on predicted trends for the identified area
Write an analysis on the uniform commercial code : Uniform Commercial Code Analysis - Write an analysis (1,250-2,000 words) on the Uniform Commercial Code (UCC), as it applies to contracts
Explain code example : Explain code example. The "shebang" line assuming that all interpreters exist in /bin.
Share what you currently know about disability and society : Share what you currently know about disability and society. Explain important activities, events, or life experiences that have influenced who you are today

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Impact of lehman brothers bankruptcy on individual wealth

Impact of Lehman Brothers Bankruptcy on Individual Wealth. Explain how the bankruptcy of Lehman Brothers.

  Explain about how device works

Write down what first comes to mind as to what is good and bad about the way the device works. The range of tasks a typical user would want to do using it.

  Causes of cyber crime

How does technology effect ethics - What are the social, economic, political, and global attributes of your topic?

  Formulate the problem of maximizing number of matched pairs

Formulate the problem of maximizing the number of matched pairs as a max-flow problem.

  Differences between ACCESS and EXCEL

Distinguish key differences between ACCESS and EXCEL. Explain responsibilities of database administrator as they relate to assuring data security and integrity

  Write a program with the output hello world hello

Write a program with the following output: (Notice the newline and space) Hello world! Hello

  Content of two memory words at location

Show the content of two memory words at location 1000 and 1004 after the name "Johnson" has been entered.

  Research report on security awareness policy

You will write research report on Security Awareness Policy, also called Security Awareness and Training. find generic template for security awareness online.

  Cyber security

Some organizations prohibit workers from bringing certain kinds of devices into the workplace, such as cameras, cell phones, and USB drives.

  Basic constructs of ensemble model

Name the basic constructs of an ensemble model. What are the advantages and disadvantages of ensemble models?

  Describe at least two different ways to represent the pieces

For each of the following, describe at least two different ways to represent the pieces of information as a collection of bits:-

  Calculate the net cash flows and the npv

Costs increase by 5% annually. Revenues increase by 7% annually. The cost of capital is 10%. Calculate the net cash flows and the NPV.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd