Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please make sure that you type in the command as it is from your unix shell or just capture a screen shot and paste it

Please make sure that you type in the command "as it is" from your unix shell or just capture a screen shot and paste it in your homework file.

  • No command should be written without being tested.
  • No command should be typed in starting with uppercase letter.

  1. Give 3 examples of what file names would match the following pattern and give me 3 examples of what file names would not match the following patterns:
    1. Lec*
    2. file??.pdf
    3. [abc]_sample.?
    4. [A-Z,a-z][0-9].mp3
    5. [bf][ao][ro].mp?

  1. Determine how many accounts in the /etc/passwd file have /usr/bin/bash as their shell. (Hint: Use grep and wc)

  2. Using ps Determine how many instances of bashare running on the current machine (across all users). (Hint: Use ps aef and wc)
  3. Using redirection, how would you create a file that contains the list of users currently logged in. (Hint: Use w, cut and redirection >. You will need to read up on w to use the right options).
  4. Try running ls al and then ls al *
    1. what is the difference?
    2. what is the wildcard * bringing in?
  5. To issue multiple commands in one line, you can separate the commands with a: ______
    1. Show me a line with multiple commands.
  6. How would you print My favorite file is /etc/passwd
  7. Use the find command to display all files in /etc directory that ends with .conf
  8. Use find to display all files from root which have write permissions for all (user, group, other)
  9. Use the mancommand to find the meaning of the options of the find command listed below:
    1. inum
    2. links
  10. What is the difference between atime and mtime options in find

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago

Question

Were all members comfortable brainstorming in front of each other?

Answered: 1 week ago

Question

4. What will the team agreement contain?

Answered: 1 week ago