Question: Linux Command: 1)Create a file called myscript and make it executable to everyone 2)Now you have a runnable script file, myscript. Execute it and print

Linux Command:

1)Create a file called "myscript" and make it executable to everyone

2)Now you have a runnable script file, "myscript." Execute it and print all output into afile called "result.txt"

3)Assume you are not in the root directory. Move the "result.txt" to the current parent directory.

4)Count the number of files (including hidden files) in your current working directory [NOTE: hidden files are files that begin with a dot (.)]

5)Download the webpage "www.cs.stonybrook.edu" and place it in your home directory

6)From the home directory, find and display all files that is named "myfile"

7)Your current working directory contains a file called "testfile." On the console, show all lines from the file if the line contains "test" (case insensitive).

8)The process with an id number 13572 is in a zombie state (e.g. taking up resources but is not doing useful working). Stop the process from running.

9)Create a directory called "temp" in the root directory.

10)After "temp" is created, you added 2 more files: fileA and fileB. Now, delete the "temp" directory along with the files. Assume current working directory is root.

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!