Managing Files Flashcards

1
Q

What does the /a switch used with the copy command indicate?

A

That the files is an ASCII text file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which command lets you delete subdirectories in addition to files in the current directory

  • rd/s
  • rd/f
  • rd/q
  • rd/a
A

rd/s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which command would you use to copy all files in a directory, including all sub directories (as well as empty ones)

  • copy/v
  • xcopy/e
  • xcopy/s
  • copy/n
A

xcopy/e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A user needs to copy a file from an NTFS partition to a FAT32 partition. The file has NTFS permissions and the following attributes: Read only (R) and Encryption. When the folder is copied, which of the following is true?

  • None of the NTFS permissions or attributes are retained on the file
  • The R and encryption attribute are retained on the file
  • The R attribute is retailed on the file
  • The attributes and NTFS permissions are retained not the file
  • Only the NTFS permissions are retained on the file
A

-The R attribute is retailed on the file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following file extension types can be run from the command prompt? (select three)

  • .bat
  • .exe
  • .com
  • .dil
  • .sys
A

.bat
.exe
.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You are working at the command line and want to add the Read-only attribute to a file and remove the Hidden attribute. Which command would you use

  • attrib +r -h
  • attrib add r remove H
  • attrib +ro -h
  • attrib /add r /remove /h
A

-attrib +r -h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can you see a list of valid switches for the CD command?

  • Type cd | more
  • Type cd help
  • Type cd list
  • Type cd /?
A

-Type cd /?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which file attribute identifies as having been modified since the last backup?

A

Archive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the /q switch with the rd command do?

  • Reverse a drive deletion
  • Will not prompt you to confirm deletions
  • Runs a query
  • Removes subdirectories in addition to files in the current directory
A

-Will not prompt you to confirm deletions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following file extensions indicates a Windows system file

.com
.vxd
.dil
.rtf

A

.vdx

.dil

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

You have a file which you would like others to use, but not modify. Which file attribute should you use?

A

R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the following command do? attrib +s +r -a myfile.dil

A

Adds the systems file attribute, adds read only attribute, and removes the Archive attribute to the file myfile.dil

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which of the following extensions identifies a program packaged for use by windows installer?

A

.msi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which command would you use to change the current directory to the immediate parent directory

A

cd..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

You want to set the encryption attribute for the C:\payrol.xls file. What should you do?

A

Edit the properties of the file in windows explorer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which of the following file extensions indicate a program file type?

.mp3
.jpg
.vxd
.com
.exe
A

.com

.exe

17
Q

Which option used with the copy command makes sure that all copied files are written correctly after they have been copied

/v
/n
/a
/y

A

/v

18
Q

Which commands can you use to create a new directory

cd
mkdir
rd
newdir
md
A

mkdir

md

19
Q

How do you set file attributes

A

Use attrib command

Right-click the file, then select properties

20
Q

You need to copy several hundred files from one directory to another. Most of the files exists in the target directory, but you want to overwrite the existing files with the ones you will copy. You want the file copy to proceed automatically without prompting you to overwrite existing files. Which copy command switch should you use?

/a
/y
/o
/v

A

/y