HP 6125XLG R2306-HP 6125XLG Blade Switch Fundamentals Configuration Guide - Page 75

Working with files on the FTP server

Page 75 highlights

Task Change the working directory on the FTP server. Return to the upper level directory on the FTP server. Display the working directory that is being accessed. Create a directory on the FTP server. Remove the specified working directory on the remote FTP server. Command cd { directory | .. | / } cdup pwd mkdir directory rmdir directory Working with files on the FTP server After you log in to the server, you can upload a file to or download a file from the authorized directory by following these steps: 1. Use the dir or ls command to display the directory and location of the file on the FTP server. 2. Delete unused files to get more free storage space. 3. Set the file transfer mode to ASCII for text files or binary for image files. 4. Use the lcd command to change the local working directory of the FTP client. You can upload the file or save the downloaded file in this directory. 5. Upload or download the file. To work with files on an FTP server, execute the following commands in FTP client view: Task Display directory or file information on the FTP server. Delete the specified file on the FTP server permanently. Set the file transfer mode to ASCII. Set the file transfer mode to binary. Set the FTP operation mode to passive. Display or change the local working directory of the FTP client. Upload a file to the FTP server. Command • Display the detailed information of a directory or file on the FTP server: dir [ remotefile [ localfile ] ] • Display the name of a directory or file on the FTP server: ls [ remotefile [ localfile ] ] Remarks N/A delete remotefile N/A ascii The default file transfer mode is ASCII. binary The default file transfer mode is ASCII. passive The default mode is passive. lcd [ directory | / ] put localfile [ remotefile ] N/A N/A 68

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155

68
Task
Command
Change the working directory on the FTP server.
cd
{
directory
|
..
|
/
}
Return to the upper level directory on the FTP
server.
cdup
Display the working directory that is being
accessed.
pwd
Create a directory on the FTP server.
mkdir
directory
Remove the specified working directory on the
remote FTP server.
rmdir
directory
Working with files on the FTP server
After you log in to the server, you can upload a file to or download a file from the authorized directory
by following these steps:
1.
Use the
dir
or
ls
command to display the directory and location of the file on the FTP server.
2.
Delete unused files to get more free storage space.
3.
Set the file transfer mode to ASCII for text files or binary for image files.
4.
Use the
lcd
command to change the local working directory of the FTP client. You can upload the
file or save the downloaded file in this directory.
5.
Upload or download the file.
To work with files on an FTP server, execute the following commands in FTP client view:
Task
Command
Remarks
Display directory or file
information on the FTP server.
Display the detailed
information of a directory
or file on the FTP server:
dir
[
remotefile
[
localfile
] ]
Display the name of a
directory or file on the FTP
server:
ls
[
remotefile
[
localfile
] ]
N/A
Delete the specified file on the
FTP server permanently.
delete
remotefile
N/A
Set the file transfer mode to
ASCII.
ascii
The default file transfer mode is ASCII.
Set the file transfer mode to
binary.
binary
The default file transfer mode is ASCII.
Set the FTP operation mode to
passive.
passive
The default mode is passive.
Display or change the local
working directory of the FTP
client.
lcd
[
directory
|
/
]
N/A
Upload a file to the FTP server.
put
localfile
[
remotefile
]
N/A