Command Line Flashcards

1
Q

Change the owner and the group the file or folder is associated in Linux

A

chown

Syntax:

chown filename

chown : filename

Note requires super user permissions

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

Change file or folder permissions in Linux

A

chmod

Syntax:

chmod

r: 4
w: 2
x: 1

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

Rebuilds the boot sector for the active system partition in Windows

A

Bootrec /fixboot

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

Rebuilds the master boot record for the system partition in Windows

A

Bootrec /fixmbr

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

Looks for Windows installations not currently in the BCD store and shows you the results without doing anything

A

Bootrec /scanos

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

Looks for Windows installations not currently in the BCD store and gives you the choice to add them to the BCD store

A

Bootrec /rebuildmbr

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

Exports a copy of the BCD store to a file

A

Bcdedit /export

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

Imports a copy of the BCD store back into the store

A

Bcdedit /import

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

Display current path in Linux

A

pwd

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

Change a user’s password in Linux

A

passwd

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

Find out syntax and switches for a command in Window

A

[command name] /?

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

Find out syntax and switches for a command in Linux

A

man [command name]

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

Use of |

A

Symbol for pipe command

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

Extra text typed after a command to modify its operation

A

A switch

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

Meaning of symbol -

A

A switch in Linux

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

Meaning of symbol /

A

A switch in Windows

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

Display contents of the current working directory in Windows

A

dir

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

Display contents of the current working directory in Linux

A

ls

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

Change focus of command prompt from one directory to another in Windows and Linux

A

cd

20
Q

Move between drives in Windows

A

Type the drive letter followed by a colon (:)

21
Q

How to move back one in the path

A

cd..

22
Q

Make directory

A

md or mkdir in Windows and mkdir in Linux

23
Q

Remove directory

A

rd or rmdir in Windows and rmdir in Linux

24
Q

Delete files in Linux

A

rm

25
Q

Remove directory containing subdirectories and files in Linux

A

rm -r

26
Q

Remove directory containing subdirectories and files in Windows

A

Rd /s

27
Q

Use of * in Windows and Linux

A

Used as a wildcard

28
Q

Delete files in Windows

A

del or erase

29
Q

Copy a file in Windows

A

copy

30
Q

Copy a file in Linux

A

cp

31
Q

Move a file in Windows

A

move

32
Q

Move a file in Linux

A

mv

33
Q

Copy multiple directories at once in Windows

A

xcopy

34
Q

Copy files and directories, even over a network

A

robocopy

35
Q

Hard drive error detection and to a certain extent correction utility in Windows

A

chkdsk

36
Q

Display the name of a computer in Windows

A

hostname

37
Q

Make group policy changes immediate in Windows

A

gpupdate

38
Q

List group policies applied to a user in Windows

A

gpresult

39
Q

Scan, detect, and restore Windows system files, folders, and paths

A

sfc

40
Q

View and change wireless settings in Linux

A

iwconfig

41
Q

List all processes running on the computer in Linux

A

ps

42
Q

Search through text files or command outputs to find specific information or filter out unneeded information in Linux

A

grep

43
Q

Edit text files in Linux

A

vi

44
Q

Copy entire block volume in Linux

A

dd

45
Q

Install or update a program using the advanced packaging tool

A

apt-get