1.ftp linux 命令
ftp 192.168.54.207
Connected to 192.168.54.207.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.54.207:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/media
250 Directory successfully changed.
ftp> put media.tar.gz
local: media.tar.gz remote: media.tar.gz
227 Entering Passive Mode (192,168,54,207,23,189)
150 Ok to send data.
226 File receive OK.
399957453 bytes sent in 51 seconds (7.6e+03 Kbytes/s)
------------------------------------
root@svn-server:/tmp# ftp 192.168.54.207
Connected to 192.168.54.207.
220 (vsFTPd 2.0.1)
Name (192.168.54.207:root): root
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> pwd
530 Please login with USER and PASS.
ftp> user
(username) root
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> user
(username) root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> lcd /tmp
Local directory now /tmp
ftp> cd /home/media
250 Directory successfully changed.
ftp> get media.dump
2.tar 命令(http://www.yuanma.org/data/2006/0519/article_438.htm)
tar [-cxtzjvfpPN] 文件与目录 ....
参数:
-c :建立一个压缩文件的参数指令(create 的意思);
-x :解开一个压缩文件的参数指令!
-t :查看 tarfile 里面的文件!
3.df du
df -h df命令可以显示目前所有文件系统的可用空间及使用情形。
-h 表示使用「Human-readable」的输出,也就是在档案系统大小使用 GB、MB 等易读的格式。
du -h --max-depth=1 work/testing
目录大小
du -h --max-depth=1 work/testing/*
目录下文件大小
du -sh *
目录下文件大小
4. test文件夹所属root用户,转换到maven用户
chown - R maven test
改变文件或目录所属的组。
例1:$ chgrp - R book /opt/local/book
ftp 192.168.54.207
Connected to 192.168.54.207.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.54.207:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/media
250 Directory successfully changed.
ftp> put media.tar.gz
local: media.tar.gz remote: media.tar.gz
227 Entering Passive Mode (192,168,54,207,23,189)
150 Ok to send data.
226 File receive OK.
399957453 bytes sent in 51 seconds (7.6e+03 Kbytes/s)
------------------------------------
root@svn-server:/tmp# ftp 192.168.54.207
Connected to 192.168.54.207.
220 (vsFTPd 2.0.1)
Name (192.168.54.207:root): root
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> pwd
530 Please login with USER and PASS.
ftp> user
(username) root
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> user
(username) root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> lcd /tmp
Local directory now /tmp
ftp> cd /home/media
250 Directory successfully changed.
ftp> get media.dump
2.tar 命令(http://www.yuanma.org/data/2006/0519/article_438.htm)
tar [-cxtzjvfpPN] 文件与目录 ....
参数:
-c :建立一个压缩文件的参数指令(create 的意思);
-x :解开一个压缩文件的参数指令!
-t :查看 tarfile 里面的文件!
3.df du
df -h df命令可以显示目前所有文件系统的可用空间及使用情形。
-h 表示使用「Human-readable」的输出,也就是在档案系统大小使用 GB、MB 等易读的格式。
du -h --max-depth=1 work/testing
目录大小
du -h --max-depth=1 work/testing/*
目录下文件大小
du -sh *
目录下文件大小
4. test文件夹所属root用户,转换到maven用户
chown - R maven test
改变文件或目录所属的组。
例1:$ chgrp - R book /opt/local/book