Command line tools Flashcards

1
Q

copy files from the command line in Linux. Copy files by moving them from one location to another such as from one drive to another.

A

cp.

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

copy files with options and control over how to copy files and directories

A

xcopy

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

copy files, including subdirectories that contain content when copying files

A

xcopy /s

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

protect larger files while copying

A

xcopy /j

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

copy

A

copy

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

what command would I use when a hard driver is beginning to fail, the issue is purely mechanical, and I need to copy all the files to another drive without buffering and protect the larger files?

A

xcopy /j

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

how would I copy files with more commands then xcopy, including commands for moving secure files?

A

robocopy

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

what copies files with security?

A

robocopy /sec

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

what would I use if I needed to move files from one place to another with a security intact?

A

robocopy /sec

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

what is an example of a switch in a command?

A

/x, specify the command with /*

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

what commands are used to troubleshot and perform tasks on a computer’s disc file system and drives

A

disk management

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

what command checks both the file system and its metadata for physical and logical errors?

A

chkdsk,
fsck: Linux

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

we command checks the drive and repairs any issues?

A

chkdsk /f

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

what command would I use if a computer has problems opening files and is not bringing up apps and programs in order to scan the drive and display the status of the disk, find problem sectors in it, and then repair the drive?

A

chkdsk, chkdsk /f switch to repair the drive

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

what command checks the system for corrupted files and looks for cached copies of the files to try to repair them?

A

sfc

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

what command I use if a computer is having problems running and displaying error warnings and periodically shutting down to look for and fix corrupted files before taking any further steps? displays the first ten lines of the patches.txt file

A

sfc

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

resets the drive in erases all the data only putting in data needed to operate the disk

A

format

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

what command would I use if a user’s been trying to start a computer but it won’t consistently start, when it does go on it doesn’t stay on long enough to perform tasks, there may be a virus, bad sectors, a number of problems. I explain to the user all data will be erased, get permission from the user, format the drives, reinstall the operating system, and check if it starts up with a newly formatted disk?

A

format

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

divide a hard drive into separate partitions that act like discs

A

diskpart, Linux: fdisk

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

what command would I use if a user wants to have windows running to be compatible with work computers but also have the ability to run Linux? create a partition for each in the computer can no start as a windows computer or a Linux computer depending on the user needs

A

diskpart, Linus: fdisk

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

tool that shuts down the local computer or other computers on the network

A

shutdown, linux: shutdown

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

reboots the computer into the firmware interface after shutdown

A

shutdown /fw

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

what command would I use if a company decides to shut down all computers on the internal network for routine maintenance

A

shutdown

24
Q

displays the current version of windows

A

winver

25
Q

command I need to use if a new administrator needs information on which version of windows is being used on company computers

A

winver

26
Q

command displays the current network configuration information

A

ipconfig, Linux: later version: ip
linux, older: ipconfig

27
Q

display full configuration information for all adapters

A

ipconfig /all

28
Q

command what I need to use if a user’s computer can’t connect to the internet in order to check the status of the connection so I can see if the computer is communicating with the DHCP server?

A

ipconfig, ipconfig /all

29
Q

command I would use to check the status of a connection to an address or the server speed of the connection determinative a website or router is running slow

A

ping

30
Q

command I would use if a user is successfully connected to a website but it is slow, to find out why it is slow, check the router, check the website, see who is the problem.

A

ping

31
Q

command that sends out a request to each of the routers on the path to the destination, checks the packets from each router for loss and latency, uses the information to determine where the packet loss is happening

A

pathping

32
Q

command I would use if in admin notices problems with a network and runs this to check each of the routers on the path, may discover if a router needs repair replacement if it is losing more packets than others.

A

pathping

33
Q

command that traces the root of a packet of data from the user’s source computer to the destination system

A

tracert, LInux: traceroute, Mac: traceroute

34
Q

what command would I need to use if I noticed packets of information on arriving at their destinations to find out wherein their routes packets are lost?

A

tracert

35
Q

what displays the name of one device on a network

A

hostname

36
Q

what command would I use if I need to find the names of multiple computers on a local network to find the system names?

A

hostname

37
Q

what commands let you copy files from the command line

A

copy, (cp in linux), xcopy, robocopy,

38
Q

etc commands are used to troubleshoot and perform tasks on a computer’s disc file system and drives

A

chkdsk, sfc, format, diskpart

39
Q

what commands are helpful tools for an administrator to troubleshoot and gather information about a computer system

A

shutdown, winver

40
Q

look commands help gather information about a network I might need to troubleshot and solve issues

A

ipconfig, ping, pathping, tracert, hostname,

41
Q

what commands give an it administrator information about network activity and user statistics also have in commands that diagnosed network issues?

A

netstat, nslookup, net user, net use

42
Q

command displays statistics about network activity and configuration like user information about passive and active sockets

A

netstat

43
Q

look command what an it administrator us if they need to know what sockets are active and how many there are

A

netstat

44
Q

obtain DNS record information by sending queries to the domain named server

A

nslookup

45
Q

command I would use if I needed to find information from DNS properties, so I’d use this tool with the set all parameters and find the current configuration settings for the computers domain name server properties?

A

nslookup

46
Q

add or modifies user accounts or display user account information

A

net user

47
Q

command I would use if a computer in the company which allows external users access from other computers is having problems. huge amounts of files start appearing on the computer including large photo files and other odd files. I can find affairs an account active for a recently terminated employee, and then and then use the /delete switch to delete the user account

A

net user

48
Q

disconnects a computer farm a shared resource and displays a list of network connections

A

net use

49
Q

command I would use if I need to remove a shared resource from a computer. check all the computers connected to the resource, find the one that needs to be removed, and use the /delete switch to remove the connection from the computer

A

net use

50
Q

What commands are used to display and update group policies

A

gpupdate, gpresult,

51
Q

update group policy settings

A

gpupdate

52
Q

what command would I use if a company hires me as a professional after having done everything on their own, I find that everyone in the organization has access to a delicate part, and to prevent problems I update the group policy to restrict access to that part of the system

A

gpupdate

53
Q

display the resultant set of policy for a system, RSop

A

gpresult

54
Q

what command would I use if I need to examine the RSoP policy already in place, to find an access weakness that needs to be updated?

A

gpresult

55
Q
A