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
Step: 1
Get Instant Access to Expert-Tailored 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