0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux][command] シェル変数と環境変数_シェルのオプション_set

Last updated at Posted at 2025-06-03

setコマンド

$ set [-o][+o] [オプション]
オプション 由来 説明
-oのみ シェルのオプションの設定状態を確認する
allexport all export 新規作成・変更した変数を自動的に環境変数としてエクスポートする
emacs Emacs Emacs エディタと同様のキーバインドを使用する(例: 矢印キー、Ctrl+Dで削除)
ignoreeof ignore EOF Ctrl+D によるシェルのログアウトを無効にする(誤操作防止)
noclobber no clobber >>> によるファイルの上書きを禁止する
noglob no globbing パス名展開(ワイルドカードなど)を無効にする
noexec no execute スクリプトを実行せずに構文チェックのみ行う
vi vi editor vi エディタと同様のキーバインドを使用(ESC でコマンドモードへ)

Ping-t

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?