By Dr. David Roster and Dr. Lydia Ayers
By Dr. David Roster and Dr. Lydia Ayers
Unix
Unix
Unix
This
Directories
Files
How to use the man command
Several other useful commands
Directories
When
Directories
are stored in a
tree-like structure
Directories
The
Directories
If
Directories
The
Directories
For
example:
pwd
/tmp_mnt/homes/layers/vinaweb
cd..
pwd
/tmp_mnt/homes/layers/
Directory Structure
du is
Directory Structure
Type:du
Output:
592labs/lab1
912labs/lab2
939labs/lab3
1261labs/lab4
505labs/lab5
140labs/lab6
213labs/lab7
911lectures/fireworks
70079lectures
Directory Structure
By default the numbers listed for the size of
the data in each directory (the first column
on the previous page) are usually for 512
byte blocks
But most computer users dont measure
things in blocks of 512 bytes
It is more useful to have the numbers
expressed in KB (kilobytes).
Directory Structure
Type:duk
Output:
1184labs/lab1
1824labs/lab2
1878labs/lab3
2521labs/lab4
1009labs/lab5
279labs/lab6
425labs/lab7
1822lectures/fireworks
140158lectures
File Information
Use
cdvinaweb
ls
index.htmlvina.jpg
File Information
Type
File Information
For
example:
cdvinaweb
lsl
rwrr1layers3682Mar1315:18index.html
rwrr1layers2542Nov2111:14vina.jpg
File Content
To
File Content
NOTE:
File
Sometimes
File
For
Type: file*
Manual
There
Manual
The
Manual
For
Type: mandate
Output:
DATE(1V)USERCOMMANDSDATE(1V)
NAME
datedisplayorsetthedate
SYNOPSIS
date[u][a[]sss.fff][yymmddhhmm[.ss]][+format]
(it shows more information ...)
Manual
For
Type: manman
Output:
MAN(1)USERCOMMANDSMAN(1)
NAME
mandisplayreferencemanualpages;findreferencepages
bykeyword
DESCRIPTION
mandisplaysinformationfromthereferencemanuals.Itcan
displaycompletemanualpagesthatyouselectbytitle,or
onelinesummariesselectedeitherbykeyword(k),orby
thenameofanassociatedfile(f).
(it shows more information ...)
Finger
The
Finger
Type: fingerhorner
Output:
loginname:horner
Inreallife:AndrewHorner
Office:FACULTY
Directory:/homes/horner
Shell:/bin/tcsh
OnsinceNov1310:34:23onttyp21day1hourIdleTime
Plan:
officephone:(852)etc.
CurrentlyIamworkingonsynthesizingtraditional
Chineseinstruments
Finger
Finger
For
example,
Type:fingeralbert
Output:
Loginname:juergenInreallife:Prof.JuergenAlbert
Office:guestofdw,expire31/03/98Homephone:no_dialin
Directory:/homes/juergenShell:/bin/tcsh
Neverloggedin.
NoPlan.
Date
The date command shows the current time
and date using the local time system.
Type: date
Output: MonMar2311:09:44HKT1998
The -u option shows the time and date using
Greenwich Mean Time (GMT) format instead of local
time.
Type:dateu
Output: MonMar2303:11:42GMT1998
Cal
The
Alternatively,
Cal
Other
Enter
Cal
For
Type: cal61995
Output:
June1995
SMTuWThFS
123
45678910
11121314151617
18192021222324
252627282930
Banner
This program creates a banner using
ASCII. You could import the resulting text
into an email or fax message. For
example, a message from Snoopy to Vina:
Type: bannerwoof
Output:
################
#######
###########
#########
#########
###########
Banner
Vina's Answer:
Type:bannermiaow!
Output:
###
##############
##############
############
###############
##############
##############
Have
filled in the course evaluation?
YES?
NO?
THANK YOU!
IT'S NOT
TOO LATE!
CLICK HERE!
###
##############
##############
############
###############
##############
##############