Answered step by step
Verified Expert Solution
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.
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 belowStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started