You are on page 1of 28

Lab1

(VMware Player & Ubuntu Linux)

_403250626_

VMware Workstation Player

VMware Workstation Player VMware


VMware Workstation VMware Workstation Pro
VMware Workstation Player
()
http://www.vm ware.com/tw.h tml
Linux Windows

VMware

Create a New Virtual Machine

2
Linux

Ubuntu

4
Customize Hardware

5
Linux Ubuntu NAT bridge

Linux ?

6
Linux Linux

(Operation System)

(Ready)

Unix (Bell lab.) Ken Thompson


1971-1973 Dennis Ritchie C
Unix

7
Open source Apache / BSD /
GPL / MIT

Linux
http://www.kernel.org Linux
(Kernel)

Linux kernel 3.0


(MainLine)
(longterm)

Linux distributions Linux Kernel + Free Software


+ Documentations(Tools) +

1 2

1. (command)
(,script)
8
2. command cd

3. []
- -h --
--help

4. parameter1 parameter2.. command


5. , ,

6. [Enter][Enter]

7. (\) [Enter]

8. Linux cd CD



Linux

LANG=zh_TW.utf8
LC_CTYPE=zh_TW.utf8
LC_TIME=zh_TW.UTF-8
LC_ALL=
:(LANG) zh_TW.UTF-8

10
LANG=en_US.utf8
LC_CTYPE= en_US.utf8
LC_TIME= en_US.UTF-8
LC_ALL=
:(LANG) en_US.utf8

date
date +%Y/%m/%d
date +%H:%M

cal

cal 2017 2017


11
Cal

cal 3 2017 2017

cal 13 2017

bc Linux ---bc
:

bc

12
bc
scale=number number

[tab]:

ca [tab][tab] ca

ls -al ~/.bash [tab][tab] .bash

13
date - -[tab][tab] date
:

[Tab]

[Tab]

bash-completion [tab]
/

[Ctrl]-c()

find /

[Ctrl]-c find

[Ctrl]-d():
14
(End Of File, EOF End Of Input)
exit

[shift]+{[PageUP][PageDown]}: [Shift]+[Page Up]


[Shift]+[Page Down]

command not found

15
- -help

--help

--version

16

who
netstat -a
ps -aux



shutdown


shutdown reboot

/:

sync

shutdown

reboot, halt, poweroff

chmod

chmod

Linux owner/group/others
read/write/execute
-rwxrwxrwx

r:4
w:2
x:1

(owner/group/others)(r/w/x)
[-rwxrwx---]

owner = rwx = 4+2+1 = 7


group = rwx = 4+2+1 = 7
others= --- = 0+0+0 = 0

[root@study ~]# chmod [-R] xyz

xyz : rwx
17
-R : (recursive)

Linux ---FHS

18

.
..
-
~
~account account (account )

19
20
:ls:

21
# . (.) (..) .config

# ./command
# ./
FIFO/Socket
# .bashrc 2013

#
# ls -al
22
# --full-time

23
24
:

cat

tac tac cat

nl

more

less more more

head

tail

od

,:

WWW

*.gz, *.bz2, *.xz, *.tar, *.tar.gz,


*.tar.bz2, *.tar.xz

gzip, bzip2, xz xz
xz
25
tar gzip, bzip2, xz

tar -Jcv -f filename.tar.xz

tar -Jtv -f filename.tar.xz

tar -Jxv -f filename.tar.xz -C

xfsdump

xfsdump 0-9 level


level 0

xfsrestore xfsdump

mkisofs

wodim CD DVD

dd partition disk dd sector


cpio find

Vi:

vi vi

Vim:

26
Vim

Linux vim

vim shell script,


vi unix like

vi

i, [Esc], :wq

vi (1)(2)+

5yy 5

G 1G, G /

vi :n1,n2s/old/new/g

i, o, R
o R

vim swap

27
[ctrl]-v //

:sp

vim CSS [ctrl]+x,


[ctrl]+o

vim ~/.vimrc

iconv

dos2unix unix2dos

28

You might also like