You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONFLICT.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,6 @@ Besides `mc` is a single static binary and can reside inside your application an
6
6
7
7
Package managers are free to choose a different name if they like. One such solution [pointed out](https://github.com/minio/mc/issues/873#issuecomment-267583013) by one of our community members.
Copy file name to clipboardexpand all lines: README.md
+14-14
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ docker run minio/mc:edge ls play
43
43
44
44
**Note:** Above examples run `mc` against MinIO [_play_ environment](#test-your-setup) by default. To run `mc` against other S3 compatible servers, start the container this way:
45
45
46
-
```sh
46
+
```
47
47
docker run -it --entrypoint=/bin/sh minio/mc
48
48
```
49
49
@@ -53,7 +53,7 @@ then use the [`mc config` command](#add-a-cloud-storage-service).
53
53
### Homebrew
54
54
Install mc packages using [Homebrew](http://brew.sh/)
@@ -86,7 +86,7 @@ Source installation is intended only for developers and advanced users. `mc upda
86
86
87
87
If you do not have a working Golang environment, please follow [How to install Golang](https://docs.min.io/docs/how-to-install-golang).
88
88
89
-
```sh
89
+
```
90
90
go get -d github.com/minio/mc
91
91
cd ${GOPATH}/src/github.com/minio/mc
92
92
make
@@ -97,7 +97,7 @@ If you are planning to use `mc` only on POSIX compatible filesystems, you may sk
97
97
98
98
To add one or more Amazon S3 compatible hosts, please follow the instructions below. `mc` stores all its configuration information in ``~/.mc/config.json`` file.
@@ -108,14 +108,14 @@ Lookup is an optional argument. It is used to indicate whether dns or path style
108
108
### Example - MinIO Cloud Storage
109
109
MinIO server displays URL, access and secret keys.
110
110
111
-
```sh
111
+
```
112
112
mc config host add minio http://192.168.1.51 BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
113
113
```
114
114
115
115
### Example - Amazon S3 Cloud Storage
116
116
Get your AccessKeyID and SecretAccessKey by following [AWS Credentials Guide](http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html).
117
117
118
-
```sh
118
+
```
119
119
mc config host add s3 https://s3.amazonaws.com BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
Get your AccessKeyID and SecretAccessKey by following [Google Credentials Guide](https://cloud.google.com/storage/docs/migrating?hl=en#keys)
151
151
152
-
```sh
152
+
```
153
153
mc config host add gcs https://storage.googleapis.com BKIKJAA5BMMU2RHO6IBB V8f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12
154
154
```
155
155
@@ -162,7 +162,7 @@ NOTE: Google Cloud Storage only supports Legacy Signature Version 2, so you have
162
162
163
163
List all buckets from https://play.min.io:9000
164
164
165
-
```sh
165
+
```
166
166
mc ls play
167
167
[2016-03-22 19:47:48 PDT] 0B my-bucketname/
168
168
[2016-03-22 22:01:07 PDT] 0B mytestbucket/
@@ -175,7 +175,7 @@ Make a bucket
175
175
`mb` command creates a new bucket.
176
176
177
177
*Example:*
178
-
```sh
178
+
```
179
179
mc mb play/mybucket
180
180
Bucket created successfully `play/mybucket`.
181
181
```
@@ -184,7 +184,7 @@ Copy Objects
184
184
`cp` command copies data from one or more sources to a target.
185
185
186
186
*Example:*
187
-
```sh
187
+
```
188
188
mc cp myobject.txt play/mybucket
189
189
myobject.txt: 14 B / 14 B ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.00 % 41 B/s 0
190
190
```
@@ -197,7 +197,7 @@ myobject.txt: 14 B / 14 B ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
197
197
### Shell aliases
198
198
You may add shell aliases to override your common Unix tools.
199
199
200
-
```sh
200
+
```
201
201
alias ls='mc ls'
202
202
alias cp='mc cp'
203
203
alias cat='mc cat'
@@ -210,7 +210,7 @@ alias find='mc find'
210
210
211
211
In case you are using bash or zsh, the current shell will be automatically setup to use completion feature to suggest or auto-complete your mc commands.
fatalIf(errDummy().Trace(), "`"+targetURL+"` is not empty. Retry this command with ‘--force’ flag if you want to remove `"+targetURL+"` and all its contents")
237
237
}
238
+
238
239
e:=deleteBucket(targetURL)
239
240
fatalIf(e.Trace(targetURL), "Failed to remove `"+targetURL+"`.")
0 commit comments