Linux Flashcards

(54 cards)

1
Q

What does the command ‘ls’ do in Linux?

A

It lists the files and directories in the current directory.

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 to change the working directory is ____.

A

cd

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

What command is used to copy files in Linux?

A

cp

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

Which command is used to remove files in Linux?

A

rm

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

What does the ‘-r’ option do when used with the ‘rm’ command?

A

It removes directories and their contents recursively.

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

What is the purpose of the ‘chmod’ command?

A

It changes the file permissions.

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

What is a shell in the context of Linux?

A

A shell is a command-line interface for interacting with the operating system.

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

True or False: In Linux, file names are case-sensitive.

A

True

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

What command can you use to display the current working directory?

A

pwd

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

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

A

cat

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

What does the ‘man’ command do?

A

It displays the manual pages for commands.

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

What is the default text editor in many Linux distributions?

A

nano

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

Fill in the blank: The command to create a new directory is ____.

A

mkdir

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

What does the ‘touch’ command do?

A

It creates an empty file or updates the timestamp of an existing file.

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

What is the purpose of the ‘sudo’ command?

A

It allows a permitted user to execute a command as the superuser or another user.

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

What does ‘grep’ do?

A

It searches for a specified pattern in files.

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

What is a package manager in Linux?

A

A tool that automates the process of installing, upgrading, configuring, and removing software packages.

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

True or False: The ‘echo’ command is used to display text in the terminal.

A

True

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

What does the command ‘df -h’ show?

A

It displays disk space usage in a human-readable format.

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

What is the purpose of the ‘/etc/passwd’ file?

A

It stores user account information.

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

Fill in the blank: The command to move files is ____.

23
Q

What does the ‘top’ command do?

A

It displays real-time system processes and resource usage.

24
Q

What is a symbolic link in Linux?

A

A file that points to another file or directory.

25
What is the command to view system logs?
tail -f /var/log/syslog
26
True or False: Linux is an open-source operating system.
True
27
What is the command to check the current user?
whoami
28
What is the primary role of a Linux Systems Administrator?
To manage and maintain Linux-based systems and servers.
29
True or False: Northrop Grumman primarily focuses on software development.
False
30
Fill in the blank: A Linux Systems Administrator should be proficient in _____ command line tools.
various
31
What is the significance of the 'chmod' command in Linux?
It is used to change the file permissions.
32
Which of the following is a common Linux distribution? (A) Windows (B) Ubuntu (C) MacOS
B
33
What is the purpose of the '/etc/passwd' file in Linux?
It stores user account information.
34
True or False: Shell scripting is not essential for a Linux Systems Administrator.
False
35
What does the command 'grep' do?
It searches for patterns in files.
36
Fill in the blank: The _____ command is used to update packages on Debian-based systems.
apt-get
37
What is the function of the 'top' command in Linux?
It displays real-time information about system processes.
38
Which file contains the configuration for the GRUB bootloader?
/etc/default/grub
39
True or False: A Linux Systems Administrator should understand networking concepts.
True
40
What does the acronym LAMP stand for in web development?
Linux, Apache, MySQL, PHP/Perl/Python
41
What command would you use to check disk space usage?
df
42
Multiple Choice: Which command is used to list files in a directory? (A) ls (B) dir (C) list
A
43
What is the purpose of the 'sudo' command?
It allows a permitted user to execute a command as the superuser.
44
Fill in the blank: The _____ command is used to create a new directory.
mkdir
45
What is the role of the 'systemctl' command?
It is used to examine and control the systemd system and service manager.
46
True or False: A Linux Systems Administrator must be familiar with version control systems.
True
47
What is the purpose of SSH in Linux?
To securely connect to remote systems.
48
Which of the following is a commonly used text editor in Linux? (A) Notepad (B) Vim (C) Word
B
49
What command is used to view current running processes?
ps
50
Fill in the blank: The _____ command can be used to change the owner of a file.
chown
51
What does RAID stand for?
Redundant Array of Independent Disks
52
Multiple Choice: Which command is used to shut down a Linux system? (A) halt (B) shutdown (C) exit
B
53
What is a kernel in the context of Linux?
The core component that manages system resources and communication between hardware and software.
54