Common Commands and Scripts Flashcards

1
Q

What is the command to show Directory on Windows

A

dir

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

What is the command to show Directory on Linux

A

ls

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

How do you create a folder on Windows and Linux

A

mkdir (make)

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

How to change directory on Windows and Linux

A

cd (change directory)

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

How to delete a file/folder on Windows

A

del (delete)

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

How to delete a file/folder on Linux

A

rm (remove)

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

How to copy a file/folder on Windows

A

copy

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

How to copy a file/folder on Linux

A

cp

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

How to move a file/folder on windows

A

move

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

How to move a file/folder on Linux

A

mv (move)

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

What does nslookup do

A

nslookup matches names to IP addresses

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

What does netstat do

A

Displays protocol statistics and TCP/IP connections

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

How to show ipconfig on Linux

A

Linux uses ifconfig

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

How to rename a file/folder on Windows

A

ren(ame)

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

How to rename a file/folder on Linux

A

mv (move). This will allow you to move and rename the file/folder

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

What is MS-DOS

A

MS-DOS is the original OS made by Microsoft. CMD is based off this original OS

17
Q

What is BASH

A

Bash is the most common CLI used for local and remote Linux machines

18
Q

What is PowerShell

A

PowerShell is essentially a more powerful version of CMD

19
Q

How to remove a directory

A

RMDIR (Remove Directory)

20
Q

How to change file permissions on Windows and Linux

A

Windows: Attrib
Linux: chmod

21
Q

What is a Script

A

A script is a plain text file that can contain a series of commands