Answered step by step
Verified Expert Solution
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.
- 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:
-
Lec*
-
file??.pdf
-
[abc]_sample.?
-
[A-Z,a-z][0-9].mp3
-
[bf][ao][ro].mp?
-
-
Determine how many accounts in the /etc/passwd file have /usr/bin/bash as their shell. (Hint: Use grep and wc)
- Using ps Determine how many instances of bashare running on the current machine (across all users). (Hint: Use ps aef and wc)
- 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).
- Try running ls al and then ls al *
- what is the difference?
- what is the wildcard * bringing in?
- To issue multiple commands in one line, you can separate the commands with a: ______
- Show me a line with multiple commands.
- How would you print My favorite file is /etc/passwd
- Use the find command to display all files in /etc directory that ends with .conf
- Use find to display all files from root which have write permissions for all (user, group, other)
- Use the mancommand to find the meaning of the options of the find command listed below:
- inum
- links
- What is the difference between atime and mtime options in find
Step 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