1.2 Flashcards

1
Q

In what circumstances might you use the ipconfig/flushdns command ?

A

Clears the DNS cache to acces sites.
Or if you have security concerns

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

What does the hostname command do ?

A

Prints only the NetBios name of the PC

Try it on the command line now

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

What windows command should you use to find the name of a computer ?

A

Hostname

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

What command is used to see what ports are listening on the TCP/IP-based system ?

A

Netstat
-a shows all ports
/? shows other options

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

What can Netstat be useful for ?

A

Monitor traffic on ports for suspicious usage.

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

How do you exit from most command scenrios ?

A

ctrl + c

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

Open up Powershell and look at the different options for nslookup. Try quering and chaging around the Ipv4 to ipv6

A

Basically type nslookup and then help
https://www.youtube.com/watch?v=jf-x76XYY2o

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

What does CHKDSK do ?

A

Scans a disk in hopes of recovering corrupted files

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

What does the net user command do ?

A

Add, remove, and change user accounts.

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

What does the net use command do ?

A

Used to connect to a network share.

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

What does the tracert (traceroute) command do ?

A

Verify the path a network packet travels to its destination. I.e. returns a hop count.
https://www.youtube.com/watch?v=up3bcBLZS74

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

What is the difference between copy and xcopy ?

A

Xcopy is designed to copy directories as well as files.

https://www.youtube.com/watch?v=0q3rGK_IMZg

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

What are the benefits of ROBOCOPY

A

Keep NTFS permissions intact
Verifications and Speed

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

What does GPUpdate do?

A

Forces a device to update policies

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

What does the System File Checker command do ?

A

Verifies the versions of system files on your computer.

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

What does the diskpart command do ?

A

Partition management
Shows the partitions

https://www.youtube.com/watch?v=qH9PxrKMwCQ&t=14s

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

What does the winver command do ?

A

Shows which version of Windows is running.

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

Anything you put on the end of a command and a command line is known as…

A

A switch.

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

What Microsoft command will take you straight to the root directory ?

A

cd \

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

Whats the main subtle difference between the linux CLI and Winwdows CLI ?

A

Windows \
Linux /

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

What will this command do ?
Format e: /FS:NFTS

A

Format a drive calle ‘e’ and use the file system ‘fs’ type called NFTS

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

What does the chmod command do ?

A

Modifies linux permissions

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

What does the Chown command do ?

A

Enables root users to take control of any Linux file/folder

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

What does the tasklist command do ?

A

Lists all running proccesses

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

What does the task kill command do ?

A

Shuts down a task/programme

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

What does this command do ?
taskkill /PID 21104

A

It will kill the programme with a process ID (PID) 21104.

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

Open up the command prompt in admin mode and navigate your way to the user account associated with your PC

A

cd\users\jon_s

In Powershell spaces are important: cd \users\jon_s

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

Open up the cmd and make a directory called Temp1.
Verify then delete Temp 1.

A

Basically get into your users account then type the command: “md Temp1”. Verify with “dir”
To delete type “rd Temp1”. Verify with “dir”.

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

What windows command allows you to delete a file ?

A

Type “del filename”

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

How do wildcards work at the command prompt ?

A

You type a symbol in to account for multiple file names and will just refer to the file type extension at the end
Example “*.txt” will highlight all txt files regardles of the file name.

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

How would you go about deleting thousands of Jpeg files within a folder ?

A

“del *.jpeg”

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

What command would you need to copy a file called “jon.txt” to a removable drive labeled K ?

A

“Copy jon.txt k:” the result below should yield
“One file(s) copied”

33
Q

What wildcard allows you select all file types within a folder ?

A

. Splat dot splat.

34
Q

What does the format command do?

A

Wipes data off disks and installs a file system type.

35
Q

What is the difference between SFC and DISM ?

A

SFC check your local back up
DISM checks a known online version from Microsoft.

36
Q

What does the DISM command do ?

A

Download correct files from a good source.

37
Q

Why is the gpupdate command useful ?

A

Performs update without cycling through the login process.

38
Q

What does this command do ?
convert e: /FS:NTFS

A

It will ‘convert’ the drive labelled ‘e’s file system ‘FS’ to the type NTFS.

39
Q

What happens after a drive is formatted ?

A

The directory structured. You divide the partition into logical locations for storing data.

40
Q

What is resmon.exe and what does it do ?

A

Resource monitor.
Displays hardware/software info resources in real time.

41
Q

What is msinfo32.exe ?

A

System info

42
Q

What is msconfig.exe and what does it do ?

A

System config.
Helps troubleshot start up problems

43
Q

What is dfrgui.exe ?

A

Disk defrag

44
Q
  1. Open a command prompt by click Starting, typing cmd in the Open field, and clicking OK.
  2. Change to the root of your C: drive by typing cd /d C:\ and pressing Enter. Note: If you are already in C:, all you have to do is type cd \ and press Enter.
  3. Create a directory called C14 by typing md C14, press Enter.
  4. Change to the C14 directory,type cd C14 and press Enter.
  5. Create several layers of subdirectories at once. Type md A1\B2\C3\D4 and press Enter. You now have a directory structure that looks like this: C:\C14\A1\B2\C3\D4.
  6. Change back to your root directory by typing cd .
  7. Attempt to delete the C14 directory by typing rd C14 and pressing Enter. Windows won’t let you delete the directory because the directory is not empty. This is a safety measure. Now let’s really delete it.
  8. Delete the C14 directory and all of its subdirectories by typing rd /s C14 and pressing Enter. You will be asked whether you’re sure that you want to delete the directory.
  9. If you are, type Y and press Enter.
A
45
Q

What does the NSlookup command do ?

A

Show the current DNS server and IP addresses for provided name.

46
Q

Which of the network command-line tools enables obtaining an FQDN-to-IP address mapping?

A

nslookup

47
Q

Which Command Prompt utilities in MS Windows allows to verify the file system integrity and fix logical file system errors?

A

Chkdsk

48
Q

What does the sfc Command Prompt utility in MS Windows do ?

A

Checks a disk and displays a status report

49
Q

Which command-line commands in Windows can be used to display help information related to a specific utility?

A

command /?
help command

50
Q

Which netstat parameter allows to display all active TCP connections and the TCP/UDP ports on which the computer is listening?

A

-a

51
Q

Which netstat parameter displays addresses and port numbers in numerical form?

A

-n

52
Q

What does the /f switch of the chkdsk Command Prompt utility ?

A

Fixes errors on the disk

53
Q

What does the /r switch of the chkdsk command-line utility do ?

A

Locates bad sectors and recovers readable information and Fixes errors on the disk.

54
Q

Which copy command switch in Windows verifies that the new files are written correctly?

A

/v

55
Q

What command will allow you change a file system whilst reataining data on the drive ?

A

Convert.

56
Q

Describe where you are “C:\Windows\System32"

A

You are in the C drive, in a file called Windows and directory called System32.

57
Q

What command is used to delete folders should files not folders check this question ?

A

Del

58
Q

What command is used to delete folders ?

A

Rd

59
Q

What command is used to delete a directory ?

A

Rd

60
Q

What is tracert primarily used for ?

A

Used to determinte where the packet is being dropped.

61
Q

What two command is pathping made up of ?

A

Tracert and ping.

62
Q

What command is used to establish a connection to a shared resource/ network share?

A

Net Use

63
Q

What command can be used to add and delete computer accounts ?

A

Net Computer

64
Q

What command can be used to set network-related configuration ?

A

Net Config

65
Q

What command can be used to set account options, password age, length, and so on ?

A

Net Accounts

66
Q

What command is used to establish a connection to a shared resource?

A

Net Share

67
Q

Which switch is used with DEFRAG to determine the degree of fragmentation only?

A

The /A switch is used with DEFRAG to analyze the state of fragmentation without running the operation.

68
Q

Which switch is used with DEFRAG to print the progress of the operation on the screen?

A

The /U switch is used with DEFRAG to print the progress of the operation on the screen.

69
Q

In Windows at the cmd prompt, What options do you have to change directory ?

A

cd or chdir

70
Q

In Windows at the cmd prompt, What options do you have to make a directory ?

A

md or mkdir

71
Q

Give some benefits of Robocopy over Xcopy

A

Copying methods
Reliability
Speed
Error Handling

72
Q

What is the main difference between SFC and Chkdsk ?

A

Chkdsk will check file systems and hard drives.
Sfc will diagnose and repair system files that are essential for the Windows operating system to run properly.

73
Q

What does the -p switch do with mkdir ?

A

Allows sub folders to be created as well.

74
Q

What command helps you manage computer local drives ?

A

diskpart

75
Q

What command can be used to diagnose packet loss to a destination website ?

A

pathping

76
Q

What command can be used to verify a path a network packet travels to its destination ?

A

tracert

77
Q

What command is used to wipe data off of a disk ?

A

format

78
Q

What command copies files + folders to another location ?

A

Xcopy