LoginSignup
0
0

More than 3 years have passed since last update.

完全に個人的なメモ

Last updated at Posted at 2020-11-04

ものすごく個人的なメモです。

Linuxコマンドの忘れがちなものをメモしていきます。

フルパスの取得方法

$ find `pwd` -name "ファイル名.sh"

shellスクリプトの書き方

test.sh
# ---これはコメント-----------
# bashのpathは which bash で取得する
# ------------------------

#!/bin/bash
echo hello-world

実行権限を与える。
$ chmod +x deploy.sh
実行するには、
$ /testスクリプトのフルパス/test.sh

0
0
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
0
0