Question: Linux Command Questions 1. What is the command that you issue if you are in your home directory and want to copy all files and

Linux Command Questions

1. What is the command that you issue if you are in your home directory and want to copy all files and directories under /directory1 to directory / directory2?

2. How to change the name of the file oldhosts to newhosts? How to change the permissions of the file oldhosts such that other users can read but not write to it? And then what is the command to Find Files with 777 Permissions?

3. Lets say that you have an entire folder full of music files in a bunch of different formats. You want to find all the *.mp3 files from the artist JayZ, but you dont want any of the remixed tracks. What will you do for it?

4. Count the number of files in your home directory which are not readable. (Hint: using script)

5. Display the longest and shortest usernames on the system (You should have at least three account on your Linux. Usernames are in the first field in /etc/passwd). (Hint: using script)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!