Question

In: Computer Science

1, If we want to display output from a command, such as DIR or TYPE, one...

1, If we want to display output from a command, such as DIR or TYPE, one screen at a time, we can use what kind of command?

> MORE

| PAGE

| MORE

>> PAGE

2, To delete a directory that contains subdirectories and/or files, we will use what command:

DEL directory name /S

MD directory name /S

RD directory name /S

RMDIR directory name

3, When we are using certain tools (e.g. WMIC, DISKPART, and NETSH) in the Interactive Mode, most of the internal Command Prompt commands, such as CLS and CD, would not work. However, which command will work?

BYE

EXIT

| MORE

START

4, When we use this command in a batch file, the user must pick from the available options because Command Prompt won't let s/he pick anything else:

CHOICE

IF ELSE

FOR

SET

Solutions

Expert Solution

1st Answer:

To display output from a command, such as DIR or TYPE, one screen at a time We use >more command.

2nd Answer:

To delete a directory that contains subdirectories and/or files, we will use RD directory name /S Command.

Where,

RD = remove (delete) a directory.

directory name = The name of the directory which you want to delete.

/S = removes all directories and files in the specified directory and directory itself.

3rd Answer:

When we are using certain tools (e.g. WMIC, DISKPART, and NETSH) in the Interactive Mode, most of the internal Command Prompt commands, such as CLS and CD, would not work. In that case, we use the EXIT (exits the shell where it is currently running)command.

4th Answer:

SET is the command used in a batch file where the user must pick from the available options because Command Prompt won't let the user pick anything else.


Related Solutions

I want the program to use 1- D array and display a table as output. Write...
I want the program to use 1- D array and display a table as output. Write a script to simulate the rolling of two dice. The script should use Math.random to roll the first die and again to roll the second die. The sum of the two values should then be calculated. [Note: Since each die can show an integer value from 1 to 6, the sum of the values will vary from 2 to 12, with 7 being the...
Using Linux in VirtualBox To display your system date: Type date in the command line, and...
Using Linux in VirtualBox To display your system date: Type date in the command line, and press Enter. What do you see?                                            You might see the abbreviation EDT (Eastern Daylight Time) instead of EST (Eastern Standard Time), or another time zone abbreviation, such as MDT (Mountain Daylight Time) or CST (Central Standard Time). Notice also that UNIX/Linux uses a 24-hour clock. Type Date in the command line, and press Enter. What error do you see?                                    The system error...
Windows XP Command Line questions. a) What is the command to display all of the files...
Windows XP Command Line questions. a) What is the command to display all of the files on the disk in drive A:--do not use the DIR command or the CHKDSK command C:\> b) Display the contents of the PERSONAL.FIL file located in the root directory of drive A: one screenful at a time C) Display the contents of the PERSONAL.FIL file located in the root directory of drive A:, one screenful at a time, beginning with the 25th record, on...
1. Write a bash command that will display the value of all environment variables defined in...
1. Write a bash command that will display the value of all environment variables defined in your shell process, sorted in alphabetical order, and numbered. Here is a sample of the type of output your command should produce: 1 } 2 ALSA_CONFIG_PATH=/etc/alsa-pulse.conf 3 AUDIODRIVER=pulseaudio 4 BASH_FUNC_mc%%=() { . /usr/share/mc/mc-wrapper.sh 5 COLORTERM=1 2. Write a bash command that will display the value (and only the value) of the JAVA_ROOT environment variable. Here is a sample of the type of output your...
Use the find command to find all directories under /pub/cs/ whose name is cs160a. Be sure to only display the results that match, do not display any error output.
Unix/Linux1)Use the find command to find all directories under /pub/cs/ whose name is cs160a. Be sure to only display the results that match, do not display any error output.Hint: use: 2>/dev/null.2)Create a one-line command, using he famous.dat file, to add the word " STREET" to the address, for all who live on 2nd or 3rd.For example: '2nd' becomes "2nd STREET" and '3rd' becomes "3rd STREET".Display only the first 9 lines.Hint: use 2 sed statements with pipes.3)Display all lines in famous.dat...
We decided that we need to specify the type of retirement income we want and make...
We decided that we need to specify the type of retirement income we want and make plans to accomplish our goal. Our goal is to plan for 25 years of retirement, at $150,000 per year, but we want to receive the $150,000 at the beginning of each year of our retirement. So, to reach our objective, for the next 30 years, we need to set aside the right amount of money as an annual constant contribution into a retirement fund...
Now we want to display which error was thrown in our voting program. Add the appropriate...
Now we want to display which error was thrown in our voting program. Add the appropriate code to the try/except statement so the exception is displayed. Run the program and, when prompted, enter the word 'old' so your output matches the output under Desired Output. # Set the variable age = input("What is your age?") # Insert a try/except statement # here when you convert the input # to a number using int() try: age = int(age) if age >=...
1. Show how to redirect the standard output of the date command to a file named...
1. Show how to redirect the standard output of the date command to a file named currentdate. 2. Continuing from the previous question: Show how to append the standard output of the who command to the file currentdate. 3. The password file (/etc/passwd) contains one line for each userid registered with the system. Show how to display the number of userids in the passwd file on the screen. 4. Employ a pipe to combine the who and the wc commands...
Here we will be taking data in as a file instead of from the command line...
Here we will be taking data in as a file instead of from the command line (no cin). Note that the sample file provided here is not the file that I will use to grade your assignment but the formatting will be the same. File input is very similar to how data comes in from the user through cin (using the same operators) but we will need to setup the stream ourselves. First we need to include <fstream> at the...
Here we will be taking data in as a file instead of from the command line...
Here we will be taking data in as a file instead of from the command line (no cin). Note that the sample file provided here is not the file that I will use to grade your assignment but the formatting will be the same. File input is very similar to how data comes in from the user through cin (using the same operators) but we will need to setup the stream ourselves. First we need to include <fstream> at the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT