Beruflich Dokumente
Kultur Dokumente
www.huawei.com
Objectives
Page2
Contents
1. Features of UNIX
4. User Management
5. Resource Management 6. Network Management 7. Restart and Shutdown the UNIX
Page3
UNIX Features
Multi-Tasking
Multi-User
Parallel Processing Pipe Shell High Security
Reliable
Network Oriented File System
Page4
csh cpp
vi
K shellC shell
Application Program
Outer Layer Program
Page5
Bourne
Original and most popular Provided by every UNIX The base of three Shell Extensions of B Shell K Shell ksh $ B Shell bash $
Shell
Korn
Shell
C-Shell
Shell
The most
C Shell
csh
powerful Shell
Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. Page6
Contents
1. Features of UNIX
4. User Management
5. Resource Management 6. Network Management 7. Restart and Shutdown the UNIX
Page7
Login UNIX
telnet 10.77.218.31
Page8
Page9
Page10
Page11
Page12
Control Keys:
Page13
Contents
1. Features of UNIX
4. User Management
5. Resource Management 6. Network Management 7. Restart and Shutdown the UNIX
Page14
Contents
3. File System Management
3.1 Basic knowledge of File System
3.2 File Management Commands 3.3 View and Edit Commands 3.4 Other Common Commands
Page15
File System
/
/bin
/sbin
/dev
/etc
/usr
/opt
/mnt
/tmp
/home
/etc/passwd
/opt/sybase
directory file
Page16
File Attributes
Group
File Size
Name
File Typ e
Absolute Mode:
Symbolic Mode:
Page18
Page19
Contents
3. File System Management
3.1 Basic knowledge of File System
3.2 File Management Commands 3.3 View and Edit Commands 3.4 Other Common Commands
Page20
Create Commands
Page21
Remove Commands
Page22
Copy Command
Page23
Move Command
Page24
Contents
3. File System Management
3.1 Basic knowledge of File System
3.2 File Management Commands 3.3 View and Edit Commands 3.4 Other Common Commands
Page25
View Commands
Page26
Page27
Page28
Edit Command
vi:
Function
Switch between Entry Mode and Command Mode
Inserting text Moving around in a file
Command
ESC
aAiIoO hjkl; Ctrl +F Ctrl +B
Deleting text Copying and moving text Save Change & Quit vi
Page29
Contents
3. File System Management
3.1 Basic knowledge of File System
3.2 File Management Commands 3.3 View and Edit Commands 3.4 Other Common Commands
Page30
Count Command
Page31
Compare Command
files.
Page32
Search Commands
Page33
Page34
Page35
Page36
Page37
Page38
Format
.tar
.zip .gz .Z .tar.gz
.tar.Z
Page39
Contents
1. Features of UNIX
4. User Management
5. Resource Management 6. Network Management 7. Restart and Shutdown the UNIX
Page40
User A
User B Group 1
User C
User D Group 2
Page41
Group Management:
Page42
User Management:
Page43
Password management:
Page44
Other Commands
who am i:
whoami:
Page45
Page46
last:
Page47
Contents
1. Features of UNIX
4. User Management
5. Resource Management 6. Network Management 7. Restart and Shutdown the UNIX
Page48
Page49
Page50
df -k:
Page51
du -k:
Page52
Process Management
ps -ef:
Page53
kill:
kill -9:
Page54
Contents
1. Features of UNIX
4. User Management
5. Resource Management 6. Network Management 7. Restart and Shutdown the UNIX
Page55
ifconfig -a
Page56
hostname:
hostname newname:
Page57
netstat -an:
Page58
ping:
Page59
File Transfer
ascii
bin cd
Changes the working directory on the local machine. Retrieves the remote-file and store it on the local machine. Expands the remote-files on the remote machine and do a get for each file name thus produced.
Page60
Usage of FTP
To get a file from Workstation B (/usr/home), execute the following commands in Workstation A:
% ftp IP address of B User name: XXXX Note: user name Password: XXXX Note: user password ftp>ascii (ascii mode is used to transfer text files while bin mode to
ftp>cd /usr/home Note: remote directory ftp>lcd /usr/m2000 Note: local directory ftp>get filename Note: get: download, put: upload ftp>bye Note: exit
Page61
Contents
1. Features of UNIX
4. User Management
5. Resource Management 6. Network Management 7. Restart and Shutdown the UNIX
Page62
shutdown -y -g( ) -i ( )
Page63
init ( ):
Page64
Command
shutdown -i5
init 5 halt poweroff
Note: If you use halt or poweroff, the system will go down directly without notice other users, so does reboot. Its recommended to use shutdown or init.
Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. Page65
Summary
Features of UNIX
User Management
Resource Management Network Management Restart and Shutdown the UNIX
Page66
Thank you
www.huawei.com