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

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

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

25
Remove directory containing subdirectories and files in Linux
rm -r
26
Remove directory containing subdirectories and files in Windows
Rd /s
27
Use of * in Windows and Linux
Used as a wildcard
28
Delete files in Windows
del or erase
29
Copy a file in Windows
copy
30
Copy a file in Linux
cp
31
Move a file in Windows
move
32
Move a file in Linux
mv
33
Copy multiple directories at once in Windows
xcopy
34
Copy files and directories, even over a network
robocopy
35
Hard drive error detection and to a certain extent correction utility in Windows
chkdsk
36
Display the name of a computer in Windows
hostname
37
Make group policy changes immediate in Windows
gpupdate
38
List group policies applied to a user in Windows
gpresult
39
Scan, detect, and restore Windows system files, folders, and paths
sfc
40
View and change wireless settings in Linux
iwconfig
41
List all processes running on the computer in Linux
ps
42
Search through text files or command outputs to find specific information or filter out unneeded information in Linux
grep
43
Edit text files in Linux
vi
44
Copy entire block volume in Linux
dd
45
Install or update a program using the advanced packaging tool
apt-get