Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Linux system to sove the following question. 1. [5] What command will show you which groups you are a member of? 2. [51

Please use Linux system to sove the following question.

image text in transcribed

image text in transcribed

image text in transcribed

1. [5] What command will show you which groups you are a member of? 2. [51 What does the variable "$?" show? 3. [5] What command will find all files with suffix txt in the subtree /foo/bar? 4. [5] With what command (and arguments) can you find out your kernel version and the "nodename"? [The output should not include any other information] 5. [5] What is the difference between the paths and"? What does the path "" refer to when not preceded by anything? [5] Which command would you use to find the "pid" for a running process? [10] Write a single command that will return every username in the system in alphabetical order. [You may chain commands using piping and redirects [10] What is the difference between "sudo" and "su root"? [10] How would you make a program or script execute on a schedule or set interval? E.g. Run this program once every 30 minutes or every day at midnight. 6. 7. 8. 9. 10. [40] Write a shell script that only prints the odd numbered lines of each file in the current directory, except for the script itself. The output should be filename: line for each odd numbered line. You do not need to print line numbers. [10] Bonus: write the script in a way that it works no matter thefilename given to the script. For example, let's say I write a script in a file called test.sh. I then create 3 files, as shown in the screenshot below

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

Explain the importance of Human Resource Management

Answered: 1 week ago

Question

Discuss the scope of Human Resource Management

Answered: 1 week ago

Question

Discuss the different types of leadership

Answered: 1 week ago

Question

Write a note on Organisation manuals

Answered: 1 week ago

Question

Define Scientific Management

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago