Final Flashcards

1
Q

What is the shell?

A

interface that accepts and translates user input so that the kernel can process it.

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

What are Daemons?

A

Programs that run in the background independently of the user
Called services in Windows

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

What are applications?

A

Programs that require an OS to run

Give users a specific function, such as word-processing programs, media players, etc

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

What is the Kernel?

A

Core of the OS.
Manages hardware, such as disk drives and memory.
Allows public access to the source code.

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

What is the Resource Manager?

A

Manages processes and memory.

Can perform multiple processes at the same time.

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

What is a “Process”?

A

program the kernel launches into memory for the purpose of performing specific tasks.

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

What is RAM? (Random Access Memory)

A

Storage space where a computer reads and writes data.

Considered “volatile” storage – data is stored there but is erased when the computer shuts down.

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

What linux desktop environments are available in openSUSE?

A

K Desktop Environment (KDE)

GNU Network Object Model Environment (GNOME)

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

What is the top level of the linux file system?

A

Root

Indicated by / symbol.

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

What are device files?

A

Special file stored in the /dev directory.

Represents a hardware device on the system.

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

What are directory files?

A

Like a folder in Windows.

Can contain files and other directories.

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

Features of Linux

What does the multiuser feature allow?

A

enables multiple users to log on to a single computer at the same time

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

Features of Linux

What does multitasking mean?

A

multiple processes can run simultaneously

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

Features of Linux

What is Preemptive multitasking?

A

schedule decides when a process stops and another process starts.

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

Features of Linux

What is Network Connectivity?

A

uses Transmission Control Protocol/Internet Protocol (TCP/IP) – internationally accept set of rules for connecting computers to the Internet and most other networks.

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

Features of Linux

What security features does Linux offer?

A

Login and password authentication.
File ownership and permissions.
Firewall for protecting network resources from users outside the network.

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

What shells are available in Linux?

A

Bourne, C, Korn, BASH

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

Which shell is the original UNIX shell and has no history function?

A

Bourne Shell

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

Which shell has an interface that is similar to C

Has a history function, but its incompatible with Bourne

A

C Shell

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

This shell was developed to combine the best of the C and Bourne shell.
It has a history function and allows users to edit the history file while viewing it

A

Korn

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

This shell is the default shell in most Linux distributions. Has a history function that can be used to remember commands entered in previous sessions, as well as the current session.

A

BASH

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

What directory are the shells stored in?

A

/bin directory

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

all files and subdirectories are placed under the this directory in a treelike structure.

A

root

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

specifies requirements and guidelines for file and directory placement in UNIX-like operating systems

A

Filesystem Hierarchy Standard (FHS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
This directory contains static configuration files, which are also unshareable files, meaning they’re local to the machine
/etc
26
This directory contains the linux kernel and static files needed to boot the computer
/boot
27
This directory contains device files, such as the CD/DVD-ROM drive
/dev
28
This directory is an optional directory that might not be included in all Linux distributions; in openSUSE, it’s the user’s home directory
/home
29
This directory contains shared libraries that are loaded when a program starts
/lib
30
This directory contains shareable, read-only applications and files
/usr
31
This directory contains variable data files, such as log files
/var
32
This directory contains binary commands that can be used by system administrators, users, and scripts; this directory shouldn’t contain subdirectories and can be accessed in single user mode
/bin
33
This directory contains the mount point for removable media
/media
34
This directory is empty by default, but administrators can use it to mount other resources such as CD/DVD-ROM drives, USB drives
/mnt
35
This directory contains shareable add-on software packages
/opt
36
This directory contains system binaries used by the system administrator
/sbin
37
This directory contains data files for services.
/srv
38
This directory contains temporary files that system administrators should delete whenever the system is booted.
/temp
39
Linux Directory Commands | What does pwd do?
Shows where the current user is located in the file system
40
Linux Directory Commands | What does cd do?
Changes directories. | Ex: cd /home/images
41
Linux Directory Commands | What does ~ (tilde) do?
Represents the user's home directory. Ex: cd ~ this change directories to the home directory
42
Linux Directory Commands | What does ls do?
Lists the files and directories that are located in the directory that you are in.
43
Linux Directory Commands | What does mkdir do?
mkdir creates a directory | Ex: mkdir images
44
Linux Directory Commands | What does touch do?
touch creates an empty file | Ex: Dog.jpg
45
Linux Directory Commands | What does rm do?
rm removes a file.
46
Linux Directory Commands | What does rmdir do?
rmdir removes a directory
47
Linux Directory Commands | What does mv do?
Can be used to move a file, or rename a file. To rename a file, you would do: mv file newFileName To move a file, you would do:
48
Linux Directory Commands | What does cp do?
Copies a file
49
When writing a script to run under the BASH shell, the first line of the script should be:
#!/bin/bash
50
To make a script executable, you must...
must use the chmod command on the script and give it executable permission: chmod a+x (give everyone permission to the script)
51
What does the head command do?
Displays the first 10 lines of a text file
52
What does the tail command do?
Displays the last 10 lines of a text file
53
What does the more command do?
displays a file’s contents one screen at a time
54
How would you add a user named Lee?
useradd -m lee | the -m automatically creates a home directory for the user.
55
How would you change the password of the user named Lee?
passwd
56
How would you delete the user, Lee?
userdel
57
This file executes when you login.
.login
58
This file contains all other aliases and user information. Contains profile parameters for the C shell.
.cshrc
59
How do you set a prompt?
PS1=”characters here”
60
What is the difference between the shell, kernel, and hardware?
The shell is the interface that is used to communicate with the kernel and the kernel is the pathway to the hardware
61
How can you execute a shell script?
sh scriptName.sh or bash scriptName.sh
62
What is umask?
umask is used to set the default permissions of a file when it is created. The use of umask is to set the permissions for which the file will NOT have. Typing umask at a prompt will display the value of umask that will be given to newly created files.
63
What does the ps command do?
display processes that are in use by the current logged in user.
64
What does the "ps aux" command do?
can be used to display the process information of the entire system. A process can be stopped by issuing the kill -9 command at a prompt, followed by the process ID of the job that needs to be stopped. The process ID can be acquire by performing ps aux at the prompt.
65
What is piping?
The output is the input for the next command.
66
How would you check the permissions of a certain directory?
ls -ld directoryName