Linux Flashcards

1
Q

What six tasks are performed by the kernel

A
1 Process scheduling
2 Memory management
3 Provision of filesystem
4 Creation and termination of proccesses
5 Access to devices
6 Networking
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Kernel-mode vs User-mode

A

When in user mode, CPU can only access memory marked for user space. When in Kernel mode, CPU can access memory in kernel & user space

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

What are the basic file I/O methods

A

open, read, write, close

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

What’s the linux directory structure

A

root, bin, sbin, etc, dev, proc, var, tmp, usr, home, boot, lib, opt, media, mnt

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

What are the different types of Inter-Process Communication

A

Signals, Pipes, Sockets, File locking, Message Queues, Semaphores, Shared memory

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

What is an inode

A

a data structure in a Unix-style file system that describes a file-system object such as a file or a directory

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

How can you speed up accessing files

A

Disable atime modification in /etc/fstab

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

How to identify, list and edit all scheduled tasks?

A

crontab -l or crontab -e

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

What command can you run to check the filesystem mount points? What file holds that information?

A

df and fstab

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