How could you move all the files that end with an extension


Answer all the following questions:

Question 1: How could you copy all the files from the current directory to its parent directory?

Question 2: How could you move all the files that end with an extension *.h in your home directory to the current directory without knowing the full path to the current directory [Hint: use a shortcut for the home directory and current directory.

Question 3: Write a command sequence to make a directory called 'backup' underneath the current directory, then copy all the files in the current directory to "backup"

Question 4: Write a single command to delete the 'backup' subdirectory of the current directory and all of the files underneath 'backup'.

Question 5: Write a Unix/Linux command to check if the string "main" appeared in a file 'hello.cpp' (assuming 'hello.cpp' was in the current working directory). Try this out on your hello.cpp file that you wrote earlier.

Question 6: If a program becomes unresponsive, what Linux command could you use to kill it?

Solve these questions in details and provide the commands.

Request for Solution File

Ask an Expert for Answer!!
Operating System: How could you move all the files that end with an extension
Reference No:- TGS0951353

Expected delivery within 24 Hours