Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/70

Click to flip

70 Cards in this Set

  • Front
  • Back
Main services of OS
Execution of program
Input and output operations
Communication between programs
Error detection and reporting
Manipulation of all types of files
Management of users and security

"Efficiently" and "securely"
Five popular flavours
AIX, BSD, Linux, HP-UX, Solaris
Determine which unix system is being used
uname
Immediate predecessor of UNIX
MULTICS
Main Branches
USG , Bell labs and BSD
USG -> SystemV
Bell Labs -> Linux
Why was UNIX accepted
ever evolving OS that was used widely
useful in a variety of applications
open source community
Set an environment variable
LINES=25
export LINES
Command to fide a program
whereis
5 environment variables
HOME
MAIL
PATH
PWD
TERM
Pico commands to
Save,
Read
CTRL-O (WRITEOUT)
CTRL-R (READ)

CTRL-K (COPY)
CTRL-U (PASTE)
vi Replace all instances of dude with dude2
1,$s/dude/dude2/g
vi copy & paste
y2W, 4yb, y
p 5p
Emacs Save
Ctrl-X + Ctrl-S
Emacs Copy, Paste
Esc W
Ctrl Y
Emacs search and replace
query-replace
Create / Delete Directory
mkdir
rmdir
-p makes parent directories
Display File Types
file
Where are file # stored
per process file descriptor table
Where is user/group information
/etc/group
/etc/passwd
Change file permissions:
owner everything
group read
everyone nothing
chmod u=rwx,g=r,o=
chmod u+rwx
chmod 740
set default permission
umask 022 (defaults to 755)
list options
directories
long
all
ls -
d
l
a
display the contents of a file
cat
display the contents of a file with line numbers
cat -n
page starting 2 lines before the word lorenb
more +/lorenb
Last five lines of a file
tail -5 file
copy command
cp
move command
mv
delete command
rm
copy, move, delete options
preserve permissions, timestamps
recursive
force overwrite of files
prompt overwrite
p
r
f
i
File differences
diff file1 file2
Print a document
lpr #5 -P PRINTERNAME file
Printer status
lpq
Remove job from printer
lprm
Printer commands for System V
lp, lpstat, cancel
Get the number of bytes in a file
wc -c file
Get just unique records
uniq
zip file
gzip file
list a gzip file
gzip -l file
unzip file
gunzip file.gz
display uncompressed contents of compressed file to screen
zcat
sorting a table by second column
sort +1 file
select fields 2 and 3 from a file
cut -f3,4 file
join two tables
paste
find some file whose size > 1000 bytes
find / -size +1000c
Encrypt a file
crypt 44444 < file > file.crypt
decrypt a file
crypt 44444 < file.crypt > file
does a hard link share an inode
yes
disadvantages of hard link
can not span devices
only allowed by superusers
files deleted and replaced are lost
Command to create a hard link
ln file file.hard
Command to create a soft link
ln -s file file.soft
make a fifo
mkfifo fifo 1
delete fifo
rmfifo fifo1
5 ways to share files
copy them
common login
share a users directory (permissions)
common group
Links
5 UNIX Process states
ready
running
waiting
swapped
zombie
priority methods
FCFS
RR
list processes
- hide leaders
- for a user
ps
-a
-u 147
5 TCP/IP Layers
Device
Link
Network
Transport
Application
return the name of the host
hostname
display who is logged into a server
rwho servername
rusers servername
remote copy
rcp ~/file server:file
Make an already defined variable readonly
readonly variable
remove a variable
unset variable
split a variable into argument list
set something and something else
$1 $2 $3 $4
Command to create an archive
ar r file fiel file
Old way of creating a source control file, checking in and out
admin -ifile.c s.file.c

get s.file.c

unget s.file.c

delta s.file.c
New way of creating source ctrl file
sccs create input.c

co input.c

ci input.c

rlog
5 components of hardware
primary storage, CPU, secondary storage, io devices, bus
6 unix layers
device drivers
kernel
system call interface
language libraries
unix shell
applications
4 kernel functions
file mgmt
storage mgmt
process mgmt
IPC
CPU scheduler