BATCH and BASH Commands Flashcards

1
Q

BATCH
Typing _______and hitting enter would list basic TCP/IP configuration settings for all current network configurations.

A

ipconfig

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

BATCH
To navigate around folders on the Windows server you would type _______ followed by the folder path.

A

cd

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

BATCH
In order to show the files listed in a directory you would type _____

A

dir

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

BATCH
To create a new folder you would type ______ followed by the name of the new folder.

A

md

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

BATCH
To delete a folder within the directory you’re in you would type _____ followed by the name of the folder.

A

rm

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

BATCH
You aren’t certain whether your Windows server is able to connect to another file server you have. You might use the _____ command followed by the file servers’ IP address to verify whether your Windows server can “see” that file server.

A

ping

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

BATCH
You want to view the name of the Windows server you’re connected to, so you would use the_____ command.

A

hostname

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

BATCH
You know the hostname of another server on your network, but you’re not sure of its IP address. You would use the _____ command to resolve the IP address of the server hostname.

A

nslookup

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

BATCH
In order to verify the integrity of any disks on your server you would run the ____ command.

A

chkdsk

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

BATCH
You would use the _____ command to display all accounts currently on the server.

A

net user

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

BATCH
Your Windows server is connected to a separate database. The connection to that database is very slow. You would use the _____ command to test connectivity between your server and the database.

A

tracert

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

BATCH
To copy files and directory trees your would use the _____ command.

A

xcopy

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

BATCH
In order to update group policy for a specific machine you would enter the _____ command.

A

gpupdate

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

BATCH
In order to view the group policies currently installed on the machine you would enter the _____ command.

A

gpresult

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

BATCH
In order to shutdown the server you would enter the _____ command.

A

shutdown

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

BATCH
The _____ command is used to scan and restore important Windows system files.

A

sfc

17
Q

BATCH
The _____ command displays the About window which shows the exact version of Windows currently running.

A

winver

18
Q

BASH
You would use the _____ command before any other command in order to run that command as an administrator.

A

sudo

19
Q

BASH
The ____ command is used to install application packages.

A

apt-get

20
Q

BASH
_____ displays the current directory on the screen.

A

pwd

21
Q

BASH
You would use the _____ command to display a list of files and subdirectories within a directory.

A

ls

22
Q

BASH
You would use the _____ command to navigate around within the file system.

A

cd

23
Q

BASH
The _____ command allows you to copy a file or directory from one location to another.

A

cp

24
Q

BASH
The _____ command allows you to move files and directories from one location to another.

A

mv

25
Q

BASH
The ____ command allows you to delete a file or directory.

A

rm

26
Q

BASH
The _____ command is used to display the contents of a text file on the screen.

A

cat

27
Q

BASH
If you use the appropriate command to display the contents of a large text file on the screen, you can pipe (using |) the output of that command _______ to display the contents one page at a time.

A

less

28
Q

BASH
If you use the appropriate command to display the contents of a large text file on the screen, you can pipe (using |) the output of that command _____ or _____ to display the first few lines or the last few lines of the text file.

A

head, tail

29
Q

BASH
The _____command allows you to open and edit the contents of a text file.

A

vim

30
Q

BASH
If you wanted to change who owns a specific folder/directory, you would use the _____ command. In order to change the permissions assigned to that owner you would use the _____ command.

A

chown, chmod

31
Q

BASH
The _____ command allows you to turn off the machine.

A

shutdown