Question

In: Computer Science

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 a clear screen using the MORE command.

D)  What is the command to append the contents of the file named STEVEN.FIL to the file called CASES.FIL Both files are on the root directory of drive A:

E) Create a subdirectory under the HOMEWORK directory called CIT-40

F) Copy the file called NAME.NEW from the \TEMP directory into the \HOMEWORK\CIT-40 subdirectory

Solutions

Expert Solution

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:\>

Answer: diskpart command: The diskpart command interpreter helps you manage your computer's drives (disks, partitions, volumes, or virtual hard disks).this command used for to display all of the files on the disk in drive.Before you can use diskpart commands, you must first list, and then select an object to give it focus. After an object has focus, any diskpart commands that you type will act on that object.

List Available objects

  • list disk - Displays all the disks on the computer.

  • list volume - Displays all the volumes on the computer.

  • list partition - Displays the partitions on the disk that has focus on the computer.

  • list vdisk - Displays all the virtual disks on the computer.

Syntax: diskpart <parameter>

How To Use Diskpart

If you want to use Diskpart, you need to open up a Windows command line or PowerShell terminal. Diskpart is a destructive tool, so you’ll need to open a terminal window with the right administrative privileges.

  • To open Diskpart in Windows, right-click your Windows Start menu button and click Windows PowerShell (Admin).
  • In your admin-level PowerShell terminal (or similar Windows command line), type diskpart and hit enter.
  • The Diskpart tool will launch within the window, ready for you to use. Type exit at the “DISKPART>” prompt and hit enter once you’ve finished using it.
  • Diskpart is also available for users booting into the Windows Recovery Environment, available when you boot your PC using the Advanced Startup mode in your Settings > Windows Update & Security > Recovery menu.
  • Click Restart Now to boot to WinRE.

List All Files on the disk:

1.Click the Windows Start button and type "cmd" in the Start menu's search box. Click "cmd.exe" in the list that appears to open the Command window.

2.Type the "cd" command, followed by "/" to tell the Command window to switch to your hard drive's root drive. This is usually the "C" drive.

If you would like to list the files on another drive, type that drive's drive letter followed by a colon and press "Enter." To switch to your "E" drive, type the following:

E:

3.Type the "tree" command with the "/f" switch -- to display file names -- and the "/a" switch -- to use plain text -- followed by the name of the file where you would like to store the file listing into the window:

tree /f /a > myFile.txt

Press "Enter."

4.Specify the exact location of the file instead if you wish. If you would like to store the listing in a file named All_Files.txt in a folder named Listings on your C drive, the command would appear as listed below:

tree /f /a > C:\Listing\All_Files.txt

Press "Enter."

b) Display the contents of the PERSONAL.FIL file located in the root directory of drive A:

Answer:

1.Press "Win-E" to open Windows Explorer. The "Win" key is depicted with a Microsoft Windows symbol and may also contain the word "Start."

2.Click "Organize" from the toolbar and select "Folder and Search Options."

3.Click the "View" tab.

4.Click "Show Hidden Files, Folders, and Drives" from the Hidden Files and Folders list.

5.Uncheck "Hide Protected Operating System Files (Recommended)." As soon as you do, a window pops up warning you not to delete or edit system files and asks you if you really want to display these files. Click "Yes," but heed the warning.

6.Click "OK" to apply the setting changes and exit the window.

7.Double-click the hard drive under the right panel's Hard Disk Drives list. For your system drive, double-click the "C" drive. You should now see all the files and folders in the root folder of your hard drive.


Related Solutions

Demonstrate creating, moving, and copying files from the Windows command line. (Document with steps and screenshots.)
Demonstrate creating, moving, and copying files from the Windows command line. (Document with steps and screenshots.)
Explain what Windows prefetch files are.
Explain what Windows prefetch files are.
Linux 1. Give a command line (one command) for displaying the files lab1, lab2, lab3, and...
Linux 1. Give a command line (one command) for displaying the files lab1, lab2, lab3, and lab4. Can you give another command lines that do the same thing by making use of the file name similarities? What is the command line for displaying the files lab1.c, lab2.c, lab3.c, and lab4.c? (Hint: use shell metacharacters.) 2. How to determine the number of users who are logged on to Linux server system at this time? What command did you use to discover...
Can the following PCs be migrated from a windows XP and windows 7 operating system to...
Can the following PCs be migrated from a windows XP and windows 7 operating system to a cloud-based operating system? Justify your answer explaining the steps required for the migration and the hardware requirements needed to upgrade. Explain why you have chosen a cloud-based operating system as compared to the Windows 10 operating system. 3500 Desktop PC’s (1GHZ CPU, 2GB RAM, 16GB HDD) 4500 Desktop PC’s (1.4GHZ CPU, 4GB RAM, 1TB HDD) 3000 Desktop PC’s (2.4GHZ CPU, 8 GB RAM,...
Research the Windows PowerShell commands for manipulating the firewall and construct a command that lists all...
Research the Windows PowerShell commands for manipulating the firewall and construct a command that lists all the firewall rules on a system with the output containing the information and headers below: Rule name TCP port Enabled
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...
When upgrading from windows XP to windows 10 with the following laptops specs: o 2500 Desktop...
When upgrading from windows XP to windows 10 with the following laptops specs: o 2500 Desktop PC’s (1GHZ CPU, 2GB RAM, 16GB HDD) o 1500 Desktop PC’s (1.4GHZ CPU, 4GB RAM, 1TB HDD) o 1000 Desktop PC’s (2.4GHZ CPU, 8 GB RAM, 128GB HDD Explain which hardware would be required and why windows 10 is more desirable compared to other operating systems. Use the specifications above to justify your answer and provide justifications for any upgrades.
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...
                      Contact Manager COMMAND MENU ---------------------------------------------------------- list - Display all contacts view - View
                      Contact Manager COMMAND MENU ---------------------------------------------------------- list - Display all contacts view - View a contact add - Add a contact del - Delete a contact exit - Exit program Command: list 1. Tom van Rossum 2. Edward Idle Command: view Number: 2 Name: Edward Idle Email: [email protected] Phone: +44 20 7946 0958 Command: add Name: John Smith Email: [email protected] Phone: 559-123-4567 John Smith was added. Command: list 1. Tom van Rossum 2. Edward Idle 3. John Smith Command: exit...
Display and store a long listing of all the regular files and directories in /personal_files. Store...
Display and store a long listing of all the regular files and directories in /personal_files. Store the output in a file called mypersonalfiles. UNIX
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT