Открыть Электронные книги
Категории
Открыть Аудиокниги
Категории
Открыть Журналы
Категории
Открыть Документы
Категории
● A shell script is a file of executable commands that have been stored in a text file.
The Visual Editor, vi, or its newer version, VI improved vim, is a remarkably powerful editor.
#!/bin/bash
CURRENT_DIRECTORY=`pwd`
echo "You are in $CURRENT_DIRECTORY"
Также возможно получить входные данные от пользователя скрипта и назначить эти входные
данные переменной с помощью команды read
#!/bin/bash
echo -n "What is your name? "
read NAME
echo "Hello $NAME!"
The $0 variable contains the name of the script itself. Additionally, you can pass arguments to your
script
After a program runs it returns an exit code which is an integer between 0 and 255.
● This can be tested through the $? variable to see if the previous command completed
successfully. The grep command returns 0 if the string was found and 1 otherwise.
Вы также можете установить код выхода вашего собственного скрипта с помощью команды
exit
A while loop keeps running and on each iteration perform a test to see if it should run another time
Конспект 12
Центральный процессор (также известный как центральный процессор или processor)
выполняет решение и расчеты для операционной Системы.
Random Access Memory (RAM) is where program and system data is stored.
13 конспект
● A typical Linux system has thousands of files. The Filesystem Hierarchy Standard (FHS) provides
a guideline for distributions on how to organize these files.
● The Linux kernel is the core of the GNU/Linux operating system. It is important to understand
the role of the Linux kernel and how it both processes and provides information about the
system
● Learn how to view running processes with the ps, top and other commands.
Processes can be mapped into a “tree” which can be viewed with the pstree command
Команда ps также может использоваться с командами head и grep для фильтрации отображаемых
процессов
14 конспект
Функции
Сетевой пакет - метод доставки данных, используемый для передачи сетевого сообщения между
хостами
Сетевая маска - система нумерации, которая определяет, какие IP-адреса являются частью сети
DHCP - Протокол динамической конфигурации хоста присваивает хостам имя хоста, IP -адреса и
другую информацию, связанную с сетью.