Section 12 ch. 15 Working with the cli Flashcards

1
Q

What is the command in the CLI terminal to format a hard drive?

A

format and the hard drive letter and then the type of file system
Ex.- format C: /FS:NTFS

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

How what switch allows you to format a disk fast? and what would the full command look like?

A

the Q switch and it would be format C: /FS:NTFS /Q

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

what does chdsk do?

A

performs error correction on hard drives, scans the health of the disk, garbage collection,

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

What do (SFC) System file checker and (DISM) Deployment Image Servicing and Management do?

A

Take a look at the system storage, the backup files and check them against the working copy

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

When checking system storage and backup files which one do you run first SFC or DISM

A

System File Checker (SFC) - its going to look at your backup storage and compare the working files storage

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

When do you run (DISM) Deployment Imaging and service management do?

A

You run DISM when the backup storage and files may be corrupted

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

How do you run sfc in the command line?

A

type in the command sfc /scannow

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

How do you run DISM on the command line?

A

dism /online /cleanup-image /restorehealth

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

What is diskpart? and how do you start diskpart in the command line?

A

Wipes hard drives, creates partitions, formats drives and type in diskpart

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

What is the first command you do with diskpart?

A

run “list disk” command to see the disks

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

What is xcopy?

A

Allows you to copy files and directories and allows you to verify the data while its being copied

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

What is robocopy?

A

A faster version of xcopy

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

How do you run robocopy or xcopy in the command line?

A

Type in the name of the command then the drive you want to copy, what you want do, the drive where it will be copied and any switches
EX.
robocopy c:\backup x: add any switches you like

xcopy is the same

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

whats the command that allows you to copy files in linux

A

the “dd” command

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

What do gpupdate and gpresult do?

A

Forces policy updates to a system and lists the resultant policy

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

Whats the command to update repositories on Linux?

A

sudo apt-get update

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

What is Linux command to remove files/folders

A

apt-get remove

18
Q

What does the linux command “ps” do?

A

Will show any processes tied with the user you are running as

19
Q

What does the linux command “ps” do with the switch “aux” combined?

A

Shows all of the processes across other users and other parts of the computer

20
Q

What linux command do you use to end a program?

A

kill and you use it by typing kill and the process id

21
Q

What is the very old text editor for linux?

A

VI-text editor

22
Q

What does the command icacls do?

A

Changes ntfs permissions

23
Q

How do you use the command icacls?

A

icacls- folder or file you want to apply to - “/grant” User- : F for full control
EX.

icacls picsFolder /grant John:F

24
Q

What does the chmod command?

A

Changes user permissions in Linux

25
If you wanted to give a user rwx permissions , group rw permissions and other read permissions in linux what do you do?
chmod 7 6 4 file_name
26
What does the linux command chown do?
Allows you to change ownership of a file or folder
27
How do you use the chown command if you wanted to change ownership of file "Lunch_songs" from ted to jerry?
chown jerry Lunch_songs
28
How do you change a password on linux through the terminal?
passwd enter new password then reenter password
29
What is a batch file?
A text file that stores a series of commands
30
What does the cpmmand CAT do in linux cli?
Displays the contents of a text file on the screen. For example, to view the contents of the widget.txt file, you would enter cat widget.txt at the shell prompt.
31
What does the command less do linux
Displays the contents of a text file on the screen, pausing the output one screen at a time. For example, to view the contents of the widget.txt file one page at a time, you would enter less widget.txt at the shell prompt.
32
What does the command HEAD do in linux?
Displays the first few lines of a text file on the screen. For example, to view the first lines of the widget.txt file, you would enter head widget.txt at the shell prompt.
33
What does the command TAIL do in linux?
Displays the last few lines of a text file on the screen. For example, to view the last lines of the widget.txt file, you would enter tail widget.txt at the shell prompt.
34
What does the command su do in linux?
Allows you to switch user accounts.
35
What command do you use to turn off the computer in linux
su shutdown
36
How do you display the ipaddress in linux
ifconfig
37
What command removes files in linux
rm
38
What does the command dism do
Goes online and compares your system files to what is stored online for any problems
39
how do you remove a program in linux?
apt-get remove
40
How do you remove a folder through the cli on windows?
rd
41
How do you move files in linux command line
mv