Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
.profile
Sample contents
PATH=/bin:/usr/bin:/usr/ucb:.
TERM=vt100
export TERM
File Handling
.mailrc
vi Initialisation File:
.exrc
Create files
pico, vi or emacs
cat >filename
cat /dev/null > filename
Unix editors
input from keyboard
create empty file
Destroy files
rm filename
rm -i filename
interactive delete
Copy files
Rename file
mv oldname newname
ls
ls -l [file1 file2 ..]
The following are popular and useful Unix utilities, worth further investigation.
grep
wc
diff
file
find
od
tee
ar
tar
stty
sort
pr
nohup
make
sccs
awk
long listing
Change directory
cd
cd directory-name
pwd
Make a directory
mkdir
Destroy a directory
rmdir directory-name
must be empty
Help
man command
help on command
date
Other users
who
users on system
Whats happening
ps
programs running
Change password
passwd
Information Commands
Communication Commands
Send a message
mail username
Read a message
Interactive conversation
talk username
write username
Common vi Commands
To enter new text
a or i
Terminate with ESC
x
for single characters
dw
for words
dd
for lines
u
Arrow keys and others
To delete text
refuse messages
informed on arrival
q!
/text-to-be-found
% mesg y
% biff n
accept messages
informed at login
Pipes
% who | wc -l
% cc file.c |& more
Recall commands
% !4
% !c
% !!
alias Command
% alias
% alias
% alias
dir
h
ls
ls
history
/bin/ls -l
To undefine an alias:
% unalias dir
Repeat command 4
Repeat command starting with c
Repeat last command
.login
Sample Contents:
setenv TERM vt100 Set terminal
stty erase '^?'
Use Del for delete
.cshrc
C Shell Features
% set history = 40
% history
% set ignoreeof
% set noclobber
C Shell Variables
Input/Output Redirection
Redirect output
Redirect input
Redirect error stream C Shell
Bourne Shell
ZZ
% ^old ^new
% !4:s/old/new
Sample contents:
set
set
set