Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
Write the Bash code for the requested operations, or answer the questions. Use the man pages to learn about commands. 1. Create a hidden file
Write the Bash code for the requested operations, or answer the questions. Use the man pages to learn about commands. 1. Create a hidden file 2. Does it matter if you put more than one whitespace before the beginning of a command, or in between command arguments? 3. List all non-hidden files in the root directory with long details 4. List all files in the current directory including the hidden ones 5. List all non-hidden files in the current directory by sorting by modification time 6. List all non-hidden files in the current directory by showing one file per line (without long details) 7. List all non-hidden files in the current directory by putting directories first 8. Create a directory, and two files in it; copy that directory to another one with the same name followed by -2 9. If you create a file and then copy it, is the timestamp of the copied file the same as the original file? Is it possible to preserve the timestamp of the original file? If so, what is the command? 10. Consider a file owned by root, such as /etc/profile (check it with ls -1) Can this file be copied by your user? Can this file be moved by your user? Explain your answers by considering the file permissions. 11. When you rename a file, does the timestamp of the file change? Does the timestamp of the containing directory change? 12. Create a file and two directories. Copy it from command line to the created directory. 13. Create a file. Change its permissions so that the group has write access 14. Create a file. Can you change the owner of the file to root without being root? 15. Define a new command at your choice by creating an alias 16. How do you clear the list of commands generated by history
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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