Windows Command Prompt Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Get-LocalGroup

A

Get default local groups listed w descriptions

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

Get-LocalUser

A

gives the names of users, if they are enabled or not, with description

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

Get-LocalGroupMember

A

can see which users are in the group

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

cat etc/password

A

first field is username, password, UID (user ID),

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

How to reset password in GUI

A

computer management, local users and groups, select account, properties, then you can ask to reset PW or set it manually for them by selecting set PW

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

net user cindy ‘some_password’ OR * to then ask for PW for user

OR /logonpasswordchg:yes

A

to change a users password, set it hidden from sight, or for next login they will have to change it

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

passwd cindy

A

changing password for cindy in Linux, you need current PW, then entering a new one

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

new -localuser in windows

A

creates a new user in windows

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

net user cindy * /add

A

adds a new user called cindy and asks for the password/hidden in Windows

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

net user cindy /logonpasswordchg:yes

A

next login cindy will need to change her password in Windows

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

net user cindy /del

A

delete cindy command in Windows

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

Remove-LocalUser Cindy

A

removes a local user in Windows

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

sudo userdel cindy

A

deletes a user in Linux

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

icacls

A

which users have access to my desktop, letters represent each permission (OI) (CI) (F) read write execute files

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

icacls “C:\Vacation Pictures” /grant “Everyone: (OI)(CI)(R)”

it would be single quotes ‘ asdf’ in Windows Powershell Admin command prompt

A

grants everyone to see pics

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

icacls “C:\Vacation Pictures” /grant “Authenticated Users:(OI)(CI)(R)”

A

to grant only people with passwords access

17
Q

using chocolatey is used for?

A

Install-Package -Name sysinternals

lets you install any package or software that exists in the public chocolatey repository

can create your own private repository if you need to package something like an internal company app

18
Q

orca.exe

A

used to create MSI installer packages as a programmer

19
Q

Diskpart

A

shows the disk and version used

20
Q

list disk

select disk 1

clean

create partition primary

select partition 1

active

format FS=FTFS label=my-thumb-drive quick

A

lists the disks used, size, and available room

21
Q

mounting

A

making something accessible to the computer, like a filesystem or hard drive

22
Q

notepad.exe file_1_shortcut.lnk

mklink /H file_1_hardlink file_1.txt (can change the name)

A

makes a symbolic link aka shortcut that opens original

23
Q

fsutil repair query C:

chkdsk /F D:

A

can enable general repair to a disk if not shut down properly

24
Q

taskkill /pid 5856

A

process ID (PID) can task kill

25
Q

tasklist

Get-Process (for powershell)

A

shows all the tasks running

26
Q

Process Explorer is…

A

Process Explorer is a utility Microsoft created let IT support specialists, systems administrators, and other users look at running processes.

27
Q

Get-Process (powershell)

Get-Process | Sort CPU -decending | Select -first 3 -property ID, ProcessName, CPU

A

gets processes,

gets detailed processes with the processes using most CPU with added details listed

28
Q

cp *.jpg C:\Users\Drdoo\Desktop\

cp ‘bird pics’ C:\Users\Drdoo\Desktop\ -Recurse -Verbose

A

will copy all files of .jpg to this area

will copy the directory and any sub directories to copy contents and directory itself

29
Q

mv .\blue_doc.txt yellow_doc.txt

A

it will move/rename the file, can also move files from a directory to another

30
Q

rm -Force

A

removes with force for admin privilege’s

31
Q

more myfile.txt

more myfile.txt -Head 10

A

goes into more program, a separate file,

top 10 lines of file

enter key to go line by line,
space for page by page,
q to quit

32
Q

putty.exe -ssh drdoo@104.131.122.215

A

will remote connect using putty

33
Q

pscp.exe C:\Users\drdoo\Desktop\myfile.txt cindy@104.131.112.215:

A

will copy a file from the path to the IP address

34
Q

net share ShareMe=C:\Users\drdoo\Desktop\ShareMe /grant:everyone,full

A

share a folder called shareme showing the path, granted to certain users or everyone with what types of access

35
Q

eventvwr.msc

A

event viewer to view why a computer is crashing or troubleshooting