Professional Documents
Culture Documents
Intro Unix 2016 2
Intro Unix 2016 2
Intro Unix 2016 2
SEEM 3460
Operating Systems
SEEM 3460
Unix Overview
Consistency in commands:
4.3BSD
System V Release 3
SEEM 3460
Logging In
SEEM 3460
Shells
SEEM 3460
Running A Utility
SEEM 3460
System administration
Filters
Example: cp a b | ls *.*
Miscellaneous
SEEM 3460
10
Logging Out
11
Store files
Contains sub-directories
SEEM 3460
12
Directories
sac
lec
glass
file1
file2
SEEM 3460
wlam
13
Pathname
/sac/file1 a file
/sac/lec a directory
/sac/lec/file2 a file
SEEM 3460
14
Home Directory
15
cuse93:>
SEEM 3460
16
cuse93:> cd reverse
SEEM 3460
17
General Command
[Ctrl]
[Ctrl]
[Ctrl]
[Ctrl]
o
x
t
j
[Ctrl]
[Ctrl]
[Ctrl]
[Ctrl]
Move
Move
Move
Move
SEEM 3460
18
cuse93:> ls
list all files in current directory
reverse.c
cuse93:> ls -l reverse.c
long listing of reverse.c
-rw-r--r-- 1 glass 106 Jan 30 19:46 reverse.c
SEEM 3460
19
/* Function prototype */
void reverse (char* before, char* after);
/*******************************************/
int main()
{
char str[100]; /* buffer to hold reversed string */
reverse("cat",str); /* reverse the string "cat" */
printf ("reverse("cat") = %s\n", str);
:
:
SEEM 3460
20
/* Function prototype */
void reverse (char* before, char* after);
/*******************************************/
int main()
:
:
SEEM 3460
21