100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Chapter 4-6 Questions and Answers $12.99   Add to cart

Exam (elaborations)

Chapter 4-6 Questions and Answers

 6 views  0 purchase
  • Course
  • Wrt
  • Institution
  • Wrt

Chapter 4-6 Questions and Answers choose all of the following that are true statements -using wildcards makes it possible to construct sophisticated selection criteria for filenames -wildcards can be used with any command that accepts filenames as arguments -wildcards are especially valuable no...

[Show more]

Preview 2 out of 5  pages

  • October 20, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Wrt
  • Wrt
avatar-seller
Pogba119
Chapter 4-6 Questions and Answers
choose all of the following that are true statements - answer -using wildcards makes
it possible to construct sophisticated selection criteria for filenames
-wildcards can be used with any command that accepts filenames as arguments
-wildcards are especially valuable not only because they are used so frequently on the
command line, but because they are also supported by some graphical file managers

match the command examples with the results - answer -mv file1 file2 dir1: move
file1 and file2 into directory dir1. dir1 must already exist
-mv file1 file2 dir1: move file1 and file2 into directory 2 into dir1. dir1 must already exist
-mv file1 file2: move file1 to file2. if file2 exists, it is overwritten with the contents of file1.
if file2 does not exist, it is created. in either case, file1 ceases to exist
-cp dir1/* dir2: using a wildcard, all the files in dir1 are copied into dir2, dir2 must already
exist
-cp file1 file2 dir1: copy file1 and file2 into directory dir1. dir1 must already exist
-cp file1 file2: copy file1 to file2. if file2 exists, it is overwritten with the contents of file1. if
file2 does not exist it is created
-mkdir dir1 dir2 dir3: creates three directories named "dir1" "dir2" and "dir3"
-rm -r file1 dir1: delete file1 and dir1 and its contents
-rm -rf file1 dir1: delete file1 and dir1 and its contents, except that if either file1 or dir1 do
not exist, rm will continue silently
-ln -s item link: create a symbolic link where "item" is either a file or a directory

choose all of the following that are true statemens, w.r.t. the commands used on our
vbitbus.tcc.edu system - answer -the "copy" command copies files or directories
-the "mkdir" command is used to create directories****
-the "move" command performs both file moving and file renaming, depending on how it
is used. in either case, the original filename always still exists after the operation
-the "remove" command is used to remove (delete) files and directories

with a file manager, we can drag and drop a file from one directory to another, cut and
paste files, delete files and so on. so why use these old command line programs? -
answer for power and flexibility

match the commands with the tasks performed. no partial credit. take your time. use
your book - answer -cp: copy files and directories
-mv: move/rename files and directories
-mkdir: create directories
-rm: remove files and directories
-ln: create hard and symbolic links
-pwd: print name of current working directory
-cd: change directory
-ls: list directory contents

, -file: determine file type
-less: view file contents

choose all of the following that are true statements - answer -a hard link is
indistinguishable from the file itself
-a hard link may not reference a directory
-a hard link cannot reference a file that is not on the same disk partition as the link itself
- a hard link cannot reference a file outside its own file system

match the wildcards with their meaning - answer -*: matches any characters
-?: matches any single character
-[characters]: matches any character that is a member of the set characters
-[!characters]: matches any character that is not a member of the set characters
-[[:class:]]: matches any character that is a member of the specified class
-[:alnum:]: matches any alphanumeric character
-[:alpha:]: matches any alphabetic character
-[:digit:]: matches any numeral
-[:lower:]-matches any lowercase letter
-[:upper:]- matches any uppercase letter

choose all of the following that are not true statements - answer hard links have no
important limitations

choose all of the following that are true statements - answer -symbolic links were
created to overcome the limitations of hard links
-unlike a symbolic link, when we list a directory containing a hard link we will see no
special indication of the link
- when a hard link is deleted, the link is removed but the contents of the file itself
continue to exist

match the command with the best description - answer -cat: concentrate files
-sort: sort lines of text
-uniq: report or omit repeated lines
-grep: print lines matching a pattern
-wc: print newline, word, and byte counts for each file
-head: output the first part of the file
-tail: output the last part of the file
-tee: read from standard input and write to standard output and files
- show: not a valid command
-last: show listing of last logged in user

choose all of the following that are true statements - answer -i/o redirection allows us
to change where output goes
-programs take input from a facility called standard input (stdin), which is, by default,
attached to the keyboard
- i/o redirection allows us to change where input comes from

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Pogba119. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67163 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.99
  • (0)
  Add to cart