Midterm Flashcards

1
Q

Reasons for Using Text editors in Linux

A

Scripts are written in text editors.

Many Linux programs use text-based data files for input.

Many of Linux-operating system services use configuration files that are text-based.

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

It has Advanced DataPilot technology that makes it easy to pull in raw data from corporate databases, and then cross-tabulate, summarize, and convert it into meaningful information

A

Calc (Spreadsheet)

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

3 modes of Vi editor

A

Command
Insert
Replace

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

Comes with the Gnome desktop. It only runs in the GUI environment.

A

Gedit

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

It enables you to insert perfectly formatted mathematical and scientific formulas in your text documents, spreadsheets, presentations, and drawings.

A

Math (Formula Editing)

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

It is an excellent package for producing technical drawings, brochures, posters, and many other documents

A

Draw (Vector graphics and Flowcharts)

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

How to enter insert mode and return to command mode?

A

Press ESC

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

How to create a file in Linux

A

vi sample.txt

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

It has the Fontworks tool that lets you create attractive 2D and 3D images from text

A

Impress (Presentation)

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

It provides native-support drivers from some of the most widely employed multi-user database engines

A

Base (Database)

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

It has AutoComplete feature, which can suggest commonly-used words and phrases to complete what you have started typing, using the built-in dictionary and by scanning the documents you open.

A

Writer (Word Processing)

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

Is the recommended image editor for the Linux platform

A

GIMP

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

Is a native editor found in all Linux and Unix systems. They include an enhanced replacement called vim.

A

Vi

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

Can be customized and extended with different modes, enabling it to be used like IDE for programming languages such Java or C. It has to be installed first.

A

Emacs

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

The office suite for Linux.

A

LibreOffice

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

Is a text editor designed for beginners.

A

Nano

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

How to add text?

A

Press “i”

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

How to save changes?

A

Press “ :w “

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

Confirmation message when creating a new file?

A

“sample.txt” [New File]

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

Confirmation message of the changes made when saved?

A

“sample.txt: [New] 1L

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

Cursor command movement: h, j, l, k

A

H- Left arrow
J- Down arrow
L- Right arrow
K- Up arrow

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

To the beginning of the current line

A

0

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

To the first non-whitespace character on the current line

A

” ^ “

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

To the end of the current line

A

$

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
To the beginning of the next word or punctuation character
w
26
To the beginning of the next word, ignoring punctuation characters
W
27
One page down
Page down
28
One page up
Page up
29
To line number
numberG
30
To the last line of the file
G
31
This command moves the cursor to the end of the line before starting insert mode.
A command
32
How to insert a blank line between two (2) existing lines
o command
33
How to insert the line above the current line
O command
34
Deletes the current character
x
35
Deletes the current character and the next two (2) characters
3x
36
Deletes the current line
dd
37
Deletes the current line and the next four lines
5dd
38
Deletes from the current cursor position to the beginning of the next word
dW
39
Deletes from the current cursor location to the end of the current line
d$
40
Deletes from the current cursor location to the beginning of the line
d0
41
From the current cursor location to the first non-whitespace character in the line
d^
42
Deletes from the current line to the end of the file
dG
43
Deletes from the current line to the twentieth line of the file
d20G
44
Copies the current line
yy
45
Copies the current line and the next four lines
5yy
46
Copies from the current cursor position to the beginning of the next word
yW
47
Copies from the current cursor location to the end of the current line
y$
48
Copies from the current cursor location to the beginning of the line
y0
49
Copies from the current cursor location to the first non-whitespace character in the line
y^
50
Copies from the current line to the end of the file
yG
51
Copies from the current line to the twentieth line of the file
y20G
52
It applies only to the owner of the file or directory; this will not impact the actions of other users
Owner
53
It applies only to the group that has been assigned to the file or directory; it will not affect the actions of other users.
Group
54
It applies to all other users on the system; this is the permission group that you want to watch the most
All Users
55
User can view the contents of the file.
Read
56
User can modify a file or directory.
Write
57
User can run a file or view the contents of a directory.
Execute
58
It displays user identity.
id
59
It allows you to modify the access rights of a file/directory.
chmod
60
It sets the default file permissions
umask
61
It allows you to temporarily become the superuser
su
62
It allows you to execute a command as another user.
sudo
63
It allows you to change a file’s ownership.
chown
64
It allows you to change a file’s group ownership
chgrp
65
It allows you to change a user’s password.
passwd
66
How to view permission settings?
ls command
67
Attribute of a regular file?
-
68
Attribute of a directory
d
69
Attribute of a symbolic link?
l
70
A character special file. This file type refers to a device that handles data as a stream of bytes, such as terminal or modem.
c
71
A block special file. This file type refers to a device that handles data in blocks, such as hard-drive or CD-ROM drive
b
72
It sets no restrictions on permissions
777
73
The file’s owner may read, write, and execute the file. All others may read and execute the file
755
74
The file’s owner may read, write, and execute the file. Others are not given any rights. This setting is useful for programs that only the owner may use and must be kept private from others.
700
75
All users may read and modify the file.
666
76
The owner may read and modify the file, while all others may only read the file. This is a common setting for data files that everybody may read, but only the owner may change.
644
77
The owner may read and modify the file. All others have no rights
600
78
Symbolic notation of the directory or file owner
u
79
Symbolic notation of the group owner
g
80
Symbolic notation of others
o
81
Symbolic notation for all
a
82
It allows execute permission for the owner.
u+x
83
Removes execute permission from the owner
u-x
84
It allows execute permission for the owner, group, and everyone else.
+x
85
It removes the read and write permission from anyone besides the owner and group owner.
o-rw
86
It sets the group owner and anyone besides the owner to have read and write permission. It removes the execute permissions from the group owner and others.
go=rw
87
It adds execute permission for the owner and sets the permissions for the group and others to read and execute
u+x, go=rx