sem 2 Flashcards

1
Q

why use Linux OS systems?

A

it is widely used in servers and embedded devices such as LAN, wifi-networks.

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

what is a linux distribution?

A

A Linux Distribution is an OS that is based of the Linux Kernel, and it comes with a software collection.

some distributions of Linux are Redhat, Ubuntu..

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

what are the characteristics of Linux?

A
  1. they are powerful and can be changed easily.
  2. they have a modular architecture, and the modules can be stackable
  3. open-sourced.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

cd desktop
mkdir newfolder

A

a new folder named “new folder” is created under desktop directory.

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

cd desktop
mkdir newfolder{1…100}

A

creates 100 files named “newfolder1” till “newfolder100”

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

cd desktop
rmdir newfolder{1…100}

A

removes the 100 folders made

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

pwd

A

shows the directory we are currently in

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

nano newfile1.txt
OR
gedit newfile1.txt

A

can insert info inside the newfile1
txt tells us it is a text file.

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

ps -e

A

shows all the processes running in the system monitor

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

ps -e | grep firefox

A

helps us to see the program running in firefox

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

free

A

shows the amount of physical and virtual memory

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

df

A

shows the amount of memory free, amount of used space of each file system.

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

df -Th

A

tells us the amount of memory used or left in gigabytes, which is human readable.

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

df -T

A

tells us the file system types

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

3 desirable properties of files

A
  1. long-term existence
  2. organised into hierarchical structure
  3. shareable between processes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

2 ways

A
  1. launch firefox and email it to yourself
  2. copy file and put it in the shared folder
17
Q

absolute path vs relative path

A
18
Q

touch command

A

to create a file (like to include within a script)

19
Q

echo “a new line”&raquo_space; abc.txt

A

“a new line” will be inside the file

20
Q

cat abc.txt

A

’ a new line ‘ is the result

21
Q

cp abc.txt def.txt

A

abc.txt is the name of the file u want to duplicate (source)

def.txt is the name of the new duplicated file (destination)

22
Q

rm def.txt

A

deletes the file and it is unrecoverable.

23
Q

shell script

A
24
Q

3 File allocation methods

A
  1. contiguous allocation
  2. chained allocation
  3. indexed allocation
25
Q

bash script

A

!/bin/bash

26
Q

chmod

A
27
Q

shell script act 6

A