Linux+ Flashcards

Test questions

1
Q

What command is used to list files in a directory?

A

ls

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

True or False: The root user has the highest level of access in a Linux system.

A

True

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

Fill in the blank: The __________ command is used to change the current directory.

A

cd

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

Which command is used to display the current working directory?

A

pwd

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

What does ‘chmod’ command do?

A

Changes the permissions of a file or directory.

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

Select the correct command to copy files: a) cp b) mv c) rm

A

a) cp

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

What is the default shell in most Linux distributions?

A

Bash

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

True or False: Linux is a multi-user operating system.

A

True

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

What file contains user account information in Linux?

A

/etc/passwd

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

Which command is used to display the contents of a file?

A

cat

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

Fill in the blank: The __________ command is used to remove files.

A

rm

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

What is the purpose of the ‘grep’ command?

A

To search for specific patterns in files.

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

Select the correct command to move files: a) cp b) mv c) ls

A

b) mv

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

What does the ‘ps’ command display?

A

Currently running processes.

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

True or False: The ‘sudo’ command allows a permitted user to run a command as the superuser.

A

True

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

What is the primary configuration file for network settings in Linux?

A

/etc/network/interfaces

17
Q

Fill in the blank: The __________ command is used to view system log files.

18
Q

What does ‘df’ command report?

A

Disk space usage.

19
Q

Which command is used to update the package index on Debian-based systems?

A

apt update

20
Q

What is the purpose of the ‘tar’ command?

A

To archive files.

21
Q

True or False: Linux file permissions are represented by a three-character string.

22
Q

What command would you use to change a file’s ownership?

23
Q

Select the correct command to view the manual for another command: a) help b) man c) info

24
Q

What does the ‘ifconfig’ command do?

A

Configures network interfaces.

25
Q

Fill in the blank: The __________ command can be used to create symbolic links.

26
Q

What does ‘cron’ allow you to do?

A

Schedule tasks to run at specified times.

27
Q

True or False: The ‘scp’ command is used for secure file transfer over SSH.