Copyright(c) by Galaxy CD – http://www.galaxycd.com
20
$
cd
../copie
$
ls
-l
total 4
-rw-rw-r-- 1 user2 stagiair 16
Apr
5
16:25 original1
-rw-rw-r-- 1 user2 stagiair 16
Apr
5
16:25 original1.copie
-rw-rw-r-- 1 user2 stagiair 17
Apr
5
16:26 original2
-rw-rw-r-- 1 user2 stagiair 18
Apr
5
16:27 original3
4.2 Chuyeån vaø ñoåi teân file:
Leänh
mv
cho pheùp chuyeån vaø ñoåi teân file:
-
chuyeån moät file:
$
mv file_nguoàn
file_ñích
-
chuyeån nhieàu file:
$
mv file1 file2 …
thö_muïc
$
mv *
thö_muïc
-
chuyeån thö muïc:
$
mv thö_muïc1
thö_muïc2
(caùc thö muïc phaûi coù cuøng thö muïc con)
Thí duï:
$
pwd
/users/user2/source
$
ls
-l
total 3
-rw-rw-r-- 1 user2 stagiair
16
Apr
5
16:25 original1
-rw-rw-r-- 1 user2 stagiair
17
Apr
5
16:26 original2
-rw-rw-r-- 1 user2 stagiair
18
Apr
5
16:27 original3
$
mv original1
original1.bis
$
ls
-l
total 3
-rw-rw-r-- 1 user2 stagiair
16
Apr
5
16:25 original1.bis
-rw-rw-r-- 1 user2 stagiair
17
Apr
5
16:26 original2
-rw-rw-r-- 1 user2 stagiair
18
Apr
5
16:27 original3
$
cd
..