Szesnaste_21

 0    21 Fiche    michalesq
басу ойын өзіңді тексер
 
сұрақ - жауап -
check if packages coming from outside repo are allowed in inside repo
оқуды бастаңыз
gpgcheck
What is the input in. repo saying about certificate?
оқуды бастаңыз
gpgkey
show enabled repos in the system
оқуды бастаңыз
yum repolist
hows all repos in the system
оқуды бастаңыз
yum repolist all
How to add repo automatically?
оқуды бастаңыз
yum-config-manager --add-repo=http://URL to repo
How to disable repo?
оқуды бастаңыз
enabled = 0 // yum-config-manager --disable <repoId>
How to perform obtaining GPG key and installation in the system?
оқуды бастаңыз
Go to the site where GPGs are available, i.e. Fedora, download gpg-key and put it in /etc/pki/rpm-gpg, copy to /etc/pki/rpm-gpg/nazwa_gpg, add gpgcheck=1, add pgpkey=file:///etc/pki/rpm-gpg/nazwa_gpg
Displays info about Kernel?
оқуды бастаңыз
uname -r
Info about installed kernel and what can be downloaded
оқуды бастаңыз
yum list kernel
Update kernel automatically
оқуды бастаңыз
yum update kernel
update kernel from. rpm:
оқуды бастаңыз
1) yumdownloader kernel, 2) yum install linux-firmware, 3) rpm -ivh new_kernel. rpm
How to boot system with different kernel?
оқуды бастаңыз
grub2-set-default 1
Replace word hello with word world with sed command
оқуды бастаңыз
sed -i 's/hello/world/' file. txt
Replace every occurrence of Nick with John in report. txt
оқуды бастаңыз
sed 's/Nick|nick/John/g' report. txt
Add 8 spaces to the left of a text for pretty printing.
оқуды бастаңыз
sed 's/^/ /' file. txt >file_new. txt
Display only one paragraph, starting with "Of course" and ending in "attention you pay"
оқуды бастаңыз
sed -n '/Of course/,/attention you \ pay/p' myfile
Show only lines 12-18 of file. txt
оқуды бастаңыз
sed -n 12,18p file. txt
Show all of file. txt except for lines from 12 to 18
оқуды бастаңыз
sed 12,18d file. txt
Double-space file. txt
оқуды бастаңыз
sed G file. txt
Write all commands in script. sed and execute them
оқуды бастаңыз
sed -f script. sed file. txt
Replace ham with cheese in file. txt except in the 5th line
оқуды бастаңыз
sed '5! s/ham/cheese/' file. txt

Пікір қалдыру үшін жүйеге кіру керек.