CPNT 217 Basic Linux admin Flashcards

(51 cards)

1
Q

What is the primary reason for using Linux?

A

The cost

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

Who developed Linux and when?

A

Linus Torvalds developed Linux in 1991.

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

What is the Linux kernel?

A

The core component of Linux that interacts with hardware and software.

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

What is the significance of the forward slash (/) in Linux?

A

It represents the root directory of the filesystem.

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

What does the /bin directory contain?

A

Binaries or executables for system operations.

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

What is stored in the /etc directory?

A

Configuration files for system startup.

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

What is the purpose of the Ubuntu Terminal?

A

It is the command-line interface for issuing commands in Ubuntu.

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

What is the Bourne Again Shell (bash)?

A

A popular shell in Linux that provides a command-line interface.

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

What command is used to change directories in Linux?

A

The cd (change directory) command.

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

What does the command ‘passwd’ do?

A

It allows users to reset their own password or another user’s password if they are root.

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

What are man pages?

A

Manual pages that provide detailed information about commands and utilities.

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

What is the purpose of the ‘whatis’ command?

A

It provides a brief description of a command.

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

What does the command ‘shutdown’ do?

A

It shuts down the system.

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

What is the function of the /home directory?

A

It is the main storage area for user data and configuration.

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

What are the two types of UNIX commands?

A

User level commands and system administration commands.

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

How can you recall previously used commands in the shell?

A

By using the up arrow key.

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

What does the command ‘cd ..’ do?

A

It sends you back one directory.

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

What does the command ‘cd ~’ do?

A

It returns the user to their home directory.

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

What is the significance of case sensitivity in UNIX commands?

A

Most commands must be entered in lower case.

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

What is the role of the shell in Linux?

A

It provides the interface between users and the kernel.

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

What is the command to log out of a UNIX-based system?

A

You can use Ctrl D or the logoff command.

22
Q

What is the purpose of the /usr directory?

A

It contains files specific to the user.

23
Q

What does the command ‘halt’ do?

A

It stops all processes and shuts down the system.

24
Q

What is the function of the /mnt directory?

A

It serves as mount points for filesystems.

25
What command would you use to get help on a specific command?
You can use 'help {command}' or 'man {command}'.
26
What is an absolute path?
A path that begins at the root level and lists all subdirectories to the destination file.
27
What does the command 'ls -l' do?
It lists directory contents in a long format.
28
What command is used to switch users in Linux?
su (switch user)
29
What does 'sudo' stand for?
Superuser do; it allows the use of elevated or administrator commands.
30
What command is used to add a new user account?
useradd
31
How do you change file permissions in Linux?
Using the chmod command.
32
What does the octal value '5' represent in file permissions?
Read and execute permissions without write permission.
33
What command is used to create a new directory?
mkdir (make directory)
34
What does the command 'rm -r' do?
Removes directories recursively
35
How do you copy a file in Linux?
Using the cp command.
36
What command is used to move or rename a file?
mv (move)
37
What does the 'find' command do?
Searches for files by name.
38
What command allows you to view the contents of a file?
cat
39
What does the 'more' command do?
Allows you to view files one page at a time.
40
What is the purpose of redirection in Linux?
To send the output of a command to a file instead of the screen.
41
What does the pipe symbol '|' do?
It allows you to take the output from one command and send it to the input of another command.
42
What command counts the number of lines in a file?
wc -l
43
What is the function of the 'touch' command?
Creates an empty file or updates the date and time of an existing file.
44
What command displays a snapshot of process information?
ps
45
What does the 'top' command do?
Displays process information in real time.
46
What command is used to release or renew DHCP addresses?
dhclient
47
What is the purpose of the 'apt' or 'yum' commands?
Used to interact with the package manager for software installation and updates.
48
What is a symbolic link?
A link that points to another file or directory
49
What does the 'head' command do?
Displays the first few lines of a file.
50
What does the 'tail' command do?
Displays the last few lines of a file.
51
What is the maximum length of a filename in Linux?
Filenames can be up to 256 characters long.