Basic Linux Tasks Flashcards

(43 cards)

1
Q

What is Kernel?

A

The kernel is the central core of Linux OS that manages all the computer’s physical devices

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

How to open multiple shell?

A

type bash to open bash shell and csh to open C shell

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

How to determine the current Shell?

A

echo $SHELL

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

How to navigate with |more

A

spacebar to view next full page, Enter to view line by line, b to go back and q to quite

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

What is head and tail commands?

A

Head displays the first 10 lines of each file and tail displays the last 10 lines of each line

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

What is Piping commands

A

It allows to pipe the output of one command to the next command for example ls|more

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

How to issue multiple commands

A

Use semicolon

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

What is exec command?

A

It kills the parent process which is the Bash and run the command as the parent process

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

What is the uptime command?

A

Displays the time from which the system started running, current time and how many users logged in

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

What is who command?

A

Used to determine the details of users currently logged in to a system

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

what is whoami

A

Used to determine which user you are currently logged in to the system

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

what is w command

A

Determin which user are logged in and what is their last transaction

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

what is last command

A

Displays the history of user login in and out

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

What is wall command

A

Send a message to all the logged in users

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

What is echo command

A

used to display a line of text on the terminal and to display the value stored in a variable

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

what is man command?

A

Used to display manual for a command

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

How to find which command is used to perform a certain action?

A

apropos

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

What is the command that displays a short description of the command along with the man page

19
Q

what is a service on Linux?

A

is an application or set of applications that perform task in the background.

20
Q

What is a deamon ?

A

It is a program that runs in the background without the need for human interaction. It lies dormant until an event triggers it.

21
Q

What is the first process run on boot

22
Q

What is init responsible for

A

runlevel of the system

23
Q

what is runlevel

A

Specifies the group of process that are started, stopped and managed on Linux system. Init scripts create process a system boot time from a script in the /etc/inittab file.

24
Q

How can you change runlevel

A

using telinit command

25
What is Upstart Init Daemon?
It is event-based system rather than runlevel-based. Event based means that jobs will be automatically started and stopped by changes to the system state.
26
What environment variables that init daemon sets from the runlevel event
RunLevel and Prelevel
27
What is Systemd Init Daemon?
It is a replacement of SysVinit and Upstart in some Linux distribuiton. It allows for greater concurrency and reduces shell overhead. Control groups (cgroups) are used to track processes instead of PIDS
28
What command allows control over the Systemd Init process.
systemctl
29
Where would the boot loader choosen placed?
Master BootRecord (MBR)
30
What is the Linux boot loader that loads and starts the kernel
GRUB
31
what is a service on Linux?
is an application or set of applications that perform task in the background.
32
What is a deamon ?
It is a program that runs in the background without the need for human interaction. It lies dormant until an event triggers it.
33
What is the first process run on boot
Init
34
What is init responsible for
runlevel of the system
35
what is runlevel
Specifies the group of process that are started, stopped and managed on Linux system. Init scripts create process a system boot time from a script in the /etc/inittab file.
36
How can you change runlevel
using telinit command
37
What is Upstart Init Daemon?
It is event-based system rather than runlevel-based. Event based means that jobs will be automatically started and stopped by changes to the system state.
38
What environment variables that init daemon sets from the runlevel event
RunLevel and Prelevel
39
What is Systemd Init Daemon?
It is a replacement of SysVinit and Upstart in some Linux distribuiton. It allows for greater concurrency and reduces shell overhead. Control groups (cgroups) are used to track processes instead of PIDS
40
What command allows control over the Systemd Init process.
systemctl
41
Where would the boot loader choosen placed?
Master BootRecord (MBR)
42
What is the Linux boot loader that loads and starts the kernel
GRUB
43
What is cat
Concante files toghther such as cat filename1 filename2 > newfile