2 Kol Flashcards

1
Q

Ovlascenja

A

R - read
W - write
X - execute

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

ovlascenje na nivou resursa

A

korisnickog naloga (Owner)
grupu vlasnika (Group owner)
ostale korisnike (Others)

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

Opis kolone

A
  • -> regularna datoteka
    d -> direktorijum
    I -> simbolicki link
    p -> named pipr
    s -> socket
    b -> blok uredjaj
    c -> karakter uredjaj
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

RWX efekat na datoteku i direktorijum

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

specijalna ovlascenja

A

SUID, SGID, STICKY BIT

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

Upravljanjem ovlascenja
numericki

A

chmod 421 rwx

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

Upravljanjem ovlascenja
numericki sa specijalnim

A

chmod 421 ssT

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

modifikovanje ovlascenja
simbolicki

A

chmod u=rwx,g=r,o= file1

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

dodavanje ovlascenja
simbolicki

A

chmod u+r file1

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

oduzimanje ovlascenja
simbolicki

A

chmod u-r file1

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

dodela ovlascenja istovremeno simbolicki

A

chmod ugo=r file1
chmod a=r file1

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

Rekuzivna dodela ovlascenja
za direktorijum, samo

A

chmod -R u+X folder1
(veliko slovo)

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

Rekuzivna dodela ovlascenja
za direktorijume i datoteke

A

chmod -R u+x folder1
(malo slovo)

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

promena vlasnika datoteke

A

podrazumevani vlasnik je onaj ko kreira datoteku, a podrazumevani vlasnik grupa je primarna grupa korisnika.
chown petar file1

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

Promena vlasnika grupe

A

chown :finansije file2

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

Rekuzivna promena vlasnistva nad direktorijumom

A

chown -R petar folder1

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

Istovremena promena vlasnika i vlasnik grupe

A

chown petar:finansije file3

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

pokazivanje aktuelne konfiguracije pomocu oktalne bitmaske (numericki prikaz)

A

unmask

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

simbolicki prikaz maske

A

unmask -S

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

prikaz svih ovlascenja za datoteku

A

getfacl file1

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

provera indentiteta korisnika

A

id

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

podesavanje ovlascenja za vlasnika datoteke

A

setfacl -m u::rx file1

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

podesavanja ovlascenja za specificnog korisnika

A

setfacl -m u:marko:r file1

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

blokiranje pristupa ostalim korsinicima

A

setfacl -m o::- file1

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

visestruke promene ovlascenja istovremeno

A

setfacl -m u::rwx,g:marketing:r,o::- file1

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

Kopiranje ovlascenja

A

getfacl file1 | setfacl –set-file= -file2

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

podesavanje maske

A

setfacl -m m::rw file1

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

podesavanje rw korisniku petar nad svim podobjektima aktuelnog direktorijuma

A

setfacl -R -m u:petar:rwX .

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

brisanje iz ACL-a

A

setfacl -x u:petar,g:marketing .

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

konfiguracija podrazumevanih ovlascenja rx za korisnika marko nad aktuelnim direktorijumom

A

setfacl -m d:u:marko:rx .

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

provera statusa servisa

A

systemctl status <ime></ime>

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

listanje svih servisnih jedinica

A

systemctl list-units –type=service

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

listanje svih soketa j

A

systemctl list-units –type=socket -all

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

provera da li je servis sshd enabled

A

systemctl is-enabled sshd

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

provera da li je servis sshd active

A

systemctl is-active sshd

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

listanje servisa koji se nisu podigli

A

systemctl –failed

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

listanje svih instaliranih servisa

A

systemctl list-unit-file –type=service

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

startovanje firewalld servisa

A

systemctl start firewalld.service

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

stopiranje firewalld servisa

A

systemctl stop firewalld.service

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

reload i restartovanje servisa

A

systemctl reload firewalld.service
systemctl restart firewalld.service

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

listanje jedinica od kojih zavisi servis cups

A

systemctl list-dependencies cups.service

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

listanje servisa koji zavise od cups

A

systemctl list-depencdencies –reverse cups.service

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

maskiranje i de maskiranje servisa

A

systemctl mask cups
systemctl unmask cups

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

Procedura promene lozinke na CENTOS 7

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

Procedura promene lozinke na CENTOS 8

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

Procedura promene lozinke za UBUNTU 20.04

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

listanje svih mreznih konekcija

A

nmcli con show

48
Q

listanje svih aktivnih konekcija

A

nmcli con show –active

49
Q

prikazivanje svih detalja za konekciju eth0

A

nmcli con show “eth0”

50
Q

prikazivanje statusa svih mreznih interfejsa

A

nmcli dev status

51
Q

listanje glavnih komandi i opcija yum -a

A

yum help

52
Q

pomoc u vezi koriscenja programa yuma

A

yum help install

53
Q

uvid verzije yuma

A

yum –version

54
Q

pregled svih dostupnih yum paketa

A

yum list

55
Q

pregled dostupnih yum paketa sa recima lsb bilo gde u tekstu

A

yum list lsb

56
Q

listanje svih instaliranih yum paketa

A

yum list installed

57
Q

listanje svih dostupnih yum paketa

A

yum list available

58
Q

pregled podataka o paketu zlib

A

yum info zlib

59
Q

instalacija paketa preko yum -a

A

yum install

60
Q

instalacija vise paketa preko yum -a

A

yum install <ime> <ime></ime></ime>

61
Q

instalacija paketa preko yum -a bez potvrde

A

yum install -y

62
Q

reinstalacija paketa u slucaju greske preko yuma

A

yum reinstall

63
Q

deinstalacija yum paketa

A

yum remove

64
Q

pretraga paketa prema poljima name i summary ne osetljiva na velika i mala slova

A

yum search

65
Q

pretraga paketa preko svim poljima rpm paketa

A

yum search all

66
Q

preuzimanje paketa bez instalacije yum

A

yum install –downloadonly

67
Q

provera svih dostupnih ispravki

A

yum check-update

68
Q

nadogradnja paketa yum

A

yum update samba
yum update samba wireshark -y

69
Q

nadogradnja svih paketa yum

A

yum update

70
Q

listanje grupa paketa

A

yum group list

71
Q

informacije o grupi paketa

A

yum group info

72
Q

listanje svih repozetorijuma koji se trenutno koriste

A

yum repolist

73
Q

listanje svih repozetorijuma koji se trenutno koriste

A

yum repolist

74
Q

listanje svih repozetorijuma enabled ili disabled

A

yum repolist all

75
Q

ukljucenje i iskljucenje podrske za repozetorijum

A

yum-config-manager –enable
yum-config-manager –disable

76
Q

dodavanje repozetorijuma

A

yum-config-manager –add-repo <URL></URL>

77
Q

lociranje paketa koji sadrzi datoteku

A

yum provides lsb_release

78
Q

pregled dnf istorije, i specificne transakcije sa ID 3

A

yum history
yum history list 3

79
Q

opoziv transakcije ID 3 ,
opoziv opoziva transakcije ID 3

A

yum history undo 3
yum history redo 3

80
Q

preuzimanje paketa bez instalacije

A

dnf download

81
Q

nadogradnja jednog ili vise paketa istovremeno bez potvrde putem dnfa

A

dnf upgrade
dnf upgrade <naziv 1> <naziv 2> -y

82
Q

nadogradnja svih paketa dnfa

A

dnf upgrade

83
Q

ukljucenje podrske za repozitorijuma dnf-a
i onesposobljavanje repozetorijuma

A

dnf config-manager –set-enable
dnf config-manager –set-disable

84
Q

Listanje svih apt paketa

A

sudo apt list

85
Q

pretraga informacije o paketu preko apt

A

apt-cache show

86
Q

azuriranje lokalnie baze podataka ispravki apt

A

sudo apt-get update

87
Q

instalacija jednog apt paketa

A

sudo apt-get install

88
Q

reinstalacija apt paketa

A

sudo apt-get install –reinstall

89
Q

deinstalacija sa zadrzavanjem konfiguracionh datoteka uz potvrdu apt

A

sudo apt-get remove -y

90
Q

deinstalacija sa brisanjem konfiguracionih datoteka apt

A

sudo apt-get purge

91
Q

apt azuriranje jednog softvera

A

sudo apt-get –only-upgrade install

92
Q

listanje ne instaliranih paketa aptitude

A

sudo aptitude search ‘!~i’

93
Q

listanje instaliranih paketa aptitude

A

sudo aptitude seatch ‘~i’

94
Q

pretraga informacija paketima koji sadrze rez p7zip aptitude

A

sudo aptitude search p7zip

95
Q

pregled informacije o jednom paketu
aptitude

A

sudo aptitude show

96
Q

Opcije tar programa

A
97
Q

Opcije tar programa

A

c t x f

98
Q

Upravljanje arhiva

A

tar cf, tar tf, tar xf

99
Q

Kreiranje komprimovane tar arhive

A

gzip, bzip2, xz
z j J

100
Q

kreiranje arhive koja zadrzava i dodatne ACL oce

A

tar –acl -czf

101
Q

komanda za ogranicenje podrazumevana ovlascenja vlasnik grupe x a ostalim korisnicima wx.

A

umask 013

102
Q

komanda koja omogucava ucitavanje promena konfiguracije servisa firewalld bez restartovanja servisa

A

systemctl reload firewalld

103
Q

komanda za prikazivanje imena racunara

A

hostname

104
Q

konfiguraciona datoteka imena racunara

A

/etc/hostname/

105
Q

konfiguraciona datoteka imena racunara na RHEL 6 i starijim verzijama

A

/etc/sysconfig/network

106
Q

Pregled svig imena

A

hostnamectl status

107
Q

podesavanja sva 3 imena od jednom

A

hostnamectl set-hostname

108
Q

promena oblika imena posebno

A

hostnamectl set-hostname –static
hostnamectl set-hostname –transient
hostnamectl set-hostname –pretty

109
Q

nacin testiranja konekcije

A

ping

110
Q

kompletna informacija ovlascenja datoteke

A

getfacl

111
Q

komanda za prikazivanje list jedinica za systemd

A

systemd -t help

112
Q

starija verzija systemctl statusa

A

service <ime> status</ime>

113
Q

komandu koja proverava IP adrese svih rutera kroz koje paket prolazi do IP adrese odredišta 192.168.10.15

A

traceroute

114
Q

komandu koja instalira grupu paketa Development Tools.

A

yum grou

115
Q

Pretraga informacije o paketu

A

apt-cache show