1
2

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.

コマンドメモ(scp,cat,vi,ls)

Last updated at Posted at 2020-01-17

フォルダ事コピーする場合は、オプション -r
ファイル単独ならいらない。

SCPで踏み台からSSH先へフォルダ事コピー

scp -r /home/hoge(名前)/フォルダ1/フォルダ2/フォルダ3/フォルダ4/フォルダ5/* hoge@hoge-hoge-web-9999:/home/hoge(名前)/フォルダ1/フォルダ2/フォルダ3/フォルダ4/フォルダ5/

SCPで踏み台からSSH先へフォルダ内を指定ファイルをコピー

scp /home/hoge(名前)/フォルダ1/フォルダ2/aaa.txt hoge@hoge-hoge-web-9999:/home/hoge(名前)/フォルダ1/フォルダ2/aaa.txt

参考URL
https://www.itc109.com/knowledge/communication/ssh-file-copy

ファイル編集
vi ファイル名

ファイルの中身
cat ファイル名

隠しファイルを表示
ls -a

パーミッション確認
ls -l

パーミッション付与
chmod XXX ファイル名

実行権限:1(001)
書込権限:2(010)
読込権限:4(100)

所有者、所有グループ、その他、の順番
777(フルコントロール)

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?