7
8

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.

Linux コマンド #03

7
Posted at

export/unset

$ export 変数名[=値]
$ unset 変数名

環境変数の登録(export)と削除(unset)。
環境変数の参照は対象の変数名の先頭に$を付与し、echoコマンドで表示する。

$ echo $xxx

環境変数の一覧表示
$ env
$ printenv

環境変数とシェル変数の両方を表示
$ set

man

$ man [オプション] [セクション] コマンド名あるいはキーワード

オンラインマニュアルを表示する。

オプション 説明
-a 全てのセクションのマニュアルを表示する
-f 指定されたキーワード(完全一致)を含むドキュメントを表示する
-k 指定されたキーワード(部分一致)を含むドキュメントを表示する
-w マニュアルの置かれているディレクトリを表示する

less

$ 
オプション 説明
サブコマンド 説明
:-- :--

Template

$ 
オプション 説明
サブコマンド 説明
:-- :--
7
8
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
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?