Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The characters *, ?, [, and ] have special meaning in Unix. They can either be used on the command line to expand path names,

The characters "*", "?", "[", and "]" have special meaning in Unix. They can either be used on the command line to expand path names, or to construct regular expressions for utilities like grep. Like most everything else in Unix there are man pages that describe their use in detail. Give the 2 man pages that describe them. Your answer should give the command name and its section, such as in this example:

ls(1) passwd(5) 

where section 1 of the manual has a page on the ls command, and section 5 has a page on the passwd file format.

Now perform the following tasks:

  1. Create a new directory "assignmentFour".
  2. Make "assignmentFour" your current directory.
  3. Create a new empty file "fileOne".
  4. Redirect the output of the "ls -a" command to a file called "lsfile".
  5. Display the contents of the "lsfile" file.
  6. Redirect the output of the "date" command to the "lsfile" file.
  7. Display the contents of the "lsfile" file.
  8. Append the output of the "w" command to the "lsfile" file.
  9. Display the contents of the file "lsfile".
  10. Use pipe(s) with the ps and wc (with option -l) commands to find out how many processes you are currently running.
  11. Use pipe(s) with the ps (with options -ef) and wc commands to find out how many processes are currently running on the entire system.

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

=+2. Would you like to work for someone like Cameron Mitchell? Why?

Answered: 1 week ago