subject

Write the code for one of the following customized commands: 1. shell*: the environment that will execute the rest of nee command, the shell won't terminate unless the exit command gets executed. The shell displays a different command prompt (i. e. something other than $ and >). 2. tree*: this new command will create a directory and call it Diro. Then it will change the working directory to Diro, and create three empty text files namely; t1.txt, t2.txt, and t3.txt, and one empty directory, called Dir1, inside it. 3. list*: this new command will clear the terminal screen and print a detailed list of all content of the current directory (similar to ls -1) to the terminal and t1.txt. Finally, it will change the name of text file to tree. txt. 4. path*: this new command will print the path of the current directory to the terminal and t2.txt, and change the name of text file to path-info. txt. Concatenate the content of tree. txt and path. txt into t3.txt and change the last to log. txt. Finally, delete tree and path text files 5. exit*: this new command will print a list the last 4 commands to the terminal, a detailed list of all content of the current directory (similar to ls -1). Finally, it will wait for the user to hit the "return" key to terminate the shell and return the control to the original shell program on your machine.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag.e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
How do i change the size of my bookmarks in my bookmarks bar in google chrome? ? plz hlp me
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
Ican’t open these when it’s just a comment. someone pls explain why this is happening
Answers: 1
You know the right answer?
Write the code for one of the following customized commands: 1. shell*: the environment that will ex...
Questions
Questions on the website: 13722359