Question
1. Give one mkdir command to create a directory named Unit5 with subdirectories named reports , memos , backups , and keepsakes 2. Organize the
1. Give one mkdir command to create a directory named Unit5 with subdirectories named reports, memos, backups, and keepsakes
2. Organize the new files as follows
a.Copy all the files that end in keep to the keepsakes directory
b.Move all the report files to the reports directory
c.Move all the memo files to the memos directory
d.Use filename expansion to remove all versions of reminders 1 and 2.
e. Use filename expansion to copy the fourth version of the old files to the backups directory
4.Display all files in the Unit5 directory tree $ ls -R Unit5
5.Use redirection to append the date to the end of the ls.out file
6.Redirect error messages
a. Use the grep R option to list each occurrence of student in all the files that you have read access to in the /etc directory and its subdirectories. $ grep -R student /etc
b. Modify the preceding grep command so that it redirects Permission denied errors to the null device. (Tip: Most utilities send error messages to standard error.)
c.Instead of listing each line in each file that contains student, list only the filenames of files (that you have read access to) in the /etc directory hierarchy that contains at least one line with student
The ls l /bin command might have scrolled off the screen. Run the command again and display the output one screen at a time. (Tip: Use a pipeline and less)
Provide a single-line command to save the output of the command ls l /bin into the file lsbin while displaying on the screen one full screen at a time
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