12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macでターミナル(Terminal) UNIXコマンド備忘録

Last updated at Posted at 2014-11-03

##SCPコマンド

###基本
コマンドによる基本仕様

comnad
$ scp <送るファイル> <送り先におけるユーザ名>@<送リ先サーバ>:<送り先のディレクトリ>

例1
ここではXREAサーバへアップしてみる

項目   コマンド
送るファイル   ローカルの sample.txt
送り先      s601.xrea.com
送り先におけるユーザ名 user
送り先ディレクトリ work
comnad
$ scp sample.txt user@s601.xrea.com:work

あとはパスワードを求められるので入力したら送信完了。

##tar gz コマンド

###基本

[file]tar.gz 解凍

comnad
$ tar zxvf test.tar.gz

[file]tar.gz 圧縮

comnad
$ tar zcvf test.tar.gz test.txt
12
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?