- •Національний авіаційний університет
- •Лабораторний практикум з дисципліни «Мультиплатформені операційні середовища»
- •Визначення, позначення і скорочення
- •2.2. Використання клавіатури пк в ос qnx
- •2.3. Основні команди в ос qnx
- •2.4. Робота в файловій системі ос qnx
- •5. Завдання на лабораторну роботу
- •2.5. Ініціювання і завершення роботи в графічній оболонці Photon
- •3. Зміст звіту про лабораторну роботу
- •4. Питання для самоконтролю
- •Лабораторна робота № 2. Компіляція програм Короткі теоретичні відомості
- •Мікроядро
- •Системні і користувацькі процеси
- •Драйвери пристроїв
- •Зв'язок між процесами (ipc)
- •Qnx як мережа
- •Текст програми
- •Лабораторна робота №4. Повідомлення Короткі теоретичні відомості Архітектура і структура обміну повідомленнями
- •Текст програми
- •Послідовність дій
- •Результати
- •Лабораторна робота № 5. Тайм-аути Короткі теоретичні відомості Тайм-аути ядра
- •Текст програми
- •Текст програми
- •Послідовність дій
- •Результати
- •Послідовність дій
- •Результати
- •Лабораторна робота № 8. Створення найпростішого сервера в ос qnx
- •Короткі теоретичні відомості Функція Socket
- •Функція Bind
- •Функції listen і accept
- •Читання з сокета
- •Запис в сокет
- •Закриття сокета
2.5. Ініціювання і завершення роботи в графічній оболонці Photon
Крім командного рядка в ОС QNX є графічна оболонка Photon. Дана графічна оболонка виконана в стандарті Motif і заснована, як і операційна система, на міжпроцесних повідомленнях.
Запуск графічної оболонки Photon здійснюється за допомогою команди:
ph
Вихід з графічної оболонки, завершення функціонування оболонки відбувається при виконанні команди shutdown меню оболонки Photon.
3. Зміст звіту про лабораторну роботу
1. Титульний лист.
2. Мета роботи.
3. Короткі теоретичні відомості про основні команди ОС QNX.
4. Індивідуальне завдання до лабораторної роботи і опис його виконання.
5. Висновки.
4. Питання для самоконтролю
1. Чому необхідно коректно завершувати сеанс роботи в багатокористувацьких операційних системах?
2. Які суттєві відмінності є у використанні клавіш і їх поєднання в ОС QNX порівняно з ОС MS Windows?
3. Назвіть основи синтаксису будь-якої команди ОС QNX.
4. Назвіть основні команди роботи з файлами, директоріями, інші найбільш часто використовувані команди ОС QNX.
5. Яке правило утворення імен файлів в ОС QNX? Чи є відмінності правил утворення імен файлів в ОС QNX і MS Windows?
6. Чому суперкористувач в ОС QNX має ім'я root?
7. Назвіть основні директорії, існуючі практично в будь-якій файловій системі ОС QNX.
8. Яким чином можна ініціювати і завершити роботу графічної оболонки Photon?
9. У чому істотна відмінність в роботі з ОС QNX при використанні shell і Photon?
5. Завдання на лабораторну роботу
1. Освоїти коректні початок і завершення роботи в командному режимі ОС QNX для простого користувача і суперкористувача. Відомості про ім'я та пароль отримати у викладача.
2. Засвоїти призначення основних клавіш і їх поєднань при роботі в командному режимі ОС QNX і освоїти практичну роботу з ними.
3. Засвоїти синтаксис команд ОС QNX і освоїти роботу з командами, зазначеними в розділі «Основні команди в ОС QNX».
4. Знайти в файловій системі директорії, зазначені в розділі «Робота в файлової системі ОС QNX» і вивчити їх зміст.
5. Ініціювати роботу графічної оболонки Photon і вивчити основи роботи з нею, використовуючи для цього документацію по Photon.
Перелік основних утиліт ОС QNX
alive |
output list of nodes (QNX) |
awk |
pattern scanning and processing language (POSIX) |
basename |
return nondirectory portion of pathname (POSIX) |
bc |
arbitrary-precision arithmetic language (POSIX) |
buildqnx |
build a custom version of QNX (QNX) |
cat |
concatenate and print files (POSIX) |
cc |
compile command (UNIX) |
cd |
change working directory (POSIX) |
cfont |
load font data into EGA or VGA cards (QNX) |
chgrp |
change file group ownership (POSIX) |
chkfsys |
check an entire filesystem for consistency (QNX) |
chmod |
change file modes (POSIX) |
chown |
change file ownership (POSIX) |
ci |
check in RCS revisions (UNIX) |
cksum |
display file checksums and block counts (POSIX) |
clock |
display date and time on console (QNX) |
cmp |
compare two files (POSIX) |
co |
check out RCS revisions (UNIX) |
comm |
select or reject lines common to two files (POSIX) |
cp |
copy files (POSIX) |
cpio |
copy file archives in and out (UNIX) |
cron |
clock server (UNIX) |
crontab |
schedule periodic background work (POSIX) |
ctags |
generate tags files (POSIX) |
cut |
cut out selected fields of each line of a file (POSIX) |
date |
display or set the date and time (POSIX) |
dcheck |
check a disk for bad blocks (QNX) |
Debugger |
low-level system debugger (QNX) |
Dev |
Device Manager (QNX) |
Dev.con |
console driver (QNX) |
Dev.par |
parallel device driver (QNX) |
Dev.pty |
pseudo tty driver (QNX) |
Dev.ser |
serial device driver (QNX) |
df |
report disk space free (POSIX) |
diff |
report the differences between two files (POSIX) |
dinit |
disk initialization (QNX) |
dirname |
return directory portion of pathname (POSIX) |
Dosfsys |
DOS file system manager (QNX) |
du |
estimate disk space usage (POSIX) |
dumper |
dump postmortem state of a program (QNX) |
echo |
write arguments to standard output (POSIX) |
emu87 |
80x87 floating point emulator (QNX) |
env |
set environment for command invocation (POSIX) |
expand |
convert tabs to spaces (POSIX) |
expr |
evaluate arguments as an expression (POSIX) |
false |
return false value (POSIX) |
fcat |
display compressed files (UNIX) |
fdformat |
format floppy diskettes (QNX) |
fdisk |
create QNX disk partition (QNX) |
find |
find files (POSIX) |
finger |
display information about a user (UNIX) |
freeze |
compress and uncompress files (UNIX) |
Fsys |
File system Manager (QNX) |
Fays.aha |
Adaptec SCSI host adapter (QNX) |
Fsys.floppy |
floppy disk controller (QNX) |
Fsys.ps2e |
driver for the PS/2 ESDI controller (QNX) |
Fsys.ps2m |
driver for the IBM PS/2 MFM Disk Controller (QNX) |
Fsys.ps2s |
driver for the PS/2 SCSI controller (QNX) |
Fsys.qic02 |
QIC-02 tape driver (QNX) |
Fsys.wd |
driver for PC/AT fixed disk interface (QNX) |
fullpath |
display network-qualified pathnames (QNX) |
grep |
search for string patterns (POSIX) |
hd |
display files in decimal, hex, octal, or ASCII (UNIX) |
head |
copy the first part of files (POSIX) |
id |
return user ID (POSIX) |
ident |
identify files (UNIX) |
infocmp |
output the contents of a terminfo capability file (UNIX) |
join |
relational database operator (POSIX) |
kbd |
specify keyboard layout (QNX) |
kedit |
edit a keyboard layout file (QNX) |
kill |
terminate or signal processes (POSIX) |
less |
interactive paginator (UNIX) |
lex |
lexical analyzer generator (POSIX) |
license |
license software for use (QNX) |
ln |
create links to (aliases for) files (POSIX) |
logger |
log messages (POSIX) |
login |
log in (UNIX) |
logname |
return user's login name (POSIX) |
logout |
terminate a session (UNIX) |
lp |
send files to a printer (POSIX) |
lpc |
line printer control program (UNIX) |
lpq |
display print queue status (UNIX) |
lprm |
remove jobs from the printer queue (UNIX) |
lpsrvr |
print server (QNX) |
ls |
list directory contents (POSIX) |
mailx |
read or send mail messages (POSIX) |
make |
maintain, update, and regenerate groups of programs (POSIX) |
melt |
uncompress files (UNIX) |
mkdir |
make directories (POSIX) |
mkfifo |
make FIFO special files (POSIX) |
modem |
modem handler to answer calls (ONX) |
more |
display files on a page-by-page basis (POSIX) |
mount |
mount partitions and file systems (UNIX) |
Mouse |
mouse driver (QNX) |
mv |
move files (POSIX) |
nameloc |
name locator (ONX) |
Net |
Network Manager (ONX) |
Net.arcnet |
Arcnet network driver (QNX) |
Net.ether8003 |
WD/SMC 8003 Ethernet network driver (QNX) |
netboot |
service bout requests from the network (QNX) |
netinfo |
display network events (QNX) |
netmap |
load the Network Manager's logical-to-physical node ID mapping table (QNX) |
netpoll |
display or change default polling parameters of a node (QNX) |
newgrp |
change (o a new group (POSIX) |
nice |
run a utility with an altered nice value (POSIX) |
nohup |
invoke a command immune to hangups (POSIX) |
on |
execute a command on another node or tty (QNX) |
passwd |
change login password (POSIX) |
paste |
merge corresponding or subsequent lines of files (POSIX) |
pax |
portable archive interchange (POSIX) |
Pipe |
Pipe Manager (QNX) |
pr |
print files (POSIX) |
prefix |
examine or change the pathname prefix tree (QNX) |
printf |
write formatted output (POSIX) |
Proc |
Process Manager (QNX) |
ps |
report process status (POSIX) |
pwd |
print working directory name (POSIX) |
qcp |
Quantum communications protocol (QNX) |
qtalk |
talk over communications line (QNX) |
rcs |
change RCS file attributes (UNIX) |
rcsclean |
clean up working files (UNIX) |
rcsdiff |
compare RCS revisions (UNIX) |
rcsmerge |
merge RCS revisions (UNIX) |
renice |
set nice values of running processes (POSIX) |
rlog |
print log messages and other info about RCS files (UNIX) |
rm |
remove files (POSIX) |
rmdir |
remove directories (POSIX) |
rtc |
set or get date from realtime clock (QNX) |
sac |
display system activity at each priority level (QNX) |
sed |
stream editor (POSIX) |
sh |
command interpreter (POSIX) |
shutdown |
shut down and reboot the system (QNX) |
sin |
display system information (QNX) |
sinit |
system initialization (QNX) |
size |
print section sizes of object and load modules (UNIX) |
slay |
kill a process by name (QNX) |
sleep |
suspend execution for an interval (POSIX) |
sort |
sort, merge, or sequence-check text files (POSIX) |
spatch |
full-screen patch utility (QNX) |
split |
split files into pieces (POSIX) |
strings |
find printable strings in files (POSIX) |
stty |
set tty attributes (POSIX) |
su |
switch userid (UNIX) |
sync |
update filesystems to match cached data (UNIX) |
tail |
copy the last part of a file (POSIX) |
tape |
control a tape driver (QNX) |
tar |
read and write tape archive files (UNIX) |
tee |
duplicate standard input (POSIX) |
termdef |
display or set the terminal type (QNX) |
textto |
convert text files to QNX 2, QNX 4, or DOS format (QNX) |
tic |
terminfo compiler (UNIX) |
ticksize |
set the timeslice rate (QNX) |
time |
determine the execution time of a command (UNIX) |
tinit |
terminal initialization (QNX) |
touch |
change file access and modification times (POSIX) |
tr |
translate characters (POSIX) |
true |
return true value (POSIX) |
tty |
return user's terminal name (POSIX) |
umask |
get or set the file mode creation mask (POSIX) |
umount |
unmount tilesystems or partitions (UNIX) |
uname |
return system name (POSIX) |
unexpand |
convert spaces to tabs (POSIX) |
uniq |
report or filter oul repeated lines in a file (POSIX) |
use |
print a usage message (QNX) |
usemsg |
change usage message for a command (QNX) |
vedit |
VEDIT Text Editor (QNX) |
vi |
visual display editor (POSIX) |
vol |
manage multi-volume archives (QNX) |
wall |
broadcast a message (UNIX) |
wc |
word, line, and byte count (POSIX) |
which |
locate a program file (UNIX) |
who |
display who is on the system (POSIX) |
write |
write a message to a user's terminal (POSIX) |
ws |
walk directory structure executing a command (QNX) |
xargs |
construct argument list(s) and execute program (POSIX) |
yacc |
a parser generator (POSIX) |
zap |
destroy a damaged file (QNX) |
