Reference no: EM133268194
Assignment:
Question 1. What command/expression would you use to display a file in your current directory called "invoices" with all alphabetical letters shown in uppercase?
Question 2. What command/expression would you use to sort a file in your current directory called "numbers" and save the result in a new file named "sorted_numbers" in the same directory?
Question 3. Convert decimal 33 to octal.
Question 4. What command/expression would you use to display your current directory?
Question 5. What command/expression would you use to display the last five lines of a file called "marks" in your HOME directory (use the shell placeholder for your HOME)?
Question 6. If the bits stored in a file for its modes of access were:
111101001
What would the octal representation be of those modes?
Question 7. What command/expression would you use to give yourself execute permission on a file called "run" in your current directory, using GNU style arguments (not octal arguments)?
Question 8. What does BASH stand for?
Question 9. What command/expression would you use to display the number of lines in a file called "scores.dat" in a subdirectory of your HOME called "stuff"? Use the shell placeholder for your home.
Question 10. What command/expression would you use to rename your file "run" to "ran" in your current directory?
Question 11. Convert decimal 33 to binary.
Question 12. What command/expression would you use to list all your files in your current directory with the extenion .c?
Question 13. What command/expression would you use to search a file called "data" in your HOME directory, for all mentions of the name "Jones"? Use the shell variable for HOME.
Question 14. What command/expression would you use to remove a subdirectory of your current directory named "pictures", assuming it's empty?
Question 15. Convert decimal 33 to hexadecimal.
Question 16. What command/expression would you use to display only column 3 of a file called "students.txt" in the scratch (/tmp) directory?
Question 17. What command/expression would you use to display the monthly calendar for October 2022?
Question 18. What is the exact output of the command/expression "echo $((2**4))"?